Repository navigation
Prepare PyPI packaging and release workflow - #10
Merged
Merged
Conversation
- clean up project metadata: SPDX license expression, license file, classifiers, keywords, and project URLs - single-source the version from webvac.__version__ instead of duplicating it in pyproject.toml - add a tag-triggered Release workflow that builds, runs twine check, verifies the tag matches the package version, and publishes to PyPI via Trusted Publishing (no stored token) - document pip install webvac, the release checklist, and the changelog entry The first publish still needs the PyPI trusted publisher to be configured and a version/tag decision: v0.3.0 already exists, so this workflow will run on the next new tag.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #1 (do not close yet — the first upload is a manual, account-gated step)
What
Prepares the repo for
pip install webvac:pyproject.toml: SPDXlicense = "MIT"(replaces the deprecated TOML table), explicitlicense-files, classifiers, keywords, and project URLs. Build requirement raised tosetuptools>=77for PEP 639 support.version = "0.3.0"; the build now readswebvac.__version__via[tool.setuptools.dynamic]..github/workflows/release.yml): on av*tag, builds sdist + wheel, runstwine check, verifies the tag matcheswebvac.__version__, then publishes withpypa/gh-action-pypi-publishusing Trusted Publishing (OIDC, no stored token).pip install webvacinstall path;docs/RELEASE_CHECKLIST.mdgains a PyPI section;CHANGELOG.mdgets an Unreleased entry.Verification
Wheel metadata confirms
Version: 0.3.0,License-Expression: MIT, the five project URLs,Requires-Python: >=3.11, and the 3.11/3.12 classifiers.Still required for the actual publish (user)
webvacproject on PyPI (or a pending trusted publisher) with ownerShellghostt, repoWebVac, workflowrelease.yml.v0.3.0already exists and points at an older commit, so the tag-driven workflow needs a new tag. Either bumpwebvac/__init__.py(e.g.0.3.1) and tagv0.3.1, or upload 0.3.0 manually withtwine upload.