-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
47 lines (43 loc) · 1.44 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
from setuptools import setup, find_packages
def scm_version():
def local_scheme(version):
if version.tag and not version.distance:
return version.format_with("")
else:
return version.format_choice("+{node}", "+{node}.dirty")
return {
"relative_to": __file__,
"version_scheme": "guess-next-dev",
"local_scheme": local_scheme
}
setup(
name="nmigen",
use_scm_version=scm_version(),
author="whitequark",
author_email="whitequark@whitequark.org",
description="Python toolbox for building complex digital hardware",
#long_description="""TODO""",
license="BSD",
python_requires="~=3.6",
setup_requires=["wheel", "setuptools", "setuptools_scm"],
install_requires=[
"importlib_metadata; python_version<'3.8'", # for __version__ and nmigen._yosys
"importlib_resources; python_version<'3.9'", # for nmigen._yosys
"pyvcd~=0.2.2", # for nmigen.pysim
"Jinja2~=2.11", # for nmigen.build
],
extras_require={
"remote-build": ["paramiko~=2.7"],
},
packages=find_packages(exclude=["tests*"]),
entry_points={
"console_scripts": [
"nmigen-rpc = nmigen.rpc:main",
]
},
project_urls={
#"Documentation": "https://nmigen.readthedocs.io/",
"Source Code": "https://gitlab.com/nmigen/nmigen",
"Bug Tracker": "https://gitlab.com/nmigen/nmigen/issues",
},
)