Skip to main content

cndversion

The definitive tools to manage VERSION and CHANGES files (based on semver)

Installation

pip install cndversion

Usage

Help accessible from here

cndversion --help

Setup a new project in a folder

cndversion -f mylib

if will create

project
│   VERSION
│   CHANGES  
└───mylib
│   │   __init__.py
│   │   __version__.py
│   │   VERSION 

Bump to major version

cndversion -M

it will increase the major version in mylib/VERSION file and add commit message to CHANGES

Bump to minor version

cndversion -m

it will increase the minor version in mylib/VERSION file and add commit message to CHANGES

Bump to patch version

cndversion -p

it will increase the patch version in mylib/VERSION file and add commit message to CHANGES

What in each file ?

VERSION

This file content is the path for the "real" VERSION file (use for compatibilities with somes old tools)

>>>> cat VERSION
mylib/VERSION

CHANGES

This file is just empty

>>>> cat CHANGE

mylib/init.py

Simply include in the beginning of the file the version file

>>>> cat mylib/__init__.py
from .__version__ import (__version__)  # noqa: F401

mylib/version.py

Allow you to include VERSION into the package (usefull for lib)

>>>> cat mylib/__version__.py
import pkg_resources


path = pkg_resources.resource_filename('mylib', 'VERSION')
__version__ = open(path).read()

mylib/VERSION

This file is the real version number

>>>> cat mylib/VERSION
0.1.1

Metadata

Release files for cndversion 2.0.2

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

Source distribution (sdist)

Source distribution for cndversion 2.0.2
File Size Uploaded Provenance Actions
cndversion-2.0.2.tar.gz 3.9 kB Without provenance Details for cndversion-2.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cndversion 2.0.2
File Interpreter ABI Platform Actions
cndversion-2.0.2-py3-none-any.whl Python 3 none any Details for cndversion-2.0.2-py3-none-any.whl

Total release size: 8.7 kB

Release files / cndversion-2.0.2.tar.gz

Download URL cndversion-2.0.2.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
84c9e8b3340a773c0c528d0bced7c11a1287a9545d0eda757edb7389ae08bb4f
BLAKE2b-256 checksum
How to use checksums
5e1f9871e9a9ebb81b359557b62aaaabf3c29448ad949dfbfd996980be1f72e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / cndversion-2.0.2-py3-none-any.whl

Download URL cndversion-2.0.2-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea072b94c5e39b45e041a2dcf78fe6f8d1f33160e2f2962bb3429871b2669a05
BLAKE2b-256 checksum
How to use checksums
64762200e069022d0bab3a355c1d58fd52cfedec9a4295760fe06c0907df5bc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for cndversion 2.0.2

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.

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