Build and publish Python packages to PyPI with automated testing and validation.
- 🐍 Python 3.13+ support
- 📦 Multiple build backends (setuptools, poetry, hatchling)
- ✅ Automated testing before publish
- 🔍 Metadata verification
- 🚀 PyPI and TestPyPI support
- uses: jdfalk/release-python-action@v1
with:
pypi-token: ${{ secrets.PYPI_TOKEN }}| Input | Description | Required | Default |
|---|---|---|---|
python-version |
Python version | No | 3.13 |
package-dir |
Package directory | No | . |
build-backend |
Build backend | No | setuptools |
run-tests |
Run tests | No | true |
test-command |
Test command | No | pytest |
repository-url |
PyPI URL | No | PyPI production |
pypi-token |
PyPI token | Yes | - |
skip-existing |
Skip existing | No | false |
verify-metadata |
Verify metadata | No | true |
MIT