diff options
| -rw-r--r-- | docs/conf.py | 8 | ||||
| -rw-r--r-- | pyproject.toml | 3 |
2 files changed, 6 insertions, 5 deletions
diff --git a/docs/conf.py b/docs/conf.py index 47f1bac..762f67c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -14,6 +14,7 @@ # import os import sys +from importlib.metadata import version as get_version sys.path.insert(0, os.path.abspath('../notebook/')) @@ -25,10 +26,9 @@ author = 'Jan Jancar' sys.path.append(os.path.abspath('..')) -# The short X.Y version -version = '0.3.2' -# The full version, including alpha/beta/rc tags -release = '0.3.2' +release: str = get_version("pyecsca") +# for example take major/minor +version: str = ".".join(release.split('.')[:2]) # -- General configuration --------------------------------------------------- diff --git a/pyproject.toml b/pyproject.toml index 542cbba..3a0700e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,9 +5,10 @@ [project] name = "pyecsca" - version = "0.3.2" + dynamic = ["version"] authors = [ { name = "Jan Jancar", email = "johny@neuromancer.sk" }, + { name = "Jan Jancar"}, { name = "Tomas Jusko" }, { name = "Andrej Batora" }, { name = "Vojtech Suchanek" } |
