Publishing to PyPI¶
Our template includes complete setup for automatic package publishing to PyPI.
Automatic Publishing¶
What Happens on Release¶
- Release Please creates release automatically based on conventional commits
- Publishing workflow triggers when GitHub release is created
- Package building with Hatchling
- PyPI publishing using API token
- Status notifications
Token Setup¶
Your generated project includes detailed token setup instructions in the SETUP.md file with step-by-step guidance for configuring PyPI API tokens and other required secrets.
Version Management¶
Release Please¶
Automatic version management via Release Please:
Conventional Commits¶
Use standard commit messages:
# New features
git commit -m "feat: add new feature"
# Bug fixes
git commit -m "fix: resolve issue with data processing"
# API changes
git commit -m "feat!: remove paramert. BREAKING CHANGE: change API signature"
Automatic Release Creation¶
- Commits with conventional commits
- Release Please analyzes changes
- Automatic creation of Pull Request with changelog
- Merge PR creates release
- Automatic publishing to PyPI
Publishing Monitoring¶
README Badges¶
[](https://badge.fury.io/py/your-package)
[](https://pypi.org/project/your-package/)
[](https://pepy.tech/project/your-package)
Download Statistics¶
- pepy.tech - download statistics
- pypistats.org - PyPI analytics
- libraries.io - dependency tracking
Benefits¶
- Automation: Publishing happens automatically
- Security: API token usage
- Reliability: Testing before publishing
- Transparency: Full process logs
- Speed: Fast publishing via GitHub Actions
- Standardization: Following PyPI best practices