-
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
source resolving issue in pyproject.toml #2858
Comments
Can you try the pre-release? |
Thanks for responding!
once I change the name On my Ci I'm getting a different error :
btw the next log below it seems to show that
so I guess similar to my original issue. BTW, when is the next release planned and how stable are the pre-release versions? |
That does not sound like a good solution :) Do you have gitlab repos I can use to try reproduce the issue? As for next release, we are planning atleast one more beta release prior to the stable realease of |
Unfortunately, this is all happening on private projects at the company I'm working at so I can't give you access to anything I'm working on :( And thanks for the answer regarding the upcoming releases :) |
@avivex1000 even if you can setup the scenario on 2 sample public packages that would help. I just do not have the time right now to try reproduce the issue so I can debug it. Note that there are couple of issues in the issue tracker where authentication fails silently. This might be cause of your CI error (ie. credentials not available). If I were to guess, the relevant code for this might be in https://github.com/python-poetry/poetry/tree/master/poetry/repositories. Particularly, with regards to how packages are searched for in a pool or even how the repository pools are created (ie. discovering source configurations from pyproject.toml). You are welcome to try debug the issue and post any insights. Feel free to join our discord server too, might be easier debug issues there than over github issue comments. :) |
So looks like I've missed something a bit silly 😅 |
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. |
So I have a
pyproject.toml
where i've defined two different sources for two private repo based dependencies in gitlab like so:And I keep getting the following error:
I've also tried explicitly pointing dependencies to their relevant sources.
I've properly set the http token in the poetry config using
poetry config http-basic.gitlab __token__ <my_gitlab_token>
,and when using only one source there doesn't seem to be an issue.
Also, when changing the order of
source
declaration the missing dependencies flip, which makes me assume thatsource
is being somehow overridden by the second declaration instead of being updated with both 😞Another curious behavior is that even with one dependency and one source, poetry insisted that the source name and URL had some correlation (like sharing the repo name? I'm not sure but here is an example):
this works:
but this doesn't: (even when I specifically point to It from the dependency section)
I'm running the latest poetry
1.0.10
on a mac Catalina-os version10.15.3
I've gone over the following issue and documentation but couldn't find a solution for this:
https://python-poetry.org/docs/repositories/#install-dependencies-from-a-private-repository
#14
#1547
Any help will be much appreciated
BTW, this is used for local and CI and both fail in the same manner so far...
Thank you!
The text was updated successfully, but these errors were encountered: