Skip to main content

Simple semantic version management for Python projects

Project description

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

Project details


Download files

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

Source Distribution

wl_version_manager-0.1.32.tar.gz (7.5 kB view details)

Uploaded Source

File details

Details for the file wl_version_manager-0.1.32.tar.gz.

File metadata

  • Download URL: wl_version_manager-0.1.32.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for wl_version_manager-0.1.32.tar.gz
Algorithm Hash digest
SHA256 72ba8c6b07655e82c2b6514760c9ffdfb4892bf8955faaaa27f9e572bcabc778
MD5 9a70dd42e05f270eafe29696bd40ce3e
BLAKE2b-256 4be79212325a02105b17e69591875531d08401630f6245a2413eed765900d0a0

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