Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: astral-sh/uv
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.4.6
Choose a base ref
...
head repository: astral-sh/uv
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.4.7
Choose a head ref
  • 18 commits
  • 56 files changed
  • 7 contributors

Commits on Sep 6, 2024

  1. Take intersection of constraint and requirements hashes (#7108)

    ## Summary
    
    Small follow-up to #7093.
    charliermarsh authored Sep 6, 2024
    Configuration menu
    Copy the full SHA
    c494f69 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3d57b6e View commit details
    Browse the repository at this point in the history
  3. Add --output-file to uv export (#7109)

    ## Summary
    
    Closes #7058.
    charliermarsh authored Sep 6, 2024
    Configuration menu
    Copy the full SHA
    d0f9016 View commit details
    Browse the repository at this point in the history
  4. Add --no-emit-project and friends to uv export (#7110)

    ## Summary
    
    Like `uv sync`, you can omit the current project (`--no-emit-project`),
    a specific package (`--no-emit-package`), or the entire workspace
    (`--no-emit-workspace`).
    
    Closes #6960.
    
    Closes #6995.
    charliermarsh authored Sep 6, 2024
    Configuration menu
    Copy the full SHA
    6ae005b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1422e18 View commit details
    Browse the repository at this point in the history
  6. Prune unused source distributions from the cache (#7112)

    ## Summary
    
    This has bothered me for a while and should be fairly impactful for
    users. It requires a weird implementation, since the
    distribution-building crate depends on the cache, and so the prune
    operation can't live in the cache, since it needs to access internals of
    the distribution-building crate.
    
    Closes #7096.
    charliermarsh authored Sep 6, 2024
    Configuration menu
    Copy the full SHA
    93fe3e8 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    72b73a5 View commit details
    Browse the repository at this point in the history
  8. Put CLI changes in "Enhancements" section (#7104)

    These overlap too much, I think
    zanieb authored Sep 6, 2024
    Configuration menu
    Copy the full SHA
    8bcae5f View commit details
    Browse the repository at this point in the history
  9. chore: Fix typo in docs (#7122)

    Remove duplicate `the`.
    
    ---------
    
    Co-authored-by: Zanie Blue <contact@zanie.dev>
    kdheepak and zanieb authored Sep 6, 2024
    Configuration menu
    Copy the full SHA
    346147d View commit details
    Browse the repository at this point in the history
  10. (doc) Fix wrong examples for locking (#7120)

    ## Summary
    
    The examples for compile with optional dependencies use `uv pip install`
    instead of `uv pip compile` (probably a copy-paste error)
    
    ## Test Plan
    N/A  This is a minor doc issue. The result is directly rendered.
    cpascual authored Sep 6, 2024
    Configuration menu
    Copy the full SHA
    1b6638f View commit details
    Browse the repository at this point in the history
  11. pep508: add graph debug representation for MarkerTree

    This PR revives #6129, but is less bold:
    
    * It doesn't rename anything. (I think the rename is probably right
      though.)
    * It doesn't change the _default_ `Debug` impl. Instead, it offers this
      as a new `MarkerTree::debug_graph` method.
    
    I found this pretty useful for debugging since it gives a display format
    that is more faithful to the internal representation of a `MarkerTree`.
    So I think it's worth having around. But making it available in `Debug`
    is perhaps a bridge too far since it isn't as familiar as the typical
    PEP 508 representation and isn't as succinct.
    
    I did consider printing this when using `{:#?}` (i.e., the "alternate"
    debug representation), but too many things use that (like `insta` I
    think) to make it practical.
    
    Closes #6129
    ibraheemdev authored and BurntSushi committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    22c0be6 View commit details
    Browse the repository at this point in the history
  12. chore: Remove dep on derivative (#7133)

    (This is part of #5711)
    
    ## Summary
    
    @BurntSushi and I spotted that the `derivative` crate is only used for
    one enum in the entire codebase — however, it's a proc macro, and we pay
    for the cost of (re)compiling it in many different contexts.
    
    This replaces it with a private `Inner` core which uses the regular std
    derive macros — inlining and optimizations should make this equivalent
    to the other implementation, and not too hard to maintain hopefully
    (versus a manual impl of `PartialEq` and `Hash` which have to be kept in
    sync.)
    
    ## Test Plan
    
    Trust CI?
    fasterthanlime authored Sep 6, 2024
    Configuration menu
    Copy the full SHA
    5e1b9b1 View commit details
    Browse the repository at this point in the history
  13. Write trailing newline to .python-version files (#7140)

    ## Summary
    
    Closes #7135.
    charliermarsh authored Sep 6, 2024
    Configuration menu
    Copy the full SHA
    8a0e1fd View commit details
    Browse the repository at this point in the history
  14. Avoid panicking when encountering an invalid Python version during `u…

    …v python list` (#7131)
    
    Closes #7129
    
    Not entirely sure about the best approach yet.
    zanieb authored Sep 6, 2024
    Configuration menu
    Copy the full SHA
    8eff8aa View commit details
    Browse the repository at this point in the history
  15. Fix typo aaarch64->aarch64 (#7141)

    copy pasted `--python-platform aaarch64-unknown-linux-gnu` [from the
    docs](https://docs.astral.sh/uv/reference/cli/#uv-pip-compile) and got
    
    > error: invalid value 'aaarch64-unknown-linux-gnu' for
    '--python-platform <PYTHON_PLATFORM>'
    > [possible values: windows, linux, macos, x86_64-pc-windows-msvc,
    i686-pc-windows-msvc, x86_64-unknown-linux-gnu, aarch64-apple-darwin,
    x86_64-apple-darwin, aarch64-unknown-linux-gnu,
    aarch64-unknown-linux-musl, x86_64-unknown-linux-musl,
    x86_64-manylinux_2_17, x86_64-manylinux_2_28, x86_64-manylinux_2_31,
    aarch64-manylinux_2_17, aarch64-manylinux_2_28, aarch64-manylinux_2_31]
    > 
    >   tip: a similar value exists: 'aarch64-unknown-linux-gnu'
    janosh authored Sep 6, 2024
    Configuration menu
    Copy the full SHA
    e96eb94 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2024

  1. Skip metadata fetch for --no-deps and pip sync (#7127)

    ## Summary
    
    I think a better tradeoff here is to skip fetching metadata, even though
    we can't validate the extras.
    
    It will help with situations like
    #5073 (comment) in
    which, otherwise, we have to download the wheels twice.
    charliermarsh authored Sep 7, 2024
    Configuration menu
    Copy the full SHA
    7d49fbc View commit details
    Browse the repository at this point in the history
  2. Avoid removing entries during read_dir (#7151)

    I think this is the source of the test flakiness.
    charliermarsh authored Sep 7, 2024
    Configuration menu
    Copy the full SHA
    6179b65 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a178051 View commit details
    Browse the repository at this point in the history
Loading