PyPI publish blocked: PYPI_TOKEN rejected with 403 #35

Closed
opened 2026-11-26 07:34:33 +00:00 by dsh · 2 comments
Member

The v0.1.0 tag triggered all three release workflows. Forgejo registry and the Forgejo release page succeeded, but the PyPI leg failed:

Publishing 2 files to https://upload.pypi.org/legacy/
Uploading wink-0.1.0-py3-none-any.whl
error: Failed to publish ...
Server returned status code 403 Forbidden. Server says: 403 Invalid or non-existent authentication information.

Action needed (operator-only): replace the repository Actions secret PYPI_TOKEN with a valid PyPI API token scoped to the wink project (or an account token that may create it), then rerun the failed Publish to PyPI job on tag v0.1.0.

No code change is needed unless the new token still fails; the Forgejo registry and release assets are already good.

The v0.1.0 tag triggered all three release workflows. Forgejo registry and the Forgejo release page succeeded, but the PyPI leg failed: ```text Publishing 2 files to https://upload.pypi.org/legacy/ Uploading wink-0.1.0-py3-none-any.whl error: Failed to publish ... Server returned status code 403 Forbidden. Server says: 403 Invalid or non-existent authentication information. ``` - Failing run: https://git.pvlb.dev/ml-lab/wink/actions/runs/26 - Workflow: `.forgejo/workflows/publish-pypi.yml` - Secret: `PYPI_TOKEN` - PyPI project `wink` is still 404 for 0.1.0; the name was free when checked. Action needed (operator-only): replace the repository Actions secret `PYPI_TOKEN` with a valid PyPI API token scoped to the `wink` project (or an account token that may create it), then rerun the failed `Publish to PyPI` job on tag `v0.1.0`. No code change is needed unless the new token still fails; the Forgejo registry and release assets are already good.
Author
Member

Token is fixed — the retry got past auth. New blocker is the PyPI name policy, not credentials:

400 Bad Request
Server says: 400 The name 'wink' isn't allowed.

See https://docs.pypi.org/project-management/choosing-a-name/#why-isnt-my-desired-project-name-available — wink is prohibited/reserved/too similar, even though the JSON API 404s.

Forgejo package and release page are still fine; only the public PyPI leg is blocked.

Proposal: publish to PyPI as wink-diffusion (import stays wink, commands wtrain/wsample/weval stay). PyPI JSON is 404 for that name; it is descriptive and avoids the bare wink policy. That needs a package-name change in pyproject.toml, the publish endpoints, and a version decision (0.1.1 for a clean new tag is simplest; 0.1.0 would mean moving the existing tag/release, which I’d rather not do).

Operator decision needed: accept wink-diffusion (or another name), and whether to ship it as 0.1.1.

Token is fixed — the retry got past auth. New blocker is the **PyPI name policy**, not credentials: ```text 400 Bad Request Server says: 400 The name 'wink' isn't allowed. ``` See https://docs.pypi.org/project-management/choosing-a-name/#why-isnt-my-desired-project-name-available — `wink` is prohibited/reserved/too similar, even though the JSON API 404s. Forgejo package and release page are still fine; only the public PyPI leg is blocked. Proposal: publish to PyPI as **`wink-diffusion`** (import stays `wink`, commands `wtrain`/`wsample`/`weval` stay). PyPI JSON is 404 for that name; it is descriptive and avoids the bare `wink` policy. That needs a package-name change in `pyproject.toml`, the publish endpoints, and a version decision (`0.1.1` for a clean new tag is simplest; `0.1.0` would mean moving the existing tag/release, which I’d rather not do). Operator decision needed: accept `wink-diffusion` (or another name), and whether to ship it as 0.1.1.
Author
Member

Fixed. The name wink is rejected by PyPI policy, so v0.1.1 publishes as wink-diffusion (import stays wink).

All three tag workflows succeeded. Closing.

Fixed. The name `wink` is rejected by PyPI policy, so v0.1.1 publishes as **`wink-diffusion`** (import stays `wink`). - PyPI: https://pypi.org/project/wink-diffusion/0.1.1/ — wheel + sdist live - Forgejo: `ml-lab/pypi/wink-diffusion` 0.1.1 live - Release: https://git.pvlb.dev/ml-lab/wink/releases/tag/v0.1.1 — assets attached All three tag workflows succeeded. Closing.
dsh closed this issue 2026-11-26 07:59:27 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ml-lab/wink#35
No description provided.