From 35c7b2ad612a4cdac5b472619031c1f20c1cc49c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dean=20Qui=C3=B1anola?= Date: Wed, 19 Nov 2025 03:11:51 -0800 Subject: [PATCH] fix: prevent PyPI local version rejection - 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 --- .github/workflows/CD-publish_to_pypi.yml | 2 ++ pyproject.toml | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/CD-publish_to_pypi.yml b/.github/workflows/CD-publish_to_pypi.yml index 3ff50f60..ed4abca4 100644 --- a/.github/workflows/CD-publish_to_pypi.yml +++ b/.github/workflows/CD-publish_to_pypi.yml @@ -49,6 +49,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Install uv uses: astral-sh/setup-uv@v6 diff --git a/pyproject.toml b/pyproject.toml index 2767a040..bd9be2ee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,6 +43,7 @@ Changelog = "https://github.com/runpod/runpod-python/blob/main/CHANGELOG.md" [tool.setuptools_scm] version_file = "runpod/_version.py" +local_scheme = "no-local-version" [project.scripts]