Skip to main content

This is a package to bump version numbers in a project. Fully automated versioning. Prefer to bump2version package instructions.

Project description

For first-time users, please download the bump2v package as shown below:

pip install bump2v

Step 1: Make a Code Change

Step 2: Stage and Commit the Changes

You may stage and commit using the GUI method or the command line as shown below:

git add .
git commit -m "Describe your changes here"

Step 3: Assign the Tag 🏷️ and Push to GitHub

Example:

bump2v patch
bump2v minor
bump2v major
  • v0.0.1 👈🏻 Patch Version: This is typically reserved for bug fixes or minor improvements that are backward-compatible with the existing features.

  • v0.1.0 👈🏻 Minor Version: Reflects smaller, backward-compatible enhancements and features added to the software.

  • v1.0.0 👈🏻 Major Version: Indicates significant, potentially backward-incompatible changes to the software.

Note: _Always use ‘v’ before the version number._ vX.X.X This type of versioning is called Semantic Versioning (SemVer). To learn more about Semantic Versioning, click here.


For a new project, you need the following configuration:

Step 1: Create a .bumpversion.cfg file and an appInfo.py file.

Step 2: Populate the .bumpversion.cfg file with the data below:

[bumpversion]
current_version = 0.0.1
commit = False
tag = True
TAG_NAME = {new_version}
TAG_MESSAGE = "Release {new_version}: Changelog: {changelog}"

[bumpversion:file:app/appInfo.py]  # <- location to your appInfo.py file. Example: app/appInfo.py or appInfo.py or package.json for react/JS.

Step 3: Populate appInfo.py with information about your app as shown below (For React/JS, you only need .bumpversion.cfg and match the version in package.json with .bumpversion.cfg ) :

# File: app/appInfo.py
app_name = "Your App Name"
__version__ = "v0.0.1"  # Initial version, leave as it is.
description = "Describe your app here"
tags_metadata = "tags metadata here"

Step 4: Import appInfo.py to your main.py and use the variables from appInfo.py to assign your version, app name, and description as shown below:

from appInfo import __version__, app_name, description, tags_metadata
from fastapi import FastAPI

app = FastAPI(
    title=app_name,
    description=description,
    version=f" 🏭 Prod:{__version__} ",
    openapi_tags=tags_metadata
)

PS. 👾 Fun Tip: 👾 You can use alternative commands like versionkaboom, or bumptydumpty instead of bump2v.

Example:

versionkaboom patch
bumptydumpty patch

This release of the bump2v package brings a set of enhancements, bug fixes, and new features aimed at improving functionality and user experience. The version is deemed production-ready.

## Readiness for Production

This version has undergone thorough testing and is considered stable for production use.

## Upgrade Instructions

If you are upgrading from a previous version, please follow the upgrade instructions in the documentation.

## Contributors

This package is built on top of Bump2version. A sincere thank you to all contributors who participated in making this release possible.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bump2v-1.2.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file bump2v-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: bump2v-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for bump2v-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7ef79c58b0bcc2e1d3cc3d1ee5356ee692078c5dfb06cadcfdc3d28ccd10b891
MD5 bbccf8a6135d9dac8007a985d5621688
BLAKE2b-256 0a084833f413d172bc7de0f06f6c45917a3ea253f45a6de31c680f304aa66cb3

See more details on using hashes here.

Supported by

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