Skip to content

Commit

Permalink
use setuptools to handle version in toml
Browse files Browse the repository at this point in the history
  • Loading branch information
gadfort committed Dec 8, 2023
1 parent 9e85d00 commit 4ac506d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 1 addition & 5 deletions lambdapdk/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import os
import pkg_resources
try:
__version__ = pkg_resources.get_distribution('lambdapdk').version
except: # noqa E722
__version__ = None
__version__ = "0.1.1"


def register_data_source(chip):
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ license = {file = "LICENSE"}
dependencies = [
"siliconcompiler >= 0.17.0"
]
version = "0.1.0"
dynamic = ['version']

[tool.setuptools.dynamic]
version = {attr = "lambdapdk.__version__"}

[tool.pytest.ini_options]
testpaths = "tests"
Expand Down

0 comments on commit 4ac506d

Please sign in to comment.