ali5h / rules_pip

pip package rules for bazel that are fast (incremental fetch), support different python versions and work with all kinds of packages (i.e. packages with namespaces)
MIT License
60 stars 24 forks source link

Dedup pip dependencies #23

Closed seanxwzhang closed 4 years ago

seanxwzhang commented 4 years ago

This PR tries to address https://github.com/ali5h/rules_pip/issues/22.

The underlying issue is that wheel allows the existence of duplicate dependency specification so long as there's different version constraints. For example,

Requires-Dist: pytest (>=3.6)
Requires-Dist: Flask
Requires-Dist: Werkzeug (>=0.7)
Requires-Dist: pytest

This is a valid specification.