How to get latest pip package containing a word in the version name? -
in private pip repository there package called 'test_package'.
the package has qa , prod version differentiated v.v.v.prod , v.v.v.qa v major, minor, , micro.
how package latest version qa or prod? give context, there docker job pulling latest package each time runs , needs pull qa or prod.
would better way possibly have 2 packages 'test_package_qa' , 'test_package_prod'? there way copy package , rename package through pip commands if better way go? (e.g. test_package_qa-1.0.1 , copy test_package_prod-1.0.0 test_package_qa latest on version 1.1.0, 1.0.1 1 want release prod)
following naming conventions explained here should use versioning schema uses v.v.v production , v.v.v.devn pre-release/development versions, e.g. 1.0.0 , 1.0.1.dev0.
pip install lastest production version unless use --pre parameter or try explicitly install version.
i verified settup local repository, package called foobar-utils. in repository there 3 versions:
foobar_utils-0.1.0.dev1 foobar_utils-0.1.0 foobar_utils-0.1.1.dev1 pip install commands:
# install latest production version $ pip install foobar-utils ... downloading foobar_utils-0.1.0-py2.py3-none-any.whl ... # install latest pre-release $ pip install --pre foobar-utils ... downloading foobar_utils-0.1.1.dev1-py2.py3-none-any.whl ... # install pre-release specifying version $ pip install "foobar-utils>=0.1.1.dev1" ... downloading foobar_utils-0.1.1.dev1-py2.py3-none-any.whl ...
Comments
Post a Comment