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

Step 3: Populate appInfo.py with information about your app as shown below:

# 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, bismillah, or bumptydumpty instead of bump2v.

Example:

versionkaboom patch
bismillah 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

bump2v-1.1.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bump2v-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for bump2v-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a5c22349c3866271a8dad2f3f9e86f5e62b9a2516bdbba2d8781e4aad0f4886b
MD5 50d47ab053aa4771d488dcd2c71ee04f
BLAKE2b-256 b9d77a1e9e9faee372e7fba0a86208747c6b58992c42e890aa566942d8081983

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