uv
d2551bb2 - Add support for .tar.bz2 source distributions (#3069)

Comment changes are shownComment changes are hidden
Commit
1 year ago
Add support for .tar.bz2 source distributions (#3069) ## Summary Source distributions in the .tar.bz2 format are still relatively common within the existing code-bases, namely, the most common examples are the Twisted source distributions up to the version 20.3.0. As quite so often the ability to upgrade Twisted to a more recent version is not available for a given project, we add the support for .tar.bz2 here to still allow `uv` to be a drop-in replacement for `pip` in these projects. ## Test Plan The feature was tested both by adding the corresponding test coverage, and by directly installing a package of interest under a Python version that doesn't have the corresponding wheel: ```sh cargo run venv -p python3.8 cargo run pip install Twisted==20.3.0 --no-cache ``` The `--no-cache` argument in the example above serves the purpose of cleaning the cached information regarding the unsatisfiability of the requirements, as it may have been cached during some previous attempt to install this package by `uv` version that didn't implement this feature yet.
Author
Parents
  • File
    Cargo.lock
  • crates
    • distribution-filename/src
      • File
        source_dist.rs
    • uv-extract
      • File
        Cargo.toml
      • src
        • File
          seek.rs
        • File
          stream.rs
    • uv/tests
      • File
        pip_sync.rs