# 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
```bash
pip install wl_wl_version_manager
```
## Usage
### Command Line
```bash
# 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
```python
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
```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
```bash
wl_version_manager --version-file custom_version.txt --setup-file custom_setup.py current
```
## License
BSD 3-Clause License
Raw data
{
"_id": null,
"home_page": "https://github.com/watkinslabs/version_manager",
"name": "wl-version-manager",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "version, versioning, semantic, semver, build, packaging",
"author": "Chris Watkins",
"author_email": "chris@watkinslabs.com",
"download_url": "https://files.pythonhosted.org/packages/4b/e7/9212325a02105b17e69591875531d08401630f6245a2413eed765900d0a0/wl_version_manager-0.1.32.tar.gz",
"platform": null,
"description": "# WL Version Manager\n\nA simple Python package for managing semantic versions in Python projects.\n\n## Features\n\n- Automatic version bumping (patch, minor, major)\n- Updates both VERSION file and setup.py\n- Command-line interface\n- Python API for programmatic use\n- Follows semantic versioning (major.minor.patch)\n\n## Installation\n\n```bash\npip install wl_wl_version_manager\n```\n\n## Usage\n\n### Command Line\n\n```bash\n# Initialize version file\nwl_version_manager init\n\n# Show current version\nwl_version_manager current\n\n# Bump versions\nwl_version_manager patch # 1.0.0 -> 1.0.1\nwl_version_manager minor # 1.0.1 -> 1.1.0\nwl_version_manager major # 1.1.0 -> 2.0.0\n\n# Set specific version\nwl_version_manager set 1.2.3\n```\n\n### Python API\n\n```python\nfrom wl_version_manager import VersionManager\n\nvm = VersionManager()\n\n# Read current version\ncurrent = vm.read_version()\n\n# Bump versions\nnew_version = vm.bump_patch()\nnew_version = vm.bump_minor()\nnew_version = vm.bump_major()\n\n# Set specific version\nvm.set_version(\"2.1.0\")\n```\n\n### Integration with Makefile\n\n```makefile\nbuild:\n\twl_version_manager patch\n\tpython setup.py sdist\n```\n\n## File Structure\n\nThe tool expects:\n- `VERSION` file containing current version\n- `setup.py` with version= line to update\n\n## Options\n\n```bash\nwl_version_manager --version-file custom_version.txt --setup-file custom_setup.py current\n```\n\n## License\n\nBSD 3-Clause License\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Simple semantic version management for Python projects",
"version": "0.1.32",
"project_urls": {
"Bug Tracker": "https://github.com/watkinslabs/version_manager/issues",
"Documentation": "https://github.com/watkinslabs/version_manager",
"Homepage": "https://github.com/watkinslabs/version_manager",
"Source Code": "https://github.com/watkinslabs/version_manager"
},
"split_keywords": [
"version",
" versioning",
" semantic",
" semver",
" build",
" packaging"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "4be79212325a02105b17e69591875531d08401630f6245a2413eed765900d0a0",
"md5": "9a70dd42e05f270eafe29696bd40ce3e",
"sha256": "72ba8c6b07655e82c2b6514760c9ffdfb4892bf8955faaaa27f9e572bcabc778"
},
"downloads": -1,
"filename": "wl_version_manager-0.1.32.tar.gz",
"has_sig": false,
"md5_digest": "9a70dd42e05f270eafe29696bd40ce3e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 7506,
"upload_time": "2025-07-20T16:25:59",
"upload_time_iso_8601": "2025-07-20T16:25:59.159547Z",
"url": "https://files.pythonhosted.org/packages/4b/e7/9212325a02105b17e69591875531d08401630f6245a2413eed765900d0a0/wl_version_manager-0.1.32.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-20 16:25:59",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "watkinslabs",
"github_project": "version_manager",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "wl-version-manager"
}