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 2, 2025
1 parent b4cf08b commit 42c0f1e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checkpr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, "3.10", "3.11", "3.12", "3.13.0-rc.3"]
python-version: [3.9, "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, "3.10", "3.11", "3.12", "3.13.0-rc.3"]
python-version: [3.9, "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4
Expand Down
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
"editor.formatOnSave": true,
"modulename": "${workspaceFolderBasename}",
"distname": "${workspaceFolderBasename}",
"moduleversion": "1.0.43",
}
27 changes: 6 additions & 21 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,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 @@ -176,31 +172,17 @@
],
"problemMatcher": []
},
{
"label": "Install No Depends",
"type": "process",
"command": "${config:python.defaultInterpreterPath}",
"args": [
"-m",
"pip",
"install",
"${workspaceFolder}/dist/${config:distname}-${config:moduleversion}-py3-none-any.whl",
"--user",
"--force-reinstall"
],
"problemMatcher": []
},
{
"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 @@ -213,6 +195,9 @@
"Build",
"Sphinx HTML"
],
"options": {
"cwd": "dist"
},
"problemMatcher": []
},
{
Expand Down
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[build-system]
requires = ["setuptools>=66.0.0", "wheel"]
build-backend = "setuptools.build_meta:__legacy__"
build-backend = "setuptools.build_meta"

[project]
name = "pynmeagps"
dynamic = ["version"]
authors = [{ name = "semuadmin", email = "semuadmin@semuconsulting.com" }]
maintainers = [{ name = "semuadmin", email = "semuadmin@semuconsulting.com" }]
description = "NMEA protocol parser and generator"
version = "1.0.43"
license = { file = "LICENSE" }
readme = "README.md"
requires-python = ">=3.9"
Expand Down Expand Up @@ -54,6 +54,9 @@ test = [
"sphinx-rtd-theme",
]

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

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

Expand Down

0 comments on commit 42c0f1e

Please sign in to comment.