Skip to content

Commit f8f9bc8

Browse files
CopilotHaydnspass
andcommitted
Add dynamic versioning with setuptools_scm for dev versions
Co-authored-by: Haydnspass <16120273+Haydnspass@users.noreply.github.com>
1 parent 1ec3a12 commit f8f9bc8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212
with:
13+
fetch-depth: 0 # Fetch all history for setuptools_scm to determine version
1314
persist-credentials: false
1415
- name: Set up Python
1516
uses: actions/setup-python@v5

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[build-system]
2-
requires = ["setuptools>=61.0"]
2+
requires = ["setuptools>=61.0", "setuptools-scm>=8"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "roboreg"
7-
version = "0.4.6"
7+
dynamic = ["version"]
88
authors = [
99
{name="mhubii", email="m.huber_1994@hotmail.de"},
1010
{name="haydnspass", email="lucasraphael.mueller@gmail.com"},
@@ -55,3 +55,7 @@ rr-stereo-dr = "cli.rr_stereo_dr:main"
5555
where = ["."]
5656
include = ["roboreg*", "cli*"]
5757
exclude = ["test*"]
58+
59+
[tool.setuptools_scm]
60+
version_scheme = "guess-next-dev"
61+
local_scheme = "no-local-version"

0 commit comments

Comments
 (0)