astariul / github-hosted-pypi

Your own private PyPi index, github-hosted
https://astariul.github.io/github-hosted-pypi/
MIT License
183 stars 5 forks source link

Is the resolution of version ranges supported? #67

Closed Elijas closed 1 year ago

Elijas commented 1 year ago

I have a requirements.txt file with the following contents:

my_custom_package>=1.0.0,<2.0.0
my_other_package>=1.18.0,<1.20.0

Will the version ranges be resolved, or is it necessary to use a PyPI server to handle the version resolution?

astariul commented 1 year ago

Hey, thanks for the excellent question. And sorry about the late reply..


Yes ! Version ranges are resolved by pip, when you run the command.

So you can use this repository even if you requirements are ranged-based. github-hosted-pypi is basically just a list of versions with links, pip retrieves this list, resolve the version to install, then follow the link to install the package.