Skip to content

chore: drop the PyPI publishing scaffolding - #21

Open
emmanuel-defreitas wants to merge 1 commit into
release/v0.2.0from
chore/remove-pypi-publish
Open

chore: drop the PyPI publishing scaffolding#21
emmanuel-defreitas wants to merge 1 commit into
release/v0.2.0from
chore/remove-pypi-publish

Conversation

@emmanuel-defreitas

Copy link
Copy Markdown
Member

Prerequisite for releasing v0.2.0.

Problem

publish.yml fires on push: tags: v* and tries to build a Python wheel and publish it to PyPI under the corpora-py name — a different repo's package. This repo has no pyproject.toml and ships no Python package; it's leftover repo-template scaffolding.

This is not harmlessly dormant. release.yml pushes the release tag with an App token specifically so downstream tag workflows fire — its own comment says "everything downstream hangs off the tag ... events raised by GITHUB_TOKEN do not start workflow runs — so the tag MUST be created with [the App token]". The first release cut from this repo would have triggered it.

Nothing had ever cut a release here before, which is why it went unnoticed: main accepted direct pushes until the guard was activated in #18.

Change

  • Delete .github/workflows/publish.yml
  • Delete .github/actions/build-dist/ and .github/actions/publish-pypi/ — used by nothing else (verified across all workflows)
  • Keep .github/actions/setup/release.yml still uses it
  • Drop the pip dependabot ecosystem; there are no Python manifests here to scan

make ci passes (25 pages validated).

Note on the branch model

Targeting release/v0.2.0 rather than main, per the model activated in #18. This is the first change to go through it.

corpora-docs is a documentation site. It has no pyproject.toml and ships no
Python package, but publish.yml still fires on every v* tag and tries to build
a wheel and publish it to PyPI as corpora-py — a different repo's package.

That is not dormant. release.yml pushes the release tag with an App token
specifically so downstream tag workflows fire ("everything downstream hangs off
the tag"), so the first release cut from this repo would have run it.

Removes publish.yml and the two composite actions only it used. Keeps
.github/actions/setup, which release.yml still needs. Also drops the pip
dependabot ecosystem, which has no manifests to scan here.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant