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 05bf8b4 commit deca110
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@
"python.defaultInterpreterPath": "python3",
"modulename": "${workspaceFolderBasename}",
"distname": "${workspaceFolderBasename}",
"moduleversion": "1.1.9"
}
13 changes: 6 additions & 7 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,6 @@
"type": "process",
"command": "sphinx-apidoc",
"args": [
"--doc-project=${config:modulename}",
"--doc-author=semuadmin",
"--doc-version=${config:moduleversion}",
"--doc-release=${config:moduleversion}",
"--ext-autodoc",
"--ext-viewcode",
"--templatedir=docs",
Expand Down Expand Up @@ -180,15 +176,15 @@
},
{
"label": "Install Locally",
"type": "process",
"type": "shell",
"command": "${config:python.defaultInterpreterPath}",
"args": [
"-m",
"pip",
"install",
"${workspaceFolder}/dist/${config:distname}-${config:moduleversion}-py3-none-any.whl",
"--user",
"--force-reinstall"
"--force-reinstall",
"*.whl"
],
"dependsOrder": "sequence",
"dependsOn": [
Expand All @@ -202,6 +198,9 @@
"Build",
"Sphinx HTML"
],
"options": {
"cwd": "dist"
},
"problemMatcher": []
},
]
Expand Down
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 = "pygnssutils"
dynamic = ["version"]
authors = [{ name = "semuadmin", email = "[email protected]" }]
maintainers = [{ name = "semuadmin", email = "[email protected]" }]
description = "GNSS Command Line Utilities"
version = "1.1.9"
license = { file = "LICENSE" }
readme = "README.md"
requires-python = ">=3.9"
Expand Down Expand Up @@ -67,6 +67,9 @@ test = [
"sphinx-rtd-theme",
]

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

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

Expand Down

0 comments on commit deca110

Please sign in to comment.