Skip to main content

Updates semantic versions, either of the artifact itself, or its dependencies

Project description

# (Semantic) Version Updater

A simple tool for updating versions of both dependencies and main artifact versions in CI pipelines based on semantic versioning. The main use-cases are:

  • Explicitly set a dependency version to the new one produced by a successful pipeline run

  • Bump the semantic version of the artifact produced by a repo’s build pipeline. This could happen at the same time as the previous use-case

Typically, a chain of CI pipelines need to trigger updates to dependent projects once an acceptable testing outcome has been achieved, and you still want team membebrs to be able to clone a repo that has been auto-managed in this way and have a complete, working dependency file without any variables. This tool is aimed at solving that issue.

# Installation

TBD

# Examples

## Set some dependency versions to new ones from a prior CI pipeline, and bump the major version (package.json)

update-version –set-dependencies react=1.2.3,react-dom=2.3.4 package1.json –bump major

## Update the patch version in the .gitlab-ci.yml

update-version –bump patch .gitlab-ci.yml

## Update a dependency and main version of setup.py

update-version –set-dependencies semver=4.5.6 setup.py –bump major

## Update a dependency in requirements.txt; ignore bumping the main version which is meaningless

update-version –set-dependencies gtfs-realtime-bindings=4.5.6 foo-requirements.txt –bump major

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

version_updater-0.0.4.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

version_updater-0.0.4-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file version_updater-0.0.4.tar.gz.

File metadata

  • Download URL: version_updater-0.0.4.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for version_updater-0.0.4.tar.gz
Algorithm Hash digest
SHA256 cfb91a6c0fd8c2cdba7332ac6a9ea559ceeb15410c9b436873bd78f196c629ad
MD5 bc69da6c9e34cbcf2a9426c86bfa3087
BLAKE2b-256 5c13b5e06441d5e1f260e0cfdf887e03cd79a2b0dca35cbc29eaa46cfd5a6464

See more details on using hashes here.

File details

Details for the file version_updater-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: version_updater-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for version_updater-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dfc00bb985a13a1f2b26b93a00ae93144145a2e19172caf08a01c09d13c48cf9
MD5 d60401c19296b7f5a074588e8d8cb15a
BLAKE2b-256 68076e607c81f856d3794d30f4be07da7fb599dbd7c53f59e63af5da3afd1d85

See more details on using hashes here.

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