CLI tool to validate the version of a local PIP package against its currently published version. Intended to be used as part of a CI build.
Project description
validate-pip-version
CLI tool to validate the version of a local PIP package against its currently published version. Intended to be used as part of a CI build.
Installation
First Install:
pip install validate-pip-version
Upgrading
pip install validate-pip-version --upgrade
Usage
validate_pip_version [OPTIONS] COMMAND [ARGS]
check-init-file
Retrieves the local package version from an init.py, by matching the string '__version__'.
validate_pip_version check-init-file -n <package_name> --init_file_path <path_to__init__.py>
Options
| Option | Required | Description |
|---|---|---|
| -n, --package_name | Required | Name of the package on PyPi |
| --init_file_path | Required | Relative file path for the __init__.py file (uses current working dir) |
| --help | Optional | Show help message and exit |
check-setup-file
Retrieves the local package version from an setup.py file, by matching the string 'version=' and stripping away spaces/newlines.
validate_pip_version check-setup-file -n <package_name> --init_file_path <path_to_setup.py>
Options
| Option | Required | Description |
|---|---|---|
| -n, --package_name | Required | Name of the package on PyPi |
| --setup_file_path | Required | Relative file path for the setup.py file (uses current working dir) |
| --help | Optional | Show help message and exit |
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file validate_pip_version-1.0.2.tar.gz.
File metadata
- Download URL: validate_pip_version-1.0.2.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1ddc4b5f79763bf42f92aa14c116044f25ed5ccd6f966884c4239c2625817f3
|
|
| MD5 |
b674e69d12a20278b7bcbb8728749207
|
|
| BLAKE2b-256 |
044dd0034df9234f0b695f509392cda72d11114684ce2541d686c4c5811ac016
|
File details
Details for the file validate_pip_version-1.0.2-py3-none-any.whl.
File metadata
- Download URL: validate_pip_version-1.0.2-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
129495faa35412bf138f643fd12577f53db1669bbbfe8cb99c3bcd3f95a73413
|
|
| MD5 |
25ad0e1cdab9ab9e0ab13fb44c72c2ae
|
|
| BLAKE2b-256 |
899f2f731a388aff06fa6f5849f0e192aae631f64e39e6b229aa4b77c47a860e
|