[Bug]: resolutions.from_requirements
installs all packages from requirements instead of using requirements to resolve virtual dependencies
#362
Labels
bug
Something isn't working
What happened?
After adding PyQt6 to the dependencies I see the following when trying to create a venv for a target that does not depend on this package:
Version
Development (host) and target OS/architectures:
Output of
bazel --version
: 7.0.2Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:HEAD
(v0.7.3+
)Language(s) and/or frameworks involved:
How to reproduce
Check out https://github.com/dizzy57/rules_py/tree/venv-namespace Run `bazel run //py/tests/virtual/django:manage`.
Any other information?
Please note that
//py/tests/virtual/django:manage
does not depend on PyQt6 neither directly nor transitively, but merely adding this dependency torequirements.txt
makesbazel run
to fail. I expectrules_py
to mirrorrules_python
behavior here and only install bare minimum of dependencies in the virtualenv.The text was updated successfully, but these errors were encountered: