Commit Graph

1294 Commits

Author SHA1 Message Date
luyiming 7520fe6c25 Improve documentation on virtual dependencies (#18346)
<!--
Thank you for contributing to uv! To help us out with reviewing, please
consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary

<!-- What's the purpose of the change? What does it do, and why? -->

The current documentation for virtual dependencies is somewhat confusing
because it places the sentence

> "the package will be built even if a build system is not declared"

immediately after introducing `tool.uv.package = false`. This makes it
sound as if the package might still be built when `package = false` is
set.

In reality, that sentence describes the *default behavior of path
dependencies* (when `package = false` is not set). The revised wording
clarifies that:

- `package = false` → the dependency becomes virtual (its dependencies
are installed, but the package itself is not built or installed)
- otherwise → uv treats the path dependency as a normal package and will
attempt to build it, even without a `[build-system]`.
2026-03-06 10:50:11 -06:00
Charlie Marsh 9f53c5866f Add documentation for common marker values (#18327)
Closes https://github.com/astral-sh/uv/issues/18300.
2026-03-05 21:18:01 +00:00
Zanie Blue 4ff4720da5 Use uv to manage our Python documentation dependencies (#18263)
I want to lock our Zig build dependencies and this is an incremental
step towards doing so via uv
2026-03-04 09:52:15 -06:00
Zanie Blue c021be36ab Bump version to 0.10.8 (#18277) 2026-03-03 15:08:03 -06:00
Zanie Blue 33ae43d341 Add Docker images based on Docker Hardened Images (#18247) 2026-03-03 08:45:19 -06:00
Mathieu Kniewallner fa116eff05 Mention cooldown and tweak inline script metadata in dependency bots documentation (#18230)
## Summary

Update [Dependency
bots](https://docs.astral.sh/uv/guides/integration/dependency-bots/)
documentation to mention how to set up dependency cooldown on
Renovate/Dependabot, to match what could be set in `exclude-newer`.

Also:
- updating configuration example for inline script metadata, as per
[this
documentation](https://docs.renovatebot.com/configuration-options/#managerfilepatterns),
`fileMatch` is deprecated, and `managerFilePatterns` should be used
instead -- the option supports both globs and regexes, so I've updated
the examples to highlight that globs can be used
- adding a note about Renovate not supporting lock files for inline
script metadata yet

## Test Plan

Rendered the documentation locally.

For all Renovate changes, tested locally using:
```shell
pnpx renovate --platform local
```

For Dependabot, I did not test it as I don't use it, so I've followed
the
[documentation](https://docs.github.com/en/code-security/reference/supply-chain-security/dependabot-options-reference#cooldown-).
2026-03-02 09:18:39 -06:00
Robin 198813cc4d docs(gitlab): move cache prune to after_script (#18206)
<!--
Thank you for contributing to uv! To help us out with reviewing, please
consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary

IMO the cache prune should be moved to
[`after_script`](https://docs.gitlab.com/ci/yaml/#after_script)

<!-- What's the purpose of the change? What does it do, and why? -->
2026-03-02 08:42:03 -06:00
Zsolt Dollenstein 08ab1a3447 Bump version to 0.10.7 (#18212) 2026-02-27 07:07:47 -05:00
Zanie Blue a91bcf2683 Bump version to 0.10.6 (#18189) 2026-02-24 17:33:36 -06:00
Zanie Blue e2c05a54e6 Bump version to 0.10.5 (#18172) 2026-02-23 16:16:32 -06:00
Zanie Blue 7ce61d5469 Attempt to use reflinks by default on Linux (#18117)
Copy of https://github.com/astral-sh/uv/pull/17753 which GitHub
auto-closed.

This adds test infrastructure for cross-device links and file systems
with reflink support. In short, we create a few extra file systems on
the CI runners then provide their paths to the test suite using
environment variables to ensure we have coverage. If the variables are
not set, the tests are skipped.

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-02-23 13:53:50 +00:00
Zanie Blue 563c44984c Change doc heading for environment variable files (#18122)
Co-authored-by: Claude <noreply@anthropic.com>
2026-02-20 17:39:47 +00:00
Zanie Blue 7a2dc39eba Make it clear that Windows is supported in user and system level configuration docs (#18106)
Co-authored-by: Claude <noreply@anthropic.com>
2026-02-19 15:02:41 -06:00
Tomasz Kramkowski 079e3fd059 Bump version to 0.10.4 (#18072) 2026-02-17 21:15:57 +00:00
Tomasz Kramkowski c75a0c625c Bump version to 0.10.3 (#18012) 2026-02-16 10:42:51 +00:00
Zanie Blue 4432588c78 Use trixie instead of bookworm in the docs (#17991)
Co-authored-by: Claude <noreply@anthropic.com>
2026-02-12 17:16:51 -05:00
Tomasz Kramkowski a788db7e5d Bump version to 0.10.2 (#17958) 2026-02-10 18:21:21 +00:00
konsti b1b14d39ae Bump version to 0.10.1 (#17953) 2026-02-10 11:14:16 +00:00
Colin Marquardt efdb5847fb Suggest uv python update-shell over uv tool ... (#17941)
<!--
Thank you for contributing to uv! To help us out with reviewing, please
consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary

<!-- What's the purpose of the change? What does it do, and why? -->
Suggest `uv python update-shell` over `uv tool update-shell` since we
are in the `uv python` area here.

## Test Plan

<!-- How was it tested? -->
n/a
2026-02-09 14:01:31 +01:00
Zanie Blue 0ba432459a Bump version to 0.10.0 (#17882)
Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
2026-02-05 20:28:44 +00:00
Zanie Blue d2ab2d0208 Stabilize Python upgrades (#17766)
Includes a few things...

- Drops preview warnings for use of `uv python upgrade` and `uv python
install --upgrade`
- Adds `--resolve-links` to `uv python find`, which I needed in test
cases to retain existing snapshots
- Fixes issues in our "Using environment ..." messages on Windows which
were incorrect
- Refactors `from_executable` for the `PythonMinorVersionLink` type
(https://github.com/astral-sh/uv/pull/17842/commits/28b2ed2525327d94fdf5372a29bbbc476d74680f)
to use the type system to prevent incorrect construction (for above)
- Removes special casing where we only upgrade links if they already
exist, which existed so preview wasn't needed on every invocation
- Fixes a bug with `PythonMinorVersionLink::exists` which returned
`true` even if the link pointed to the wrong Python installation leading
to discovery failures
2026-02-05 11:52:18 -06:00
Zanie Blue 8b595f032a chore: remove bookworm, alpine 3.21, and py38 published images (#17755)
This is a copy of https://github.com/astral-sh/uv/pull/16520 on #17661

Co-authored-by: samypr100 <3933065+samypr100@users.noreply.github.com>
2026-02-05 11:52:18 -06:00
konsti 2d22e3fe94 Drop PPC64 (big endian) builds (#17626)
PPC64 (big endian) seems dead, and it's only supported on one exact
manylinux version (https://github.com/pypa/auditwheel/issues/669), so we
should drop it.

This change does not affect PPC64LE (little endian).
2026-02-05 11:52:18 -06:00
Zanie Blue ea4560831e Bump version to 0.9.30 (#17865) 2026-02-04 21:18:04 +00:00
Zanie Blue 1f1321d842 Bump version to 0.9.29 (#17837) 2026-02-03 13:06:01 -06:00
Damian Shaw ad3ad2210c Update pip pre-release compatibility information (#17788)
As of pip 26.0 I believe all outstanding bugs and questions about
pre-release behavior in pip are resolved.

---------

Co-authored-by: Charlie Marsh <crmarsh416@gmail.com>
2026-01-31 15:27:27 -06:00
Zanie Blue 0e1351e400 Bump version to 0.9.28 (#17738) 2026-01-29 13:51:05 -06:00
Zanie Blue b5797b2ab4 Bump version to 0.9.27 (#17706) 2026-01-26 22:38:10 +00:00
Kieran Ryan dc6369858c docs: Correct gitlab-ci.yml to .gitlab-ci.yml (#17682)
Correct GitLab integration guide to the '.gitlab-ci.yml' default file
name - see [GitLab's CI/CD Yaml syntax
reference](https://docs.gitlab.com/ci/yaml/).
2026-01-25 20:56:22 -05:00
konsti 7a3e731657 Warn about PyPy being unmaintained (#17643)
It seems that PyPy is not being actively developed anymore and is phased
out even by numpy (https://github.com/numpy/numpy/issues/30416). There's
no official statement from the project, but the numpy issue is from a
PyPy developer. I added a warning to avoid users assuming PyPy properly
supported and developed Python distribution, and in anticipation of PyPy
being eventually, slowly deprecated.

---------

Co-authored-by: Tomasz Kramkowski <tom@astral.sh>
2026-01-22 09:23:26 +00:00
Zanie Blue 782ab88aca Move MSRV to platform support section (#17534)
This fits with our other support policies, it's not a part of the uv
versioning policy.

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-16 12:19:33 -06:00
Zanie Blue ee4f003628 Bump version to 0.9.26 (#17496) 2026-01-15 14:25:54 -06:00
Zanie Blue 3eadf6c1c1 Remove redundant mkdocs insiders installs (#17477)
All of the features moved into the public mkdocs.

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-15 10:25:55 -06:00
Zanie Blue ba3a708160 Remove emojis from README (#17476)
Per our discussion when creating the ty README

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-15 07:23:25 -06:00
Zanie Blue 38fcac0f36 Bump version to 0.9.25 (#17449) 2026-01-13 16:55:34 -06:00
liam 827edd0740 Allow disabling exclude-newer per package (#16854)
Resolves https://github.com/astral-sh/uv/issues/16846,
https://github.com/astral-sh/uv/issues/16813

This diff adds support for disabling `exclude-newer` for specific
packages using `<name>=false`. This allows packages
without upload dates (e.g., CPU-only PyTorch wheels from custom indices)
to be resolved when a global `exclude-newer` is set, without disabling
it globally.

---------

Co-authored-by: Zanie Blue <contact@zanie.dev>
2026-01-12 19:00:07 -06:00
Tomasz Kramkowski 4513797f46 Add --compile-bytecode to uv python install and uv python upgrade to compile the standard library (#17088)
## Summary

Implement #16408.

Currently doesn't avoid recompiling the bytecode when it is already
compiled which should be fine since the compiler script skips things
which are already compiled.

pyodide is currently unsupported due to it using a zip for its standard library
and also because it misreports the location of the standard library.

## Test Plan

Styling of the status report was manually tested, there is a new test
for testing the actual functionality.
2026-01-12 09:31:33 +00:00
Zanie Blue 0fda1525eb Bump version to 0.9.24 (#17395) 2026-01-09 22:09:11 +00:00
Zanie Blue 00f07541a1 Bump version to 0.9.23 (#17385) 2026-01-09 19:09:04 +00:00
Zanie Blue 21f76e8a2a Clarify that uv run uses inexact syncing by default (#17366)
Closes #14230

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-09 07:20:42 -06:00
konsti 82a6a66b81 Bump version to 0.9.22 (#17333)
There's a hyper-util bump to get out separate from other reqwest related
changes.
2026-01-06 11:23:12 +01:00
renovate[bot] 0d1ee355ca Update documentation references to actions/checkout to v6 (#17306)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-02 13:19:17 -05:00
renovate[bot] e3687b5b68 Update documentation references to actions/cache to v5 (#17305)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-02 13:18:59 -05:00
Sofie Van Landeghem d0088c1914 Clarify requirements file format in docs (#17284)
Co-authored-by: William Woodruff <william@yossarian.net>
2026-01-02 11:40:10 -05:00
Zanie Blue 0dc9556adb Bump version to 0.9.21 (#17270) 2025-12-30 15:46:08 +00:00
William Woodruff 53cc00eab5 Fix a small typo in the resolution docs (#17258) 2025-12-29 19:06:41 -05:00
Charlie Marsh 765a967236 Bump version to 0.9.20 (#17256)
## Summary

In #17254, I failed to bump the versions of the various internal crates,
so need to re-release.
2025-12-29 20:13:57 +00:00
Charlie Marsh a45f502e3a Bump version to 0.9.19 (#17254)
Closes https://github.com/astral-sh/uv/issues/17240
2025-12-29 13:41:40 -05:00
shamil777 543f1f3f59 Improve wording in Concepts/Projects/Creating projects documentation (#17242)
## Summary

Replace misplaced "will" with "to".
2025-12-28 10:53:05 +00:00
Zanie Blue 1d9672c11c Fix inconsistent path in editable-path-dep example (#17190)
Co-authored-by: Claude <noreply@anthropic.com>
2025-12-19 15:12:49 +00:00