System dependency version checker.
- …chews through your system dependencies, spitting out incompatible
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.
- Python 2.7+ or Python 3.3+
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.
Create a configuration file (.verchew.ini) containing your project’s system dependencies:
[Working Program] cli = working-program version = 1.2. [Newer Working Program] cli = working-program version = 4. message = Version 4 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. 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: ✔ ✘ ✘ ⚠ ✘
- Added optional = true settings to downgrade errors to warnings.
- Added message setting to display optional message for missing programs.
- Added --init command to generate a sample configuration file.
- Initial stable release.
- Added --exit-code option to return non-zero exit codes on failure.
- Added support for custom version arguments.
- Fixed handling of internal versions matches.
- Added support for detecting missing and broken programs.
- Now stripping whitespace after calling --version on a program.
- Added --version command.
- Initial release.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|verchew-1.2-py2-none-any.whl (12.6 kB) Copy SHA256 Checksum SHA256||py2||Wheel||Sep 14, 2017|
|verchew-1.2.tar.gz (12.9 kB) Copy SHA256 Checksum SHA256||–||Source||Sep 14, 2017|