Skip to main content

Check and update versions of pypi packages and docker-images in your project.

Project description

Version updater for components in your codebase

Problem to solve

In project where there are many components to track new versions (docker images and pypi packages) this tool automates finding new versions, running tests and commit changes to git.

TL;DR

Create YAML file with definition of your components (see example in tests/test_files/components.yaml ). Place components.yaml in the root of your project directory and run:

python check_version.py --file=/path/to/your/components.yaml --dry-run check --verbose

It will, for each defined component:

  1. Check if there are new versions of your components available

  2. Replace in all files version numbers to the newest one

  3. Run tests

  4. Add and commit changes to git

Installation

Install via pypi packages repository:

pip install updater

Usage

updater

updater [OPTIONS] COMMAND [ARGS]...

Options

--file( )

YAML file with components configuration. If not present other options for ‘check’ command are required.

--destination-file( <destination_file>)

If this option is given components configuration with new versions will be wrtten here.

--dry-run()

If set no changes to any files are written.

--print()

Config is printed to stdout at the end.

check

Check if new versions of defined components are available.

updater check [OPTIONS]

Options

--type( <component_type>)

Component type: docker-image or pypi package.

--component( )

Component name to version veryfication.

--repo_name( <repo_name>)

Repository name if component is docker image.

--version_tag( <version_tag>)

Version tag eg. v2.3.0 against which new version check will be run.

--verbose()

Print detailed info for each component about new version avaialble.

update

Update files with version numbers, run test and commit changes.

updater update [OPTIONS]

Options

--test-command( <test_command>)

Command that should be run after updating each component.

--test-dir( <test_dir>)

If test-command param is given, this will be the context dir to run it.

--git-commit()

When set after each components update, git commit is performed in active branch.

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

updater-0.1.3.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

updater-0.1.3-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file updater-0.1.3.tar.gz.

File metadata

  • Download URL: updater-0.1.3.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for updater-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4c62218d09fed6d5e2de309af49022c98b3f01eb1476a1421a23b59fe80afbf2
MD5 ab339dc1d7c310ee906149ae3df021f1
BLAKE2b-256 d8e4afb39c087b007ce848e6f6939fbb600e87c370902fa77bdd9fd152e7dd25

See more details on using hashes here.

File details

Details for the file updater-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: updater-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for updater-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 45c0be7e86a8493f4bdb44addfbc872a897d73178e1b76dfd4dca9ac91edef1e
MD5 a5905c26ec3f4338cc9367302a57034a
BLAKE2b-256 d06b34cf9b2c411f548cdc48b0d8b2fb5aa263d427535f488d4a816c1cbf6c1e

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