Skip to main content

WL Version Manager

A simple Python package for managing semantic versions in Python projects.

Features

  • Automatic version bumping (patch, minor, major)
  • Updates both VERSION file and setup.py
  • Command-line interface
  • Python API for programmatic use
  • Follows semantic versioning (major.minor.patch)

Installation

pip install wl_wl_version_manager

Usage

Command Line

# Initialize version file
wl_version_manager init

# Show current version
wl_version_manager current

# Bump versions
wl_version_manager patch   # 1.0.0 -> 1.0.1
wl_version_manager minor   # 1.0.1 -> 1.1.0
wl_version_manager major   # 1.1.0 -> 2.0.0

# Set specific version
wl_version_manager set 1.2.3

Python API

from wl_version_manager import VersionManager

vm = VersionManager()

# Read current version
current = vm.read_version()

# Bump versions
new_version = vm.bump_patch()
new_version = vm.bump_minor()
new_version = vm.bump_major()

# Set specific version
vm.set_version("2.1.0")

Integration with Makefile

build:
	wl_version_manager patch
	python setup.py sdist

File Structure

The tool expects:

  • VERSION file containing current version
  • setup.py with version= line to update

Options

wl_version_manager --version-file custom_version.txt --setup-file custom_setup.py current

License

BSD 3-Clause License

Metadata

Release files for wl-version-manager 0.1.32

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wl-version-manager 0.1.32
File Size Uploaded
wl_version_manager-0.1.32.tar.gz 7.5 kB Details

Release files / wl_version_manager-0.1.32.tar.gz

Download URL wl_version_manager-0.1.32.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
72ba8c6b07655e82c2b6514760c9ffdfb4892bf8955faaaa27f9e572bcabc778
BLAKE2b-256 checksum
How to use checksums
4be79212325a02105b17e69591875531d08401630f6245a2413eed765900d0a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.1.32 This release

1 release file

0.1.19

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page