Publishing
Build Locally
python -m pip install -e ".[dev]"
python -m build
python -m twine check dist/*
TestPyPI
python -m twine upload --repository testpypi dist/*
python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple yedipy
PyPI Trusted Publishing
The included GitHub Actions workflow publishes when a GitHub release is published. Before using it:
- Push this directory to its intended GitHub repository.
- Configure that repository and the
publish.ymlworkflow as a trusted publisher in PyPI, or create a pending publisher for the project nameyedipy. - Create and publish a GitHub release with the intended version tag.
The workflow builds the distribution, checks it with Twine, and uploads it using GitHub's OpenID Connect identity. It does not require a PyPI token in the repository.