Version bumper and Python package releaser
Project description
Bump'X: Bump and release versions
Bump'X is a version bumper and releaser forked from Bump'R. In a single CLI command, Bump'X can:
- Clean-up release artifact
- Bump version and tag it
- Build a source distribution and upload on PyPI
- Update version for a new development cycle
Bump'X intend to be customizable with the following features:
- Optional test suite run before bump
- Customizable with a config file
- Overridable by command line
- Extensible with hooks
Compatibility
Bump'X requires Python >=3.9
(and <4.0
)
Installation
You can install Bump'X with pip:
pip install bumpr
Usage
You can use directly the command line to setup every parameter:
bumpr fake/__init__.py README.rst -M -ps dev
But Bump'X is designed to work with a configuration file (bumpr.rc
by defaults).
Some features are only availables with the configuration file like:
- commit message customization
- hooks configuration
- multiline test, clean and publish commands
Here's an exemple:
[bumpr]
file = fake/__init__.py
vcs = git
tests = tox
publish = python setup.py sdist register upload
clean =
python setup.py clean
rm -rf *egg-info build dist
files = README.rst
[bump]
unsuffix = true
message = Bump version {version}
[prepare]
suffix = dev
message = Prepare version {version} for next development cycle
[changelog]
file = CHANGELOG.rst
bump = {version} ({date:%Y-%m-%d})
prepare = In development
[readthedoc]
id = fake
This way you only have to specify which part you want to bump on the command line:
bumpr -M # Bump the major
bumpr # Bump the default part aka. patch
Documentation
The documentation for the upstream project Bump'R is hosted on Read the Docs:
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 bumpx-0.3.9.tar.gz
.
File metadata
- Download URL: bumpx-0.3.9.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.10.16.3-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e056666660b0b04669494f61efe20dfa30b7349e2d7b2270154382bccfd47a4 |
|
MD5 | 70b48b367ace9bd18938544a9e6ff138 |
|
BLAKE2b-256 | 6bb7897e3ae2475f6935af3c61cebb3498352f44bbf6c8da13c5d1fc11bfd8da |
File details
Details for the file bumpx-0.3.9-py3-none-any.whl
.
File metadata
- Download URL: bumpx-0.3.9-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.10.16.3-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a04b8d453bfbc49aad611692999add2640f44c1eecbf5d1a9fa6cce2608cd2f1 |
|
MD5 | b1af2a25c0d02c25d4c990c013dc0dac |
|
BLAKE2b-256 | b02a0f2e70d310c3521bde46fb49600ff58a6e9c8f7a346f744115c66d43ecfa |