Skip to content

ci: add guarded PyPI and TestPyPI publication workflow - #2

Merged
codeforester merged 1 commit into
mainfrom
ci/1-20260729-pypi-publication-workflow
Jul 29, 2026
Merged

ci: add guarded PyPI and TestPyPI publication workflow#2
codeforester merged 1 commit into
mainfrom
ci/1-20260729-pypi-publication-workflow

Conversation

@codeforester

Copy link
Copy Markdown
Contributor

Summary

Implements the standalone follow-up for Base issue #1744.

  • Builds one sdist and one wheel with python -m build.
  • Runs twine check and validates metadata, license data, py.typed, and the test boundary.
  • Installs the reviewed wheel across Python 3.10 through 3.14 and verifies base_cli.__version__.
  • Publishes the exact reviewed artifact only through protected TestPyPI/PyPI paths using trusted publishing.
  • Documents version/tag sequencing, environment setup, smoke tests, and recovery.
  • Makes VERSION the build metadata source of truth and exposes base_cli.__version__.

The workflow does not publish from pull requests or ordinary pushes to main.

Validation

  • python -m pytest -q (205 passed)
  • ./tests/validate.sh
  • python -m build --sdist --wheel
  • python scripts/validate_package_artifact.py dist
  • python -m twine check dist/*
  • Clean virtual-environment wheel install and version/import smoke test

Closes #1
References basefoundry/base#1744

@codeforester
codeforester marked this pull request as ready for review July 29, 2026 21:57
@codeforester
codeforester merged commit 9eef8ac into main Jul 29, 2026
11 checks passed
@codeforester
codeforester deleted the ci/1-20260729-pypi-publication-workflow branch July 29, 2026 21:57
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.

Add guarded PyPI and TestPyPI publication workflow

1 participant