-
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
Poetry unable to resolve dependency using asterisk wildcard (*) #2687
Comments
I also did notice this advice at #743 (comment), but nothing else in this project depends on |
Exactly the same issue, also with |
Yep, asterisk doesn't work with black on 1.0.10. |
This also affects the version specification in packages with |
Got rid of black cause Poetry has issues with it (python-poetry/poetry#2687)
This issue still exists with poetry 1.0.10 and a dependency on WorkaroundUse:
...instead of ObservationsIs this related to the
After
Environment / versions to reproduce
|
Fwiw @mdengler I'm no longer noticing this problem on poetry versions |
Looks like I was just on an old version (thought I had updated to the latest but clearly not). So this bug can be closed? |
Probably yeah. I'd just left it open until a maintainer popped in but that hasn't happened, and since it seems to have been incidentally fixed as of |
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. |
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).OS version and name: Arch Linux
Poetry version: 1.0.9
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/matthewarmand/a281ea411867253662008becfe38aeab
Issue
I'm noticing an issue with using a wildcard (
*
) for a version specification for a dependency inpyproject.toml
. In this new project, I'm adding a dev dependency ofblack
for code formatting. Generally I prefer to allow any version for this, so I'm attempting to use the wildcard syntax (docs). The docs seem to indicate that my example gist above should work, but poetry is having trouble resolving the dependency.In searching for other issues, this seems similar to #1281, though that's an older issue. I tried the mitigation steps at the end of that issue (deleting
poetry.lock
, etc) but it does not seem to help this case. I also noticed #2626, and I'm wondering if this is somehow related to that issue, perhaps a side effect. Opened this one separately though in case its a different issue.Sample commands and output
When I try to do this via manual modification of
pyproject.toml
and usingpoetry install -vvv
, I see the following output:Alternatively, I also attempted to let
poetry
add the dependency usingpoetry add --dev -vvv black="*"
. ThePyPI
lines below seem particularly suspect, so maybe this is related topoetry
'sPyPI
interaction in the wildcard case. In this case, I see the following output:The text was updated successfully, but these errors were encountered: