Skip to main content

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:

base rev rinfo binfo

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


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

pdk_semver-1.1.0-py3-none-any.whl (6.4 kB view hashes)

Uploaded Python 3

Supported by

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