Skip to content

Commit a92f16b

Browse files
build(sdist): drop .github/workflows so CI-only commits stop moving the sdist hash (#58)
1 parent 83c3003 commit a92f16b

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,5 @@ jobs:
2626
- name: Publish to PyPI
2727
env:
2828
UV_PUBLISH_TOKEN: ${{ secrets.TANGO_PYPI_TOKEN }}
29-
# --check-url makes the upload idempotent: uv queries the index first and skips
30-
# files already present instead of failing the run. Without it, any version that
31-
# reached PyPI by another route — a manual `uv publish`, a re-run of this
32-
# workflow — makes the GitHub Release that follows it go red for no real reason.
29+
# --check-url skips files already on the index, so re-running this is a no-op rather than an error.
3330
run: uv publish --check-url https://pypi.org/simple/

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,14 @@ packages = ["tango"]
126126
# diaries, scratch reports, etc.) when anyone runs `uv publish` locally.
127127
# The explicit whitelist is belt-and-suspenders for that foot-gun: even
128128
# from a developer laptop, only these paths can ever end up on PyPI.
129+
#
130+
# `.github/workflows` is excluded on purpose: shipping it moves the sdist hash on every CI-only commit, which breaks `--check-url`.
129131
[tool.hatch.build.targets.sdist]
130132
include = [
131133
"/tango",
132134
"/tests",
133135
"/docs",
134136
"/scripts",
135-
"/.github/workflows",
136137
"/README.md",
137138
"/LICENSE",
138139
"/CHANGELOG.md",

0 commit comments

Comments
 (0)