Skip to content

Comments

Avoid downgrading packages when --upgrade is provided#10097

Merged
charliermarsh merged 1 commit intomainfrom
charlie/downgrade
Jan 6, 2025
Merged

Avoid downgrading packages when --upgrade is provided#10097
charliermarsh merged 1 commit intomainfrom
charlie/downgrade

Conversation

@charliermarsh
Copy link
Member

@charliermarsh charliermarsh commented Dec 22, 2024

Summary

When --upgrade is provided, we should retain already-installed packages if they're newer than whatever is available from the registry.

Closes #10089.

@charliermarsh charliermarsh added the bug Something isn't working label Dec 22, 2024
@charliermarsh charliermarsh marked this pull request as draft December 22, 2024 16:17
@charliermarsh
Copy link
Member Author

(No reviews please, need to get tests passing.)

@charliermarsh charliermarsh force-pushed the charlie/downgrade branch 4 times, most recently from 7f3d738 to b14fb9c Compare December 22, 2024 16:55
@charliermarsh charliermarsh merged commit 0d57d29 into main Jan 6, 2025
@charliermarsh charliermarsh deleted the charlie/downgrade branch January 6, 2025 22:41
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Jan 8, 2025
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [astral-sh/uv](https://github.com/astral-sh/uv) | patch | `0.5.14` -> `0.5.15` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>astral-sh/uv (astral-sh/uv)</summary>

### [`v0.5.15`](https://github.com/astral-sh/uv/blob/HEAD/CHANGELOG.md#0515)

[Compare Source](astral-sh/uv@0.5.14...0.5.15)

##### Python

The managed Python distributions have been updated, including:

-   Python 3.14.0a3 support on macOS and Linux
-   Performance improvements
-   Fixes to SQLite feature detection

See the [`python-build-standalone` release notes](https://github.com/astral-sh/python-build-standalone/releases/tag/20250106) for more details.

##### Enhancements

-   Respect `FORCE_COLOR` environment variable ([#&#8203;10315](astral-sh/uv#10315))

##### Performance

-   Avoid generating unused hashes during `uv lock` ([#&#8203;10307](astral-sh/uv#10307))
-   Visit source distributions before wheels ([#&#8203;10291](astral-sh/uv#10291))

##### Bug fixes

-   Avoid downgrading packages when `--upgrade` is provided ([#&#8203;10097](astral-sh/uv#10097))
-   Extract supported architectures from wheel tags ([#&#8203;10179](astral-sh/uv#10179))
-   Redact new index credentials in `uv add` ([#&#8203;10329](astral-sh/uv#10329))

##### Documentation

-   Clarify `exclude-newer` only allows full timestamps in settings documentation ([#&#8203;9135](astral-sh/uv#9135))
-   Tweak script `--no-project` comment ([#&#8203;10331](astral-sh/uv#10331))
-   Update copyright year ([#&#8203;10297](astral-sh/uv#10297))
-   Add instructinos for installing with Scoop ([#&#8203;10332](astral-sh/uv#10332))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS45MS4yIiwidXBkYXRlZEluVmVyIjoiMzkuOTEuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90Il19-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

uv pip install -U will downgrade already-installed packages

2 participants