Skip to content
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

[[tool.poetry.source]] limit of extra source repos #3807

Closed
3 tasks done
fliiiix opened this issue Mar 19, 2021 · 3 comments
Closed
3 tasks done

[[tool.poetry.source]] limit of extra source repos #3807

fliiiix opened this issue Mar 19, 2021 · 3 comments
Labels
kind/bug Something isn't working as expected

Comments

@fliiiix
Copy link

fliiiix commented Mar 19, 2021

  • 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 (-vvv option).

Issue

It seems to me that there is a limit to how many extra pip sources I can add to the config.

I have 3 custom dependencies

transportlayerskynet = "*"
ricofile = "*"
rico = "*"

And for each dependency I have a custom registry.
So I added all 3 sources:

# rico file
[[tool.poetry.source]]
name = "gitlab"
url = "https://$gitlab/api/v4/projects/9954/packages/pypi/simple"

# rico
[[tool.poetry.source]]
name = "gitlab"
url = "https://$gitlab/api/v4/projects/9956/packages/pypi/simple"

# transport lib
[[tool.poetry.source]]
name = "gitlab"
url = "https://$gitlab/api/v4/projects/8984/packages/pypi/simple"
$ poetry update
  • Installing ricofile (2.1.7): Pending...
  • Installing ricofile (2.1.7): Failed

  RuntimeError

  Unable to find installation candidates for ricofile (2.1.7)

  at poetry/installation/chooser.py:72 in choose_for
       68│ 
       69│             links.append(link)
       70│ 
       71│         if not links:
    →  72│             raise RuntimeError(
       73│                 "Unable to find installation candidates for {}".format(package)
       74│             )
       75│ 
       76│         # Get the best link

While writing this issue I found a solution for me I will publish all packages to the same gitlab pip repo.
But I think there are valid use cases to have more than one or two extra sources.

@fliiiix fliiiix added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Mar 19, 2021
@itssimon
Copy link

This might be related to or the reason for #3802.

@fliiiix
Copy link
Author

fliiiix commented Mar 19, 2021

Oh yeah this looks very much the same I will close my issue here and you can link to it from your bug report as an other case where this happens.

Copy link

github-actions bot commented Mar 2, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

3 participants