Skip to main content

CI version utility for managing versioning in development branches

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ci_ver-1.0.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ci_ver-1.0.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

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

Hashes for ci_ver-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e0d121d12bec40ae89066482e8c51341451defe5d96aa9323a9354acbd7be8b2
MD5 7e0a58140a7e71527dacb6919d65955a
BLAKE2b-256 efbd596211dbc45a26414983872ff5390f6014cedf65839a90031c47ea1f1e35

See more details on using hashes here.

Provenance

The following attestation bundles were made for ci_ver-1.0.1.tar.gz:

Publisher: python-publish.yml on Ruzzz/py-ci-ver

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for ci_ver-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 12419f5b0433565839a388975b4911bd2634eefa2d1e431334a6a9d0e4cfd392
MD5 4456d66bae25664e7aee439ccd943a71
BLAKE2b-256 8dcebbef1d71d020cfad150b46dd409c2cd00a8ddcdb1608b27640e58eda3b7a

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page