https://github.com/lixelv/pypi-package-template
Pypi package template with integrated CI/CD on release
https://github.com/lixelv/pypi-package-template
cicd github-workflows pypi pypi-library-create pypi-package python python-lib python-library
Last synced: 2 months ago
JSON representation
Pypi package template with integrated CI/CD on release
- Host: GitHub
- URL: https://github.com/lixelv/pypi-package-template
- Owner: lixelv
- License: mit
- Created: 2025-04-06T15:54:06.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-04-06T16:21:40.000Z (9 months ago)
- Last Synced: 2025-07-13T13:59:32.548Z (6 months ago)
- Topics: cicd, github-workflows, pypi, pypi-library-create, pypi-package, python, python-lib, python-library
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pypi package template
[](https://github.com/features/actions)
[](https://www.python.org/)
[](https://pypi.org/)
A streamlined template for creating Python packages with an automated CI/CD pipeline.
## Features
- Automated publishing to PyPI on GitHub releases
- Version automatically synced from GitHub release tags
- requirements.txt support for project dependencies
- Pre-configured setup with pyproject.toml using PEP 517/518
- Includes build and twine for modern package distribution
## Setup Guide
1. **Create a new repository** from this template
2. **Configure your package**
- Update `pyproject.toml` with your package metadata (name, author, description)
- Version is automatically set from GitHub release tags during release publishing
- Edit `requirements.txt` to include your package dependencies
- Place your code inside your package folder (e.g., `your_package/`, in this example `summing_lixelv/`)
3. **Set up CI/CD**
- Generate a PyPI API token: [Get PyPI token](https://pypi.org/manage/account/token/)
- Add the token as `PYPI_TOKEN` in GitHub Secrets: [Create GitHub secret](https://github.com///settings/secrets/actions)
- Replace `` and `` with your actual GitHub account and repository names
4. **Release your package**
- Create a GitHub release with a semantic version tag (e.g., `v1.0.0`)
- The workflow will automatically update the version, build, and publish your package to PyPI
---
pip install your-package-name