setup: improve repository detection.
[nmigen.git] / setup.py
1 from setuptools import setup, find_packages
2
3
4 def scm_version():
5 def local_scheme(version):
6 return version.format_choice("+{node}", "+{node}.dirty")
7 return {
8 "relative_to": __file__,
9 "version_scheme": "guess-next-dev",
10 "local_scheme": local_scheme
11 }
12
13
14 setup(
15 name="nmigen",
16 use_scm_version=scm_version(),
17 author="whitequark",
18 author_email="whitequark@whitequark.org",
19 description="Python toolbox for building complex digital hardware",
20 #long_description="""TODO""",
21 license="BSD",
22 python_requires="~=3.6",
23 setup_requires=["setuptools_scm"],
24 install_requires=["setuptools", "pyvcd>=0.1.4", "bitarray", "Jinja2"],
25 packages=find_packages(),
26 project_urls={
27 #"Documentation": "https://nmigen.readthedocs.io/",
28 "Source Code": "https://github.com/m-labs/nmigen",
29 "Bug Tracker": "https://github.com/m-labs/nmigen/issues",
30 },
31 )