-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expected
Description
- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption).
- OS version and name: Ubuntu 19.10
- Poetry version: 1.0.2
Issue
When running poetry install with the pyproject.toml containing a package from a private repository, poetry does install most of the packages from PyPI, but when it comes to installing the private package itself, it fails to install some dependencies:
Looking in indexes: https://private-repository-url/+simple, https://pypi.org/
Collecting poetry>=0.12
ERROR: Could not find a version that satisfies the requirement poetry>=0.12 (from versions: none)
The workaround was to specify the PyPI source in pyproject.toml:
[[tool.poetry.source]]
name = "pypi-repository"
url = "https://pypi.org/simple/"
default = true
So it seems that a possible fix is to add simple/ at the end of PyPI url.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expected