A CLI utility for bumping the version of any file type
Project description
Bump Anything
Copyright 2019-2023 Caleb Evans
Released under the MIT license
Bump Anything is a command-line utility for incrementing the version It serves
as a more-flexible alternative to npm version
and similar tools because
Bump Anything can handle any arbitrary text file and has built-in support for
different types of projects.
Features
- Bump the version number in any arbitrary file
- Supports most project types (if no paths are supplied, automatically detects
package.json
in Node,setup.py
orpyproject.toml
in Python,style.css
for WordPress themes, etc.)
Installation
Bump Anything requires Python 3.9 or newer to run, so please ensure you have it installed.
pip3 install bump-anything
Usage
Bump Anything exposes to your shell a bump-anything
command (also aliased to
bump
). The only required argument is a keyword indicating how you want to
increment each version. It can be either major
, minor
, or patch
.
bump major # 1.2.3 -> 2.0.0
bump minor # 1.2.3 -> 1.3.0
bump patch # 1.2.3 -> 1.2.4
bump prerelease # 1.2.3-beta.1 -> 1.2.3-beta.2
With this syntax, Bump Anything will do its best to find the relevant files to bump. However, Bump Anything can also accept an optional list of one or more file paths whose versions to bump. Only the first occurrence of the version field in each file will be updated.
bump minor subdir/myfile1.json subdir/myfile2.toml
Auto-Detected Files
package.json
(Node)package-lock.json
(Node)setup.py
(Python)pyproject.toml
(Python)style.css
(WordPress Theme)<cwd name>.php
(WordPress Plugin)
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
Hashes for bump_anything-2.0.0b2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 050987481b8e431a3b3bc56ae041bb28180635ef4a4f1017cd6d79507abdea18 |
|
MD5 | a07a8544ffede5608f0c972eb2ffa702 |
|
BLAKE2b-256 | 2339aeeb3e232c4c572e7339df4a17c47c7781ba3bb3ca2f0b21bf97e2c0f0b3 |