From d828e01a7d57d9ca1f66b7f3c6105afb617e2dba Mon Sep 17 00:00:00 2001 From: Hadi Jannat Date: Thu, 26 Sep 2024 09:26:56 +0200 Subject: [PATCH] Implement automated versioning using setuptools_scm --- pyproject.toml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index bb0cb850..f1ff8f2d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,6 @@ build-backend = "setuptools.build_meta" [project] name = "basyx-python-sdk" -version = "1.0.0" description = "The Eclipse BaSyx Python SDK, an implementation of the Asset Administration Shell for Industry 4.0 systems" authors = [ { name = "The Eclipse BaSyx Authors", email = "admins@iat.rwth-aachen.de" } @@ -21,9 +20,15 @@ requires-python = ">=3.8" dependencies = [ "python-dateutil>=2.8,<3", "lxml>=4.2,<5", - "urllib3>=1.26,<2.0", + "urllib3>=1.26,<3", "pyecma376-2>=0.2.4" ] +# This line indicates that the version is dynamically determined +dynamic = ["version"] + +[tool.setuptools_scm] +# This section configures setuptools_scm +write_to = "basyx/version.py" # Optional: creates a version.py file in your package [project.optional-dependencies] dev = [ @@ -31,7 +36,6 @@ dev = [ "pycodestyle", "codeblocks", "coverage", - # You may want to keep other necessary development dependencies here ] [project.urls] @@ -45,5 +49,4 @@ basyx = ["py.typed"] "basyx.aas.examples.data" = ["TestFile.pdf"] [tool.setuptools.exclude-package-data] -"*" = ["test", "test.*"] - +"*" = ["test", "test.*"] \ No newline at end of file