fix dependency problems caused by pypi
[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",
29 "nmigen>=0.0,<=0.5",
30 "nmigen-soc",
31 "modgrammar"],
32
33 # unit tests require cocotb: main operation does not
34 tests_require=['cocotb'],
35
36 include_package_data=True,
37 packages=find_packages(),
38 project_urls={
39 #"Documentation": "???",
40 "Source Code": "https://gitlab.com/Chips4Makers/c4m-jtag",
41 "Bug Tracker": "https://gitlab.com/Chips4Makers/c4m-jtag/issues",
42 },
43 )