Add setup.py
authorJean-François Nguyen <jf@lambdaconcept.com>
Wed, 25 Mar 2020 11:50:08 +0000 (12:50 +0100)
committerJean-François Nguyen <jf@lambdaconcept.com>
Wed, 25 Mar 2020 11:53:42 +0000 (12:53 +0100)
setup.py [new file with mode: 0644]

diff --git a/setup.py b/setup.py
new file mode 100644 (file)
index 0000000..63e131f
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,32 @@
+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="lambdasoc",
+    use_scm_version=scm_version(),
+    author="Jean-François Nguyen",
+    author_email="jf@lambdaconcept.com",
+    description="A framework for building SoCs with nMigen",
+    #long_description="""TODO""",
+    license="BSD",
+    setup_requires=["setuptools_scm"],
+    install_requires=["nmigen>=0.1"],
+    packages=find_packages(),
+    project_urls={
+        "Source Code": "https://github.com/lambdaconcept/lambdasoc",
+        "Bug Tracker": "https://github.com/lambdaconcept/lambdasoc/issues",
+    },
+)