Skip to content

Commit c3cd473

Browse files
authored
fix: prevent PyPI local version rejection (#468)
- Add fetch-depth: 0 to checkout step for full git history - Configure setuptools_scm local_scheme to strip local version identifiers - Fixes issue where shallow clone prevented tag detection - Resolves PyPI 400 error: local versions not allowed
1 parent fc299ed commit c3cd473

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/CD-publish_to_pypi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
steps:
5050
- name: Checkout code
5151
uses: actions/checkout@v4
52+
with:
53+
fetch-depth: 0
5254

5355
- name: Install uv
5456
uses: astral-sh/setup-uv@v6

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Changelog = "https://github.com/runpod/runpod-python/blob/main/CHANGELOG.md"
4343

4444
[tool.setuptools_scm]
4545
version_file = "runpod/_version.py"
46+
local_scheme = "no-local-version"
4647

4748

4849
[project.scripts]

0 commit comments

Comments
 (0)