Closed Viibrant closed 3 months ago
Thanks for the kind words @Viibrant 🤗
So actually, I have registered a package private-hello
on PyPi (link) with a dummy content and a dummy version (0.0.0
), just to keep this example working (if I didn't register it, other people might have registered it with a higher version, and pip install
with --extra-index-url
wouldn't work anymore).
When you run pip install
without --extra-index-url
, pip
just checks the public PyPi, find the latest version of private-hello
(which is 0.0.0
), and installs it. That's why you can see the content of the package. (disclaimer : the actual content of private-hello
is different, this dummy content is from my template repository).
When you run pip install
with --extra-index-url
, pip
will check both the public PyPi and the private one, hosted on Github. private-hello
has a higher version on the private one, so it will attempt to download the package from there. Since it's private, it will fail with the error you saw (as you pointed out, it's normal, because it's private).
If you want to be convinced that this work as expected, go ahead and create a private package with a unique name, that isn't registered on PyPi.
With this, pip install
with --extra-index-url
should work fine (unless you don't have the access right to the private repository), and pip install
without --extra-index-url
will just fail, because no package with this name is registered 👍
Let me know if it clarifies things !
Nice! That definitely clears it up.
Really cool project you've built here, am definitely using this!
So this project looks amazing, I'm still reeling at the fact GitHub does not support python packages so this is great.
I saw the example on https://astariul.github.io/github-hosted-pypi/, specifically
private-hello
. I'm not sure if I'm missing something but I'm able to install the package:Very odd to me, as I thought privacy was a big selling point. Installing it with
--extra-index-url
:Upon inspection this command failing makes complete sense as that repository is private.
What is going on here? Is there more in the repository that I cannot see and I am installing an entirely separate package? Would love for this to work!!!