e42ffcaf66ac8658cc3a14b8eb99674307107f06
[lambdasoc.git] / setup.py
1 from setuptools import setup, find_packages
2
3
4 def scm_version():
5 def local_scheme(version):
6 if version.tag and not version.distance:
7 return version.format_with("")
8 else:
9 return version.format_choice("+{node}", "+{node}.dirty")
10 return {
11 "relative_to": __file__,
12 "version_scheme": "guess-next-dev",
13 "local_scheme": local_scheme
14 }
15
16
17 setup(
18 name="lambdasoc",
19 use_scm_version=scm_version(),
20 author="Jean-François Nguyen",
21 author_email="jf@lambdaconcept.com",
22 description="A framework for building SoCs with nMigen",
23 #long_description="""TODO""",
24 license="BSD",
25 setup_requires=["setuptools_scm"],
26 install_requires=[
27 "jinja2>=3.0",
28 #"nmigen>=0.1,<0.5",
29 #"nmigen-soc",
30 #"nmigen-stdio",
31 #"nmigen-boards",
32 ],
33 entry_points={
34 "console_scripts": [
35 "flterm=lambdasoc.tools.flterm:main [SFL]",
36 ]
37 },
38 extras_require={
39 "SFL": ["asyncserial"]
40 },
41 packages=find_packages(),
42 zip_safe=False, # install as directory. needed to build SoC firmware.
43 include_package_data=True,
44 project_urls={
45 "Source Code": "https://github.com/lambdaconcept/lambdasoc",
46 "Bug Tracker": "https://github.com/lambdaconcept/lambdasoc/issues",
47 },
48 )