From ecc9cca141284fda2a41c64ffdfc4910295eb360 Mon Sep 17 00:00:00 2001 From: semuadmin <28569967+semuadmin@users.noreply.github.com> Date: Wed, 1 Jan 2025 14:56:46 +0000 Subject: [PATCH] use dynamic version in pyproject.toml --- .vscode/settings.json | 2 +- pyproject.toml | 5 ++++- src/sandpit/_version.py | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index ed3a488..46c813c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,5 +4,5 @@ "editor.formatOnSave": true, "modulename": "${workspaceFolderBasename}", "distname": "${workspaceFolderBasename}", - "moduleversion": "1.0.0", + "moduleversion": "1.0.1", } \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index f0b6247..5830d05 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,10 +4,10 @@ build-backend = "setuptools.build_meta:__legacy__" [project] name = "sandpit" +dynamic = ["version"] authors = [{ name = "semuadmin", email = "semuadmin@semuconsulting.com" }] maintainers = [{ name = "semuadmin", email = "semuadmin@semuconsulting.com" }] description = "Sandpit development, test and build environment" -version = "1.0.0" license = { file = "LICENSE" } readme = "README.md" requires-python = ">=3.8" @@ -51,6 +51,9 @@ test = [ "sphinx-rtd-theme", ] +[tool.setuptools.dynamic] +version = { attr = "sandpit._version.__version__" } + [tool.black] target-version = ['py39'] diff --git a/src/sandpit/_version.py b/src/sandpit/_version.py index dd7d1c6..20014cc 100644 --- a/src/sandpit/_version.py +++ b/src/sandpit/_version.py @@ -4,4 +4,4 @@ @author: semuadmin """ -__version__ = "1.0.0" +__version__ = "1.0.1"