https://github.com/codewell/pypi-publish-template
https://github.com/codewell/pypi-publish-template
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/codewell/pypi-publish-template
- Owner: codewell
- License: mit
- Created: 2020-09-04T07:40:33.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-04T07:52:37.000Z (almost 6 years ago)
- Last Synced: 2025-10-30T21:55:28.317Z (8 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pypi publish template
A simple template for a cli to publish python libraries in a safe and consitent way to pypi.
It runs tests and ensure a clean repo before publish and handles the git tagging of the release in a sane way.
## Requirements
* git
* python
* twine
* pytest
## How to setup
* Copy `publish.sh` to the project root
* Replace `` with the name of the library.
## How to use
To publish version `0.13.37`
* Run `./publish.sh 0.13.37`
* Follow instructions
* The script will only push the git tags if the tests pass
* The script will try its best to clean up the git state after itselves when it fails, but this is not a guarantee, double check with `git status` when recovering after a failure.