You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issues of this repo and believe that this is not a duplicate.
Issue
Hi,
First thank you for your effort on this library.
I have been trying to add a dependency from a private pypi repo and I followed the docs and other internet resources to be able to download and upload the package from/to my private PyPi server. However, after some experiments, I realised that the download and upload just worked using different URLs.
For downloading I used the following configuration in pyproject.toml, which follows Poetry docs:
[[tool.poetry.source]]
name = "foo_api"url = "https://pypi.foo.com/simple/"
And it works perfectly.
However, for uploading I had to use a different URL:
Installation details Poetry version 1.1.11 Python version 3.10 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64 x86_64
The text was updated successfully, but these errors were encountered:
@tropxy I suspect you need to identify what upload endpoint to use.
Poetry distinguishes between sources and repositories for publishing. You are on the correct track, however I suspect https://pypi.foo.com/ does not accept uploads, the upload url might look like https://upload.pypi.org/legacy/ (Warehouse), https://pkgs.dev.azure.com/<your-organization-name>/<your-project-name>/_packaging/<your-feed-name>/pypi/upload (Azure DevOps) etc. Might need to chck what your index deployment uses.
Issue
Hi,
First thank you for your effort on this library.
I have been trying to add a dependency from a private pypi repo and I followed the docs and other internet resources to be able to download and upload the package from/to my private PyPi server. However, after some experiments, I realised that the download and upload just worked using different URLs.
For downloading I used the following configuration in
pyproject.toml
, which follows Poetry docs:And it works perfectly.
However, for uploading I had to use a different URL:
which is not what is recommended in the docs [1]
If I use the recommendation from the Docs, then I get the following:
Seems I was not the first tumbling into this issue, as I found a similar one in stackoverflow:
https://stackoverflow.com/questions/65064910/cant-upload-poetry-package-to-local-dockerized-pypiserver
Installation details
Poetry version 1.1.11
Python version 3.10
20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64 x86_64
The text was updated successfully, but these errors were encountered: