A simple script for bumping the version number of files in a package.
bumpy
looks for a file bumpy.toml
in the current working directory to determine which files should be bumped.
The bumpy.toml
file should contain an array called files_to_bump
. An example of a bumpy.toml
file looks like this:
files_to_bump = [
'src\\__init__.py',
'pyproject.toml',
'docs\\conf.py'
]
Use bumpy
from the command line. Change version numbers with a few simple args:
Bump the patch version by the given number.
Bump the minor version by the given number.
Bump the major version by the given number.
Prompts the user to enter a completely new version number.
bumpy --patch
Bump patch version by 1.
bumpy --major 2
Bump major version by 2.
bumpy --version
Get prompted for new version number.
bumpy
only supports simple numeric version numbers (e.g., 0.1.2). In the future bumpy
will support PEP-440 version formats.