Merge branch 'upstream_libresoc' into libresoc_master
[c4m-jtag.git] / setup.py
1 from setuptools import setup, find_packages
2
3
4 def scm_version():
5 def local_scheme(version):
6 if version.tag and not version.distance:
7 return version.format_with("")
8 else:
9 return version.format_choice("+{node}", "+{node}.dirty")
10 return {
11 "relative_to": __file__,
12 "version_scheme": "guess-next-dev",
13 "local_scheme": local_scheme
14 }
15
16
17 setup(
18 name="c4m_jtag",
19 use_scm_version=scm_version(),
20 author="Staf Verhaegen",
21 author_email="staf@fibraservi.eu",
22 description="",
23 license="multi",
24 python_requires="~=3.6",
25 setup_requires=["setuptools_scm"],
26
27 # removing cocotb, causing unnecessary dependency and install problems
28 install_requires=["setuptools", "nmigen", "nmigen-soc", "modgrammar"],
29
30 # unit tests require cocotb: main operation does not
31 tests_require=['cocotb'],
32
33 include_package_data=True,
34 packages=find_packages(),
35 project_urls={
36 #"Documentation": "???",
37 "Source Code": "https://gitlab.com/Chips4Makers/c4m-jtag",
38 "Bug Tracker": "https://gitlab.com/Chips4Makers/c4m-jtag/issues",
39 },
40 )