Skip to content

Commit d72c05b

Browse files
tiranclaude
authored andcommitted
ci: remove Test PyPI publishing
Test PyPI was initially introduced to verify the upload workflow. Now that the workflow is proven, Test PyPI is no longer needed. Remove the publish-test-pypi job and the local_scheme workaround that was only needed for Test PyPI compatibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Christian Heimes <cheimes@redhat.com>
1 parent 3fd1933 commit d72c05b

2 files changed

Lines changed: 0 additions & 32 deletions

File tree

.github/workflows/pypi.yaml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -35,36 +35,6 @@ jobs:
3535

3636
- uses: hynek/build-and-inspect-python-package@fe0a0fb1925ca263d076ca4f2c13e93a6e92a33e # v2.17.0
3737

38-
# push to Test PyPI on
39-
# - a new GitHub release is published
40-
# - a PR is merged into main branch
41-
publish-test-pypi:
42-
name: Publish packages to test.pypi.org
43-
environment: pypi
44-
if: |
45-
github.repository_owner == 'python-wheel-build' && (
46-
github.event.action == 'published' ||
47-
(github.event_name == 'push' && github.ref == 'refs/heads/main')
48-
)
49-
permissions:
50-
contents: read
51-
# see https://docs.pypi.org/trusted-publishers/
52-
id-token: write
53-
runs-on: ubuntu-latest
54-
needs: build-package
55-
56-
steps:
57-
- name: Fetch build artifacts
58-
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
59-
with:
60-
name: Packages
61-
path: dist
62-
63-
- name: Upload to Test PyPI
64-
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
65-
with:
66-
repository-url: https://test.pypi.org/legacy/
67-
6838
# push to Production PyPI on
6939
# - a new GitHub release is published
7040
publish-pypi:

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ exclude_lines = [
7575
]
7676

7777
[tool.setuptools_scm]
78-
# do not include +gREV local version, required for Test PyPI upload
79-
local_scheme = "no-local-version"
8078

8179
[tool.ruff]
8280
target-version = "py311"

0 commit comments

Comments
 (0)