Skip to content

Commit

Permalink
use setup tools for versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
gadfort committed Dec 8, 2023
1 parent 369fa8d commit 1ba672c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 2 additions & 5 deletions lambdalib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import os
import pkg_resources
try:
__version__ = pkg_resources.get_distribution('lambdalib').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 @@ -22,7 +22,10 @@ license = {file = "LICENSE"}
dependencies = [
"siliconcompiler >= 0.17.0"
]
version = "0.1.0"
dynamic = ['version']

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

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

0 comments on commit 1ba672c

Please sign in to comment.