Automatic package release upon pull request merge
Project description
AutoPub
AutoPub enables project maintainers to release new package versions to PyPI by merging pull requests.
Environment
AutoPub is intended for use with continuous integration (CI) systems such as GitHub Actions, CircleCI, or Travis CI. Projects used with AutoPub are built via build and published via Twine. Contributions that add support for other CI and build systems are welcome.
Configuration
AutoPub settings can be configured via the [tool.autopub]
table in the target project’s pyproject.toml
file. Required settings include Git username and email address:
[tool.autopub]
git-username = "Your Name"
git-email = "your_email@example.com"
Release Files
Contributors should include a RELEASE.md
file in their pull requests with two bits of information:
- Release type: major, minor, or patch
- Description of the changes, to be used as the changelog entry
Example:
Release type: patch
Add function to update version strings in multiple files.
Usage
The following autopub
sub-commands can be used as steps in your CI flows:
autopub check
: Check whether release file exists.autopub prepare
: Update version strings and add entry to changelog.autopub build
: Build the project.autopub commit
: Add, commit, and push incremented version and changelog changes.autopub githubrelease
: Create a new release on GitHub.autopub publish
: Publish a new release.
For systems such as Travis CI in which only one deployment step is permitted, there is a single command that runs the above steps in sequence:
autopub deploy
: Runprepare
,build
,commit
,githubrelease
, andpublish
in one invocation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file autopub-0.4.0.tar.gz
.
File metadata
- Download URL: autopub-0.4.0.tar.gz
- Upload date:
- Size: 29.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.11.9 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8926366f9e6e21e506bd64a4f89863d878231811df04398f23f6ff40085499f7 |
|
MD5 | 1c4dd235b28b9c5f67168ae4dd71bf78 |
|
BLAKE2b-256 | 9a7435ca5123d9ecc0c194265ad377f9853639917218a4423b2ef75d37fd14fc |
File details
Details for the file autopub-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: autopub-0.4.0-py3-none-any.whl
- Upload date:
- Size: 35.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.11.9 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8083bca6968fa89ce5177eb701c6df50ed6cf62bbdfa92d238b2d8d7f940519 |
|
MD5 | d0389af97e860df101f6bdc04d54d65f |
|
BLAKE2b-256 | 77202557360b06a066e811332d8a39927a3e814ec65359ddd0a57f8f92b3f5eb |