Skip to content

Commit 93751fa

Browse files
committed
use dynamic version in pyproject.toml
1 parent ba9bfce commit 93751fa

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

.vscode/launch.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"configurations": [
77
{
88
"name": "Python: Module",
9-
"type": "python",
9+
"type": "debugpy",
1010
"request": "launch",
1111
"module": "pymandel"
1212
}

.vscode/settings.json

-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@
66
"editor.formatOnSave": true,
77
"modulename": "pymandel",
88
"distname": "pymandel",
9-
"moduleversion": "1.0.13"
109
}

.vscode/tasks.json

+6-7
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,6 @@
128128
"type": "process",
129129
"command": "sphinx-apidoc",
130130
"args": [
131-
"--doc-project=${config:modulename}",
132-
"--doc-author=semuadmin",
133-
"--doc-version=${config:moduleversion}",
134-
"--doc-release=${config:moduleversion}",
135131
"--ext-autodoc",
136132
"--ext-viewcode",
137133
"--templatedir=docs",
@@ -180,15 +176,15 @@
180176
},
181177
{
182178
"label": "Install Locally",
183-
"type": "process",
179+
"type": "shell",
184180
"command": "${config:python.defaultInterpreterPath}",
185181
"args": [
186182
"-m",
187183
"pip",
188184
"install",
189-
"${workspaceFolder}/dist/${config:distname}-${config:moduleversion}-py3-none-any.whl",
190185
"--user",
191-
"--force-reinstall"
186+
"--force-reinstall",
187+
"*.whl"
192188
],
193189
"dependsOrder": "sequence",
194190
"dependsOn": [
@@ -202,6 +198,9 @@
202198
"Build",
203199
"Sphinx HTML"
204200
],
201+
"options": {
202+
"cwd": "dist"
203+
},
205204
"problemMatcher": []
206205
},
207206
]

pyproject.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ build-backend = "setuptools.build_meta:__legacy__"
44

55
[project]
66
name = "pymandel"
7+
dynamic = ["version"]
78
authors = [{ name = "semuadmin", email = "[email protected]" }]
89
maintainers = [{ name = "semuadmin", email = "[email protected]" }]
910
description = "Fractal generation GUI application"
10-
version = "1.0.13"
1111
license = { file = "LICENSE" }
1212
keywords = [
1313
"PyMandel",
@@ -65,6 +65,9 @@ test = [
6565
"sphinx-rtd-theme",
6666
]
6767

68+
[tool.setuptools.dynamic]
69+
version = { attr = "pymandel._version.__version__" }
70+
6871
[tool.black]
6972
line-length = 88
7073
target-version = ['py39']

0 commit comments

Comments
 (0)