CI version utility for managing versioning in development branches
Project description
CI-Ver
CI version utility for managing versioning in development branches, ensuring they are always higher than the versions in production branches.
Features
- Automatically verify that development branch versions are higher than production
- Increment version numbers when necessary
- Works with semantic versioning (major.minor.build)
- Git integration for branch detection
- Simple command-line interface
Installation
pip install ci-ver
Usage
CI-Ver provides two main commands:
Check Version
Verifies that the version in your development branch is higher than the production version:
ci-ver check path/to/your/version_file.py
Update Version
Automatically increments the build number if the development version is not higher than production:
ci-ver up path/to/your/version_file.py
Example Integration
Add to your CI workflows to ensure proper versioning:
- name: Check version
run: ci-ver check path/to/version_file.py
Configuration
CI-Ver automatically detects development branches (any branch that is not 'master' or 'develop').
The version file should contain a version string in the format:
__version__ = '1.0.0'
Development
# Install dependencies
make deps
# Run tests
make test
# Format code
make fmt
# Check code
make check
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ci_ver-1.0.1.tar.gz.
File metadata
- Download URL: ci_ver-1.0.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0d121d12bec40ae89066482e8c51341451defe5d96aa9323a9354acbd7be8b2
|
|
| MD5 |
7e0a58140a7e71527dacb6919d65955a
|
|
| BLAKE2b-256 |
efbd596211dbc45a26414983872ff5390f6014cedf65839a90031c47ea1f1e35
|
Provenance
The following attestation bundles were made for ci_ver-1.0.1.tar.gz:
Publisher:
python-publish.yml on Ruzzz/py-ci-ver
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ci_ver-1.0.1.tar.gz -
Subject digest:
e0d121d12bec40ae89066482e8c51341451defe5d96aa9323a9354acbd7be8b2 - Sigstore transparency entry: 193097738
- Sigstore integration time:
-
Permalink:
Ruzzz/py-ci-ver@7b538e373772d8c2bed9d22bf99c3396e762bca6 -
Branch / Tag:
refs/tags/1.0.1 - Owner: https://github.com/Ruzzz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@7b538e373772d8c2bed9d22bf99c3396e762bca6 -
Trigger Event:
release
-
Statement type:
File details
Details for the file ci_ver-1.0.1-py3-none-any.whl.
File metadata
- Download URL: ci_ver-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12419f5b0433565839a388975b4911bd2634eefa2d1e431334a6a9d0e4cfd392
|
|
| MD5 |
4456d66bae25664e7aee439ccd943a71
|
|
| BLAKE2b-256 |
8dcebbef1d71d020cfad150b46dd409c2cd00a8ddcdb1608b27640e58eda3b7a
|
Provenance
The following attestation bundles were made for ci_ver-1.0.1-py3-none-any.whl:
Publisher:
python-publish.yml on Ruzzz/py-ci-ver
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ci_ver-1.0.1-py3-none-any.whl -
Subject digest:
12419f5b0433565839a388975b4911bd2634eefa2d1e431334a6a9d0e4cfd392 - Sigstore transparency entry: 193097739
- Sigstore integration time:
-
Permalink:
Ruzzz/py-ci-ver@7b538e373772d8c2bed9d22bf99c3396e762bca6 -
Branch / Tag:
refs/tags/1.0.1 - Owner: https://github.com/Ruzzz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@7b538e373772d8c2bed9d22bf99c3396e762bca6 -
Trigger Event:
release
-
Statement type: