Skip to main content

pyv

pyv is a command-line interface (CLI) application for managing versioning in a using Python.

It correspond to a versionning plan explained in the versionning_plan

Installation

  1. From pypi:
pip install pyv
  1. Clone the repository:
git clone https://github.com/your-username/pyv.git

# Navigate to the project directory:
cd versioning-cli

# Install the required dependencies:
pip install -r requirements.txt

Versioning App Usage

Run the CLI app using the following command format:

pyv app --dev <dev_subversion> --prod <prod_subversion> <action> [--level <level>]

Replace <dev_subversion> with the dev subversion in the format Vx.y.z , and <prod_subversion> with the prod subversion in the format Vx.y.z. The <action> parameter can be either post_prod or push_prod. The optional --level parameter specifies the level for the post_prod action (default: 1).

  • initialize the state as:
    • dev subversion: V{n}.0.0: for example V2.0.0
    • prod subversion (not_required if n==0): V{n-1}.p.q
  • actions
    • post_prod: return the version to create V{n-1}.(p+1).q if --level=1 or V{n-1}.p.(q+1) --level=1 (1 by default)
    • push_prod: return the version to create V{n+1}.0.0

If you have cloned the repository, instead, use python pyv/main.py instead of pyv

Examples

pyv app --dev V3.0.0 --prod V1.2.3 push_prod --level 2
pyv app --dev V2.0.0 --prod V1.2.3 post_prod --level 2

other examples:

$ pyv app --dev V3.0.0 --prod V1.2.3 push_prod --level 2
>> error: V3 do not follow V1

$ pyv app --dev V3.0.0 push_prod --level 2
>> error: if prod is not set dev should be V0.0.0 or V1.0.0

$ pyv app --dev V2.0.0 --prod V1.2.3 post_prod --level 2
>> your new version V1.2.4

$ pyv app --dev V2.0.0 --prod V1.2.3 push_prod --level 2
>> your new version V3.0.0

AutoVersioning Usage

Run the CLI app using the following command format:

pyv auto <repo_path>

License

This project is licensed under the MIT License. See the LICENSE file for details.

Metadata

Release files for versioning-python 0.1.0

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

Source distribution (sdist)

Source distribution for versioning-python 0.1.0
File Size Uploaded Provenance Actions
versioning_python-0.1.0.tar.gz 5.8 kB Without provenance Details for versioning_python-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for versioning-python 0.1.0
File Interpreter ABI Platform Actions
versioning_python-0.1.0-py3-none-any.whl Python 3 none any Details for versioning_python-0.1.0-py3-none-any.whl

Total release size: 13.2 kB

Release files / versioning_python-0.1.0.tar.gz

Download URL versioning_python-0.1.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
35d5af665a904123504da7c741be6132bc8f07ed0311a432ef4e48ffaccbb60d
BLAKE2b-256 checksum
How to use checksums
7c0a5fef0af3fb322dd9c6b44e7e5649e7f4fe2ac942eceae841122b53057783
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.4 Linux/6.5.0-25-generic

Release files / versioning_python-0.1.0-py3-none-any.whl

Download URL versioning_python-0.1.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c6cd4d3aebd7c3ac749998697fd201130a2c189114a28028e69300f3f4fca2d
BLAKE2b-256 checksum
How to use checksums
f46110dd0ae6815d004cfb1c693633034d3bbf43aec4be13190ec410ca12157d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.4 Linux/6.5.0-25-generic

Security for versioning-python 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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