Ensure pip package version, and auto update if not
Project description
Usage:
import pip_ensure_version
# pip_ensure_version.set_debug()
pip_ensure_version.require_package(
"tqdm", # package name
"4.47", # pin version (optional)
)
pip_ensure_version.require_gitpackage(
"soraxas-toolbox", # package name
"soraxas/python-soraxas_toolbox", # repo name (default to github)
"aa00d757b58c43523d7c518cdac600d4a75c6015", # commit id (optional)
)
pip_ensure_version.require_gitpackage(
"easy-visualiser",
">0.1.2",
)
# at this point, the requested package will be up-to-date
import tqdm
import soraxas_toolbox
import easy_visualiser
...
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for pip_ensure_version-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47378af3e8417a25fdf66cff8ddf878b08c74731a7999fbb56363f2c1c52c2af |
|
MD5 | 4151835910b76a16687f9ca2e4dc0b91 |
|
BLAKE2b-256 | 261baa9b507649d77c60b56a2e2f68cdbddfb7758d0be8a58759cdc31eaf95a1 |