-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Force Poetry to not use public PyPI #559
Comments
I think it's enough if you add
to your |
@sdispater, I have a related, but more general request. I have to work within a firewalled environment where I would like to have an option to completely ignore the public When I first came across the |
I'd like to chime in here: For developers living in China, downloading packages from the canonical PyPI (strictly speaking, Being able to download from a local mirror of PyPI could be life-changing. |
It seems that Poetry will respect option |
This has been added in #908. It will be available in the |
Poetry still uses public PyPI to resolve the dependencies. Thus it could cause problems especially when the mirror is not synchronized. |
Specifying custom PyPi Url in adding |
I'd like to voice that installing dependencies works without issue, but the other commands still try resolving to pypi (such as search). So I find myself falling back to using pip to search my local repos and then using poetry to add which feels.. bad. |
This issue should be reopened. |
ping @sdispater since this issue seems to have lost attention |
@sdispater I believe this issue does need to be reopened |
@GigiusB / @mburszley: This may pertain to the BanderSnatch pypi mirror that we use: The only command that I know doesn't work behind a firewall is |
@gkedge I am able to specify the index with |
@mburszley 😮 Curious if you are familiar with the mirror vendor servicing you behind your firewall. If it's BanderSnatch, I wonder if our admins are missing a setting to support that. I attempted |
@gkedge No luck, I believe it's Artifactory. |
Just like bundler in ruby, poetry is not perfect when it comes to working behind a custom repo. It forces you to put the mirror in your poetry.lock and pyproject.toml, which we don't really want for now. Some related issues: python-poetry/poetry#3539 python-poetry/poetry#559
Hi everyone, This is still an issue in 2021. I must cover both situations:
Nothing is working so far (even default = true, which would block my first use case) HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url /pypi/pytest/json Worst of all, pytest is a dev dependencie and I don't even need it on the remote computer. But it is still resolved even when using --no-dev It's a show stopper for me until it is fixed. I will have to stay on setuptools until then. |
Open backup please. poetry add source <source-name> https://your.pypi.com/simple/ --default And doing something like below, which edits the "global" user config file (e.g. poetry config repositories.pypi https://your.pypi.com/simple/ |
see #1632 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
My sincere apologies is this is answered elsewhere. I tried my best to find a clear answer in the docs and Github issues but could not.
I would like to be able to ensure that all dependencies are installed from a private repository, and that will not use public PyPI is not used for any dependency resolution. In other words, I want behavior like
pip install --index-url
.Basically, I want to ensure that Poetry fails with an error if I've accidentally failed to add a dependency to my private PyPI mirror.
Is this possible with Poetry currently? If not, would a feature request or PR be accepted?
The text was updated successfully, but these errors were encountered: