Skip to content

Commit ab5844a

Browse files
committed
Use poetry-setuptools-scm-plugin to derive version
1 parent 13806ec commit ab5844a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Install build dependencies
3737
run: |
3838
python -m pip install --upgrade pip
39-
python -m pip install build setuptools-scm
39+
python -m pip install build setuptools-scm poetry-setuptools-scm-plugin
4040
4141
- name: Check version detection
4242
run: |

pyproject.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "cvasl-gui"
3-
version = "0.1.4"
3+
version = "0.0.0" # Managed by setuptools-scm
44
description = "A GUI for the cvasl package"
55
authors = ["Peter Kok <[email protected]>"]
66
license = "Apache 2.0"
@@ -25,5 +25,10 @@ pyinstaller = "^6.11.0"
2525
cvasl-gui = "cvasl_gui.index:main"
2626

2727
[build-system]
28-
requires = ["poetry-core"]
28+
requires = ["poetry-core>=1.0.0", "setuptools-scm>=8.0", "poetry-setuptools-scm-plugin"]
2929
build-backend = "poetry.core.masonry.api"
30+
31+
[tool.setuptools_scm]
32+
# Version is automatically derived from git tags
33+
version_scheme = "guess-next-dev"
34+
local_scheme = "no-local-version"

0 commit comments

Comments
 (0)