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.3.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.3-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: version_updater-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 b64ed25cdd55e295289910241d1e23c3a1291c563ad90f2c488227dfdc3a833f
MD5 9239276d413a72234dacdf4312b1cbe5
BLAKE2b-256 4e1ad5d6511ec7642599b338c37fdac7c124b25dc26bb7af3df7c9020cf89b92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: version_updater-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b1b2dad703af108a83aaa81e5cc2047a74bd760b08e743b04287bd631066c5c0
MD5 c764eb908d23fb28478d817031a4b3b2
BLAKE2b-256 5dab47a798a39e540123407b35f1adc13027a36cb4ecdb623265d08b0ba0f586

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