python setuptools files
authorStaf Verhaegen <staf@stafverhaegen.be>
Wed, 4 Dec 2019 19:50:13 +0000 (20:50 +0100)
committerStaf Verhaegen <staf@stafverhaegen.be>
Fri, 6 Dec 2019 19:15:44 +0000 (20:15 +0100)
.gitignore
MANIFEST.in [new file with mode: 0644]
setup.py [new file with mode: 0644]

index b0de9bd422ab8e312d242b9f2d932ea11fd3e0e3..7d37e8a8693e91ff0b6347c4fa396eb7b629109d 100644 (file)
@@ -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 (file)
index 0000000..9f9d33b
--- /dev/null
@@ -0,0 +1 @@
+include c4m/vhdl/*.vhdl
diff --git a/setup.py b/setup.py
new file mode 100644 (file)
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",
+    },
+)