-
-
Notifications
You must be signed in to change notification settings - Fork 526
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
Allow for base deps, overridden by factors (no duplicate requirements) #1390
Comments
This is non-trivial, as it implies us to do some kind of interpretation of the PEP-440 dependencies. I would say definitely won't do part of the core. But is a really strong candidate for a good plugin someone can write. If you do decide on going ahead and making this a reality please comment the repository URL below. |
IMO this is best fixed in pip, as many times doubles are not incompatible, in which case there is only one desired outcome. Also pip already has all the relevant dependencies and helpers to make that decision. |
Well, this is debatable. Technically pip can say specifying multiple times the same dependency on the command line is not a valid call. Though in an ideal world, yes, pip should handle it. Maybe with the new dependency resolver, it may be able to do so. This was beforehand the biggest stumble block. |
The new resolver has landed and outside of Python 2 this now just seems to work. |
This is no longer the case with newer pips, so the recommendation is to use a newer pip. |
Often you have special factors with specific version constraints for dependencies.
With pytest-cov this then results in
tox -e py37
not working, since dependencies are not installed then.It would be nice if this would be supported:
I.e. the deps are installed without a version constraint by default, but for the specific factors the constraint would be used.
Currently this results in:
A trick is to use envs for this, but that should not be necessary: pytest-dev/pytest-cov#315
The text was updated successfully, but these errors were encountered: