From 1d0f2511a9a62a739eac369535fd68bd0010860b Mon Sep 17 00:00:00 2001 From: kralka Date: Mon, 9 Dec 2024 11:26:25 +0100 Subject: [PATCH] Set dynamic version (#322) Set a single source of truth for the semver version string to be in the file `scaaml/__init__.py` under `scaaml.__version__`. --- pyproject.toml | 6 ++++-- scaaml/__init__.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d6e32258..834e5e7c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,6 @@ where = ["."] [project] name = "scaaml" -version = "2.0.3" authors = [ { name="Elie Bursztein"}, { name="Luca Invernizzi"}, @@ -28,7 +27,7 @@ classifiers = [ "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering :: Artificial Intelligence", ] -dynamic = [] +dynamic = ["version"] dependencies = [ "chipwhisperer", "colorama", @@ -52,6 +51,9 @@ dependencies = [ "wheel", ] +[tool.setuptools.dynamic] +version = {attr = "scaaml.__version__"} + [project.optional-dependencies] [project.scripts] diff --git a/scaaml/__init__.py b/scaaml/__init__.py index ed59660d..eaea9de3 100644 --- a/scaaml/__init__.py +++ b/scaaml/__init__.py @@ -26,4 +26,4 @@ semver.compare is used to compare two versions of the SCAAML library. """ -__version__ = "3.0.0" +__version__ = "3.0.1"