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.2.tar.gz (4.3 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.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: version_updater-0.0.2.tar.gz
  • Upload date:
  • Size: 4.3 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.2.tar.gz
Algorithm Hash digest
SHA256 3382d12c2ce813ac384e5c6cb232134816e4fc523c07e99d15f8d0c13292edc5
MD5 54a450b6bc032057380e4b319d63f0ad
BLAKE2b-256 2c580186f6f81612624054f311e909cc5170d4676d866c5bf0c2443c864ba0f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: version_updater-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 01e1266da13007a9093bad74ca1554750008ecc2551d2070492610cb4559b762
MD5 d2b69c4d825f489e58bde41db4cb701c
BLAKE2b-256 fb09f18976aad5a0096030e23cf19de79c5673cd78a887d1c1e41d55ea0f6dce

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