Skip to content

Commit

Permalink
Update setup.py to use Git versioning like FuseSoC (#400)
Browse files Browse the repository at this point in the history
Update setup.py to use Git versioning like FuseSoC

---------

Co-authored-by: Paul Gatewood <[email protected]>
  • Loading branch information
paul-gatewood and Paul Gatewood authored Nov 20, 2023
1 parent 0dad9a4 commit 74477ac
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ venv/
.project
.pydevproject
/.pytest_cache/

# auto-generated by setuptools_scm during the build
edalize/version.py
1 change: 1 addition & 0 deletions edalize/edatool.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"ise_reporting",
"vivado_reporting",
"quartus_reporting",
"version",
]


Expand Down
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ def read(fname):

setup(
name="edalize",
version="0.5.1",
use_scm_version={
"relative_to": __file__,
"write_to": "edalize/version.py",
},
packages=["edalize", "edalize.tools", "edalize.flows"],
package_data={
"edalize": [
Expand Down Expand Up @@ -84,6 +87,10 @@ def read(fname):
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
"Topic :: Utilities",
],
setup_requires=[
"setuptools_scm < 7.0; python_version<'3.7'",
"setuptools_scm; python_version>='3.7'",
],
install_requires=[
"Jinja2>=3",
],
Expand Down

0 comments on commit 74477ac

Please sign in to comment.