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.1.tar.gz (3.7 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.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: version_updater-0.0.1.tar.gz
  • Upload date:
  • Size: 3.7 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.1.tar.gz
Algorithm Hash digest
SHA256 4383922e142ef4e99237e071ddca585e4c616e7cccd29fa32a6ffd9f88f37b4c
MD5 70fef247bc87982abc7ed3b3f64db622
BLAKE2b-256 736be70f29d57bdb09e68fdf22a0e4b6f4e62d8e651b7aacc723c04ee3743573

See more details on using hashes here.

File details

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

File metadata

  • Download URL: version_updater-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8e176881a7f6969b030e3ebd8f104c47344e5c58ec5cf0ab33ee69e9f0943a4e
MD5 e1d45351b1d384561862edbea4070b53
BLAKE2b-256 69fbd9566af2533537004cbd49c849d3b27c3319567ec82ccfa9c16ab0db2b5c

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