Update setup.py (based on LUNA)
authorJean THOMAS <git0@pub.jeanthomas.me>
Mon, 3 Aug 2020 11:35:50 +0000 (13:35 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Mon, 3 Aug 2020 11:35:50 +0000 (13:35 +0200)
setup.py

index 5e4d5534c9b3b50dfdc808da7844e8845962558b..8f7c7eb998e1531ace2e48ba50278dbdb630a0c5 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -5,15 +5,41 @@ from setuptools import find_packages
 
 
 setup(
+    # Vitals
     name="gram",
-    description="DRAM core for LambdaSoC",
-    author="LambdaConcept",
-    author_email="contact@lambdaconcept.com",
+    license="BSD",
     url="https://lambdaconcept.com",
     download_url="https://github.com/lambdaconcept/gram",
-    license="BSD",
-    python_requires="~=3.6",
-    install_requires=[],
+    author="LambdaConcept",
+    author_email="contact@lambdaconcept.com",
+    description="DRAM core for LambdaSoC",
+    use_scm_version= {
+        "root": '..',
+        "relative_to": __file__,
+        "version_scheme": "guess-next-dev",
+        "local_scheme": lambda version : version.format_choice("+{node}", "+{node}.dirty"),
+        "fallback_version": "r0.0"
+    },
+
+    # Imports / exports / requirements
+    platforms='any',
     packages=find_packages(exclude=("test*", "doc*", "examples*", "contrib*", "libgram*")),
     include_package_data=True,
+    python_requires="~=3.7",
+    install_requires=['nmigen', 'nmigen_boards', 'pyvcd'],
+    setup_requires=['setuptools', 'setuptools_scm'],
+    entry_points={},
+
+    # Metadata
+    classifiers = [
+        'Programming Language :: Python',
+        'Development Status :: 1 - Planning',
+        'Natural Language :: English',
+        'Environment :: Plugins',
+        'Intended Audience :: Developers',
+        'Intended Audience :: Science/Research',
+        'License :: OSI Approved :: BSD License',
+        'Operating System :: OS Independent',
+        'Topic :: Scientific/Engineering',
+        ],
 )