From 8b498dec0d4ba382284e82ab69bb123df1f3c204 Mon Sep 17 00:00:00 2001 From: Staf Verhaegen Date: Wed, 4 Dec 2019 20:50:13 +0100 Subject: [PATCH] python setuptools files --- .gitignore | 3 ++- MANIFEST.in | 1 + setup.py | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 MANIFEST.in create mode 100644 setup.py diff --git a/.gitignore b/.gitignore index b0de9bd..7d37e8a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ results.xml *.ghw sim/ghdl/bench_idcode -build \ No newline at end of file +build +*.egg-info \ No newline at end of file diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..9f9d33b --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include c4m/vhdl/*.vhdl diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..f69575b --- /dev/null +++ b/setup.py @@ -0,0 +1,34 @@ +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="c4m_jtag", + use_scm_version=scm_version(), + author="Staf Verhaegen", + author_email="staf@fibraservi.eu", + description="", + license="multi", + python_requires="~=3.6", + setup_requires=["setuptools_scm"], + install_requires=["setuptools", "cocotb", "nmigen"], + include_package_data=True, + packages=find_packages(), + project_urls={ + #"Documentation": "???", + "Source Code": "https://gitlab.com/Chips4Makers/c4m-jtag", + "Bug Tracker": "https://gitlab.com/Chips4Makers/c4m-jtag/issues", + }, +) -- 2.30.2