https://github.com/trstringer/verpy
:snake: Python application versioning tool
https://github.com/trstringer/verpy
python versioning
Last synced: 9 months ago
JSON representation
:snake: Python application versioning tool
- Host: GitHub
- URL: https://github.com/trstringer/verpy
- Owner: trstringer
- Created: 2017-10-10T12:46:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-10T18:48:18.000Z (over 8 years ago)
- Last Synced: 2025-03-31T03:15:10.633Z (10 months ago)
- Topics: python, versioning
- Language: Python
- Homepage:
- Size: 64.5 KB
- Stars: 15
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Verpy
Python application versioning tool

## Setup
This is a Docker-native application (i.e. I developed this with the conscious effort to run it as a container). With that being said, to run it in Docker you'll of course have to have Docker installed and running.
To create the necessary components, simply from `$ . install.sh` from the root of the repo.
*Note: I'm sure with very little work you could get this to run in a virtual environment or (not advised) outside of a virtual environment. If there is interest in this, I would create the script or (better yet) accept a pull request.*
## Usage
- Initialize the version file (`version.py`): `$ verpy init`
- Display the current version: `$ verpy version`
- Increment the *major* component of the version: `$ verpy version major`
- Increment the *minor* component of the version: `$ verpy version minor`
- Increment the *patch* component of the version: `$ verpy version patch`
- Display help: `$ verpy --help` or `$ verpy`
- Display the Verpy version: `$ verpy --version`
## Updates
This happens automatically. If you run `$ type verpy` you'll see that the shell function does a `docker pull`.