Skip to content

Commit

Permalink
use dynamic version in pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
semuadmin committed Jan 1, 2025
1 parent eee2c44 commit ecc9cca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"editor.formatOnSave": true,
"modulename": "${workspaceFolderBasename}",
"distname": "${workspaceFolderBasename}",
"moduleversion": "1.0.0",
"moduleversion": "1.0.1",
}
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ build-backend = "setuptools.build_meta:__legacy__"

[project]
name = "sandpit"
dynamic = ["version"]
authors = [{ name = "semuadmin", email = "[email protected]" }]
maintainers = [{ name = "semuadmin", email = "[email protected]" }]
description = "Sandpit development, test and build environment"
version = "1.0.0"
license = { file = "LICENSE" }
readme = "README.md"
requires-python = ">=3.8"
Expand Down Expand Up @@ -51,6 +51,9 @@ test = [
"sphinx-rtd-theme",
]

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

[tool.black]
target-version = ['py39']

Expand Down
2 changes: 1 addition & 1 deletion src/sandpit/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
@author: semuadmin
"""

__version__ = "1.0.0"
__version__ = "1.0.1"

0 comments on commit ecc9cca

Please sign in to comment.