Skip to content

Commit

Permalink
Set dynamic version (#322)
Browse files Browse the repository at this point in the history
Set a single source of truth for the semver version string to be in the
file `scaaml/__init__.py` under `scaaml.__version__`.
  • Loading branch information
kralka authored Dec 9, 2024
1 parent eabb7dd commit 1d0f251
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ where = ["."]

[project]
name = "scaaml"
version = "2.0.3"
authors = [
{ name="Elie Bursztein"},
{ name="Luca Invernizzi"},
Expand All @@ -28,7 +27,7 @@ classifiers = [
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dynamic = []
dynamic = ["version"]
dependencies = [
"chipwhisperer",
"colorama",
Expand All @@ -52,6 +51,9 @@ dependencies = [
"wheel",
]

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

[project.optional-dependencies]

[project.scripts]
Expand Down
2 changes: 1 addition & 1 deletion scaaml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
semver.compare is used to compare two versions of the SCAAML library.
"""
__version__ = "3.0.0"
__version__ = "3.0.1"

0 comments on commit 1d0f251

Please sign in to comment.