forked from FPGAwars/apio
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
78 lines (68 loc) · 2.15 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import json
from setuptools import setup
from apio import (__author__, __description__, __email__, __license__,
__title__, __url__, __version__)
# Load extras_require
extras_require = {}
filepath = os.path.join('apio', 'resources', 'distribution.json')
with open(filepath, 'r') as f:
resource = json.loads(f.read())
pip_packages = resource.get('pip_packages', {})
extras_require = {k: [k + v] for k, v in pip_packages.items()}
setup(
name=__title__,
version=__version__,
description=__description__,
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
license=__license__,
url=__url__,
project_urls={
'FPGAwars': 'https://FPGAwars.github.io/',
'Travis CI': 'https://travis-ci.org/FPGAwars/apio',
'Apio documentation': 'https://apiodoc.readthedocs.io/',
'Apio source': 'https://github.com/FPGAwars/apio',
},
author=__author__,
author_email=__email__,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3'
],
keywords=[
'iot', 'embedded', 'fpga', 'cli', 'verilog', 'hardware',
'icestorm', 'yosys', 'arachne-pnr', 'iverilog', 'verilator',
'lattice', 'ice40', 'ecp5'
],
packages=['apio'],
package_data={
'apio': [
'commands/*.py',
'managers/*.py',
'resources/*',
'resources/ecp5/*',
'resources/ice40/*'
]
},
entry_points={
'console_scripts': ['apio=apio.__main__:cli']
},
install_requires=[
'click>=5,<7',
'semantic_version>=2.5.0,<3',
'requests>=2.4.0,<3',
'pyjwt>=1.5.3,<2',
'colorama',
'pyserial>=3,<4'
],
extras_require=extras_require
)