11a70c7b18b1868e3e769486600af7d76976164e
[gram.git] / setup.py
1 #!/usr/bin/env python3
2
3 from setuptools import setup
4 from setuptools import find_packages
5
6
7 def scm_version():
8 def local_scheme(version):
9 if version.tag and not version.distance:
10 return version.format_with("")
11 else:
12 return version.format_choice("+{node}", "+{node}.dirty")
13 return {
14 "relative_to": __file__,
15 "version_scheme": "guess-next-dev",
16 "local_scheme": local_scheme
17 }
18
19 setup(
20 # Vitals
21 name="gram",
22 license="BSD",
23 url="https://lambdaconcept.com",
24 download_url="https://github.com/lambdaconcept/gram",
25 author="LambdaConcept",
26 author_email="contact@lambdaconcept.com",
27 description="DRAM core for LambdaSoC",
28 use_scm_version=scm_version(),
29 # Imports / exports / requirements
30 platforms='any',
31 packages=find_packages(exclude=("test*", "doc*", "examples*", "contrib*", "libgram*")),
32 include_package_data=True,
33 python_requires="~=3.7",
34 #install_requires=['nmigen', 'nmigen_boards'],
35 setup_requires=['setuptools', 'setuptools_scm'],
36 entry_points={},
37
38 # Metadata
39 classifiers = [
40 'Programming Language :: Python',
41 'Development Status :: 1 - Planning',
42 'Natural Language :: English',
43 'Environment :: Plugins',
44 'Intended Audience :: Developers',
45 'Intended Audience :: Science/Research',
46 'License :: OSI Approved :: BSD License',
47 'Operating System :: OS Independent',
48 'Topic :: Scientific/Engineering',
49 ],
50 )