rules_python icon indicating copy to clipboard operation
rules_python copied to clipboard

refactor(whl_library): split out a whl_archive library

Open aignas opened this issue 1 year ago • 0 comments

Before this PR users would need to download unused dependencies to just extract the wheels. The minimum list of deps are - packaging and installer for our whl_installer tool to properly work. This also means that we could not dogfood our whl_installer tool in the pip-tools implementation.

With this PR we start using whl_archive which just patches, extracts the wheel and parses METADATA where possible and this is the first step towards separating how sdists are treated.

Summary:

  • refactor: split out whl_archive_impl function for just whls
  • refactor: make the implementation of the 'whl_archive' more minimal
  • use whl_archive in internal deps
  • use a py_library in pip_compile rule.
  • remove unused attrs from 'whl_archive'

aignas avatar Sep 11 '24 03:09 aignas