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

Non-semver packages cannot be specified as "*" #2413

Closed
3 tasks done
SwampFalc opened this issue May 13, 2020 · 3 comments
Closed
3 tasks done

Non-semver packages cannot be specified as "*" #2413

SwampFalc opened this issue May 13, 2020 · 3 comments
Labels
kind/bug Something isn't working as expected

Comments

@SwampFalc
Copy link

  • 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).

Possibly somewhat related to #1505

I would like to add black as a dev-dependency. I honestly don't care what version (we'll see what happens if I ever run into an uncompatible version) so I started out with poetry add black and then I edited the pyproject.toml to read black = "*". Yet whenever I try using it like that, I get this error:

 [SolverProblemError]
Because fedasit depends on black (*) which doesn't match any versions, version solving failed.

I removed black and then tried to add it back in using ``poetry add black@*" and that failed in the exact same way.

I have other packages listed as "*" in my project (pylint f.ex.) and those work fine, with the major difference being that those use semver and black doesn't...

So I am assuming there is a bug in the code that makes "*" not match anything that is not semver...

@SwampFalc SwampFalc added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels May 13, 2020
@PetterS
Copy link
Contributor

PetterS commented May 13, 2020

It is because black only has pre-releases. You have to allow pre-releases.

@SwampFalc
Copy link
Author

Aha, that does indeed work, thanks.

Copy link

github-actions bot commented Mar 3, 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 3, 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