Skip to main content

System dependency version checker.

Project description

Unix: Unix Build Status Windows: Windows Build StatusMetrics: Coverage Status Scrutinizer Code QualityUsage: PyPI Version

Overview

…chews through your system dependencies, spitting out incompatible versions.

When onboarding new team members, ensuring their computer has everything needed to work on the project can be painful. Verchew is a command-line program and embeddable Python script to check the versions of your project’s system dependencies. Its only external dependency is any Python interpreter, which should already be installed on macOS and most Linux-based operating systems.

Setup

Requirements

  • Python 2.7+ or Python 3.3+

Installation

Install verchew with pip:

$ pip install verchew

or directly from the source code:

$ git clone https://github.com/jacebrowning/verchew.git
$ cd verchew
$ python setup.py install

or embedded the script in your project using this guide.

Usage

Run verchew init to generate a sample configuration file.

Update this file (.verchew.ini) to include your project’s system dependencies:

[Working Program]

cli = working-program
version = 1.2.

[Newer Working Program]

cli = working-program
versions =  4.1. | 4.2.
message = Version 4.x is required to get the special features.

[Broken Program]

cli = broken-program
version = 1.2.3

[Optional Missing Program]

cli = missing-program
version = 1.2.3
optional = true

[Missing Program]

cli = missing-program
version = 1.2.3

Run verchew to see if you have the expected versions installed:

$ verchew

Checking for Working Program...

$ working-program --version
1.2.3
 MATCHED: 1.2.

Checking for Newer Working Program...

$ working-program --version
1.2.3
 EXPECTED: 4.1. | 4.2.
 MESSAGE: Version 4.x is required to get the special features.

Checking for Broken Program...

$ broken-program --version
An error occurred.
 EXPECTED: 1.2.3

Checking for Optional Missing Program...

$ missing-program --version
sh: command not found: missing-program
 EXPECTED: 1.2.3

Checking for Missing Program...

$ missing-program --version
sh: command not found: missing-program
 EXPECTED: 1.2.3

Results:     

Revision History

1.3 (unreleased)

  • Added support for checking for multiple versions of programs.

1.2 (2017/09/13)

  • Added optional = true settings to downgrade errors to warnings.

  • Added message setting to display optional message for missing programs.

1.1 (2017/05/17)

  • Added --init command to generate a sample configuration file.

1.0 (2017/01/09)

  • Initial stable release.

0.5 (2016/11/02)

  • Added --exit-code option to return non-zero exit codes on failure.

0.4 (2016/10/20)

  • Added support for custom version arguments.

  • Fixed handling of internal versions matches.

0.3 (2016/10/18)

  • Added support for detecting missing and broken programs.

0.2.1 (2016/10/18)

  • Now stripping whitespace after calling --version on a program.

0.2 (2016/10/17)

  • Added --version command.

0.1 (2016/10/17)

  • Initial release.

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

verchew-1.3b1.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

verchew-1.3b1-py2.py3-none-any.whl (12.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file verchew-1.3b1.tar.gz.

File metadata

  • Download URL: verchew-1.3b1.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for verchew-1.3b1.tar.gz
Algorithm Hash digest
SHA256 c35b67d5d38e020c36dd8e52378f902313c9007bf5b64aa35e0139a5ca063171
MD5 d6ac1c080c5fd54f42ec4bec2cc9f7be
BLAKE2b-256 0066b07e20b49215c994231f1640592a6c196d64760a3e33b7558f042ce1bd06

See more details on using hashes here.

File details

Details for the file verchew-1.3b1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for verchew-1.3b1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6807b6cb473a1a8ee75b5f5fecbabe6bdba2a77d2440d96c5d37265321b0557f
MD5 f05d0503de34a2384969e5faf57af2ce
BLAKE2b-256 2ba41ed9776036ccc9c3a4a9414d75980935354ad32fe0b524933e573f0a3008

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page