Skip to content

Commit

Permalink
Disable local version suffix only on CI builds
Browse files Browse the repository at this point in the history
Pypi blocks the uploading of packages with a local version even on the test instance
  • Loading branch information
num0005 committed Dec 14, 2024
1 parent 000c8f6 commit 0b95efa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
with:
allow-prereleases: true
python-version: "3.13"
- name: Disable local version
run: sed -i -e '/\[tool.setuptools_scm\]/a\' -e 'local_scheme = "no-local-version"' pyproject.toml
- name: Install build tool
run: python -m pip install build --user
- name: build
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ include-package-data = true

[tool.setuptools.package-dir]

# needed, CI will insert local_scheme = "no-local-version" using sed
[tool.setuptools_scm]
local_scheme = "no-local-version"

0 comments on commit 0b95efa

Please sign in to comment.