Skip to main content

CI-Ver

Python Version License

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

MIT

Release files for ci-ver 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ci-ver 1.0.1
File Size Uploaded
ci_ver-1.0.1.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ci-ver 1.0.1
File Interpreter ABI Platform
ci_ver-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.1 kB

Release files / ci_ver-1.0.1.tar.gz

Download URL ci_ver-1.0.1.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e0d121d12bec40ae89066482e8c51341451defe5d96aa9323a9354acbd7be8b2
BLAKE2b-256 checksum
How to use checksums
efbd596211dbc45a26414983872ff5390f6014cedf65839a90031c47ea1f1e35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 7, 2025.

Transparency log

Release files / ci_ver-1.0.1-py3-none-any.whl

Download URL ci_ver-1.0.1-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
12419f5b0433565839a388975b4911bd2634eefa2d1e431334a6a9d0e4cfd392
BLAKE2b-256 checksum
How to use checksums
8dcebbef1d71d020cfad150b46dd409c2cd00a8ddcdb1608b27640e58eda3b7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 7, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page