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:
VERSIONfile containing current versionsetup.pywith 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wl_version_manager-0.1.32.tar.gz | 7.5 kB | Without provenance | Details for wl_version_manager-0.1.32.tar.gz |
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
|
Security for wl-version-manager 0.1.32
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.