Versioning tool
Project description
pdk-semver
Pretty print versions for project and artifacts.
Make version more or less informative depending on the audience.
$ pdk-semver -s all --rinfo-value some.info
internal 3.2.2-rev.3.some.info.git.b674019
public 3.2.2-rev.3.some.info
baserev 3.2.2-rev.3
base 3.2.2
Main features are:
- Automatic versioning based on git content and CI variables
- Unique build versions. Version includes nearest tag, number of commits and commit hash
- Artifact and release info. Add artifact details, like CPU, platform, client etc.
- Easy customization. Every component can be overridden with
--COMP-value
option, like--rinfo-value
The version format is:
Use Cases
CI and Shallow clones
CI servers usually do shallow (partial) clone, so pdk-semver
can't get tag and
commit counter. What can we do?
- adjust CI clone depth to the tagging frequency
- keep tag name in a text file, but commit counter still be off
- unshallow, bring more commits
Working with docker images
Working with buildroot
Installation
pip install pdk-semver
Development
See development doc
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for pdk_semver-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f95014190c41d0afa35d455e91068e43c1924355cb89458f16f267726627b190 |
|
MD5 | 77bfbad1a3c1eacf300cb0f7a34657bf |
|
BLAKE2b-256 | 9dec16e7a5a75800a5f27f5c1144f8afc5e66c0243360476e8715db79758febd |