Skip to main content

Version bumper and Python package releaser

Project description

Bump'X: Bump and release versions

Build Status PyPI - Last version PyPI - License PyPI - Python Version

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 bumpx

Usage

You can use directly the command line to setup every parameter:

bumpx 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:

[bumpx]
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:

bumpx -M  # Bump the major
bumpx     # Bump the default part aka. patch

Documentation

The documentation for the upstream project Bump'X is hosted on Read the Docs:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bumpx-0.3.10.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

bumpx-0.3.10-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file bumpx-0.3.10.tar.gz.

File metadata

  • Download URL: bumpx-0.3.10.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.6 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for bumpx-0.3.10.tar.gz
Algorithm Hash digest
SHA256 3139185d3b9c7ae6cd45edb9a51e18b6f2673c69137508fb0230353f99c0dae6
MD5 1b834f5d5fe2d3a9fc89cf03583dc3bd
BLAKE2b-256 0381e2f216d7098c2de4ab49fd65a48d77a07a802dfa962848bdee57f90ad246

See more details on using hashes here.

File details

Details for the file bumpx-0.3.10-py3-none-any.whl.

File metadata

  • Download URL: bumpx-0.3.10-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.6 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for bumpx-0.3.10-py3-none-any.whl
Algorithm Hash digest
SHA256 90fa97d8f19b6c3db77f453bbcb649d519303a45165fc8b623a96e182d3a8336
MD5 44d02c496d616e9465cbf660bc8b5732
BLAKE2b-256 4c236c3e1e858923713976fa3994e585f9d477b8c2b36e0a5e5c93305bdd6828

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page