Skip to content

Commit 9ca2c3e

Browse files
authored
Merge pull request #32 from siliconcompiler/package
use setup tools for versioning
2 parents a2556a5 + 1ba672c commit 9ca2c3e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lambdalib/__init__.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import os
2-
import pkg_resources
3-
try:
4-
__version__ = pkg_resources.get_distribution('lambdalib').version
5-
except: # noqa E722
6-
__version__ = None
2+
3+
__version__ = "0.1.1"
74

85

96
def register_data_source(chip):

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ license = {file = "LICENSE"}
2222
dependencies = [
2323
"siliconcompiler >= 0.17.0"
2424
]
25-
version = "0.1.0"
25+
dynamic = ['version']
26+
27+
[tool.setuptools.dynamic]
28+
version = {attr = "lambdalib.__version__"}
2629

2730
[tool.pytest.ini_options]
2831
testpaths = "tests"

0 commit comments

Comments
 (0)