-
Notifications
You must be signed in to change notification settings - Fork 173
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
[BUG] can't install along with tox #579
Comments
Is there a reason why the packaging dependency is pinned the way it is? Briefly looking through the changelog of packaging, the API seems pretty stable, and the backwards incompatibilities mostly amount to dropping support for old Python, or removing obscure bits of API that prospector isn't making use of anyway. Moreover, the versioning scheme seems to be mostly based on the year the release was made, rather than semantic versioning. The version restriction itself was added in cea00c3 (#576) without any discussion… |
See #576 for rational, I'm open to new arguments of course :) |
I'm not challenging having packaging listed as a dependency – that makes perfect sense, since it is a package whose API is directly being used by prospector. The thing I'm challenging is restricting its version to |
Right, let's release the constraint. Do you want to open a merge request ? |
Hmm this is related to #588 |
Looks like this won't work unless $ poetry add "packaging=^22.0"
Updating dependencies
Resolving dependencies... (0.7s)
Because requirements-detector (1.0.3) depends on packaging (>=21.3,<22.0)
and no versions of requirements-detector match >1.0.3, requirements-detector (>=1.0.3) requires packaging (>=21.3,<22.0).
So, because prospector depends on both requirements-detector (>=1.0.3) and packaging (^22.0), version solving failed. This is because black 23.1.0 depends on Because black (23.1.0) depends on packaging (>=22.0)
and prospector (1.8.4) depends on packaging (<22.0), black (23.1.0) is incompatible with prospector (1.8.4).
So, because test-package depends on both black (23.1.0) and prospector (1.8.4), version solving failed. |
@carlio do you think it's reasonable to replace |
I opened a PR against |
The PR against requirements detector was merged and released in requirements-detector 1.1.0. It looks like this issue might be resolved by #592 however? |
#592 was released in prospector 1.9.0 |
Just checked with tox 4.4.6 and prospector 1.9.0, and it all works as expected. Thank you all for working to fix this. 🙏🏼 |
Dependency version resolution is failing when installing in a project with tox.
Poetry's output with all the relevant details:
The issue seems arise from a
prospector
dependency onpackaging<22.0
.To Reproduce Steps to reproduce the behavior:
take
a new directorypoetry init
poetry add tox
poetry add prospector
Note that I have successfully added prospector as a dependency with
prospector<1.8
.The text was updated successfully, but these errors were encountered: