Skip to content

Commit c218fcc

Browse files
committed
ci: remove publishing to testpypi
We can't run uv publish on every commit because the version in pyproject.toml doesn't change that frequently, and the command fails if we try to upload different files to the previous version. The only way this would work is if we changed the version prior to running uv publish, which would result in us running out of space in testpypi, so just don't bother now we have the publish pipeline working.
1 parent 224cefd commit c218fcc

File tree

2 files changed

+0
-43
lines changed

2 files changed

+0
-43
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -58,36 +58,3 @@ jobs:
5858
version: "0.5.13"
5959
- name: Publish distribution 📦 to PyPI
6060
run: uv publish
61-
62-
publish-to-testpypi:
63-
name: Publish Python 🐍 distribution 📦 to TestPyPI
64-
needs:
65-
- build
66-
runs-on: ubuntu-latest
67-
68-
environment:
69-
name: testpypi
70-
url: https://test.pypi.org/p/mcp-grafana
71-
72-
permissions:
73-
id-token: write # IMPORTANT: mandatory for trusted publishing
74-
75-
steps:
76-
# We need to checkout the repository so that we can use the
77-
# testpypi index in pyproject.toml.
78-
- uses: actions/checkout@v4
79-
with:
80-
persist-credentials: false
81-
- name: Download all the dists
82-
uses: actions/download-artifact@v4
83-
with:
84-
name: python-package-distributions
85-
path: dist/
86-
87-
- name: Install uv
88-
uses: astral-sh/setup-uv@v5
89-
with:
90-
# Install a specific version of uv.
91-
version: "0.5.13"
92-
- name: Publish distribution 📦 to TestPyPI
93-
run: uv publish --index testpypi

pyproject.toml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,3 @@ build-backend = "hatchling.build"
3434

3535
[tool.pytest.ini_options]
3636
asyncio_default_fixture_loop_scope = "session"
37-
38-
[[tool.uv.index]]
39-
name = "pypi"
40-
url = "https://pypi.org/simple/"
41-
publish-url = "https://pypi.org/legacy/"
42-
43-
[[tool.uv.index]]
44-
name = "testpypi"
45-
url = "https://test.pypi.org/simple/"
46-
publish-url = "https://test.pypi.org/legacy/"

0 commit comments

Comments
 (0)