Skip to content

Commit 552d3fb

Browse files
authored
Merge pull request #123 from lbr-stack/copilot/investigate-pip-package-push-error
Fix TestPyPI publish failure with dynamic dev versioning
2 parents 696722d + f8f9bc8 commit 552d3fb

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 2 additions & 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
@@ -117,4 +118,5 @@ jobs:
117118
uses: pypa/gh-action-pypi-publish@release/v1
118119
with:
119120
repository-url: https://test.pypi.org/legacy/
121+
skip-existing: true
120122
verbose: true

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)