Repository navigation
Conversation
8f404f1 to
92a71d2
Compare
ea08bab to
746faa6
Compare
7be4bee to
cd5ec1a
Compare
00999e9 to
7c1319f
Compare
1e30840 to
4d0bf8a
Compare
2bab5c8 to
1111b2a
Compare
ba02573 to
400a17d
Compare
| /// If you do not specify a version, uv checks `UV_PYTHON`, then `.python-versions` or | ||
| /// `.python-version` files. If none exist, uv checks for an installed Python version. If it | ||
| /// finds none, it installs the latest stable Python version. |
There was a problem hiding this comment.
[P3] Retain the managed-Python qualifier in installation help
With a system Python on PATH but no managed installation or version request, uv python install still downloads Python. This rewrite loses the previous distinction that uv checks versions it installed: the implementation searches ManagedPythonInstallations::find_all(), not system interpreters. Say “a matching uv-managed Python version” and update the help snapshot so users do not expect an existing system interpreter to prevent installation.
| A package URL fixes both the package source and its implied version. Two different URLs for the same | ||
| package produce a resolution error because each URL acts like an exact version pin. A |
There was a problem hiding this comment.
[P3] Qualify URL conflicts as applying within one resolution fork
Different URLs for the same package are valid under disjoint markers, such as sys_platform == 'darwin' and sys_platform != 'darwin'. The existing lock_same_version_multiple_urls integration test covers this, and ForkUrls::insert checks uniqueness within each fork. Replacing “conflicting URLs” with “different URLs” incorrectly rules out this supported configuration. Qualify the error condition as requiring incompatible URLs for the same package within one resolution fork.
| `--only-group` will also exclude default groups. | ||
| `--all-groups`, `--no-default-groups`, `--group <name>`, `--only-group <name>`, and | ||
| `--no-group <name>` include or exclude additional groups. Like `--only-dev`, `--only-group` excludes | ||
| the project. Unlike `--only-dev`, `--only-group` also excludes default groups. |
There was a problem hiding this comment.
[P3] State that --only-dev also excludes default groups
With tool.uv.default-groups = ["lint"], uv sync --only-dev excludes lint too. DependencyGroups::from_history translates DevMode::Only into only_group and disables defaults for either form; the CLI also documents --only-dev as an alias for --only-group dev. The new “Unlike” sentence incorrectly promises different installed dependencies. State that both forms exclude default groups.
| // Avoid forking for a package with one dependency specification. | ||
| // This conservative strategy produces simpler lockfiles and faster resolution. | ||
| // However, it does not detect conflicts between transitive non-sibling dependencies. |
There was a problem hiding this comment.
[P3] Clarify that the heuristic can miss a required fork
Unforked dependencies still pass through add_package_version_dependencies and PubGrub's conflict handling. The existing fork_non_local_fork_marker_transitive test expects an unsatisfiable-requirements error despite disjoint markers permitting a valid resolution. The limitation is therefore missing a necessary fork, which can reject resolvable requirements. Saying conflicts are not detected obscures this distinction for maintainers. Reword the last sentence to explain that the strategy can miss forks needed for transitive non-sibling dependencies.
| Standard CPython installations omit debug symbols to reduce their size. Debug builds retain | ||
| these symbols. A C-level debugger can use them to inspect Python processes. |
There was a problem hiding this comment.
[P3] Keep the debug-symbol claim scoped to uv-managed Python
The previous note described CPython distributions installed by uv. A normal source-built CPython can retain debug symbols without enabling Py_DEBUG; uv identifies debug builds through Py_DEBUG in get_interpreter_info.py, independently of symbol availability. The rewrite broadens a distribution-specific statement and can suggest that native debugging requires a slower +debug interpreter. Retain the qualifier that uv-managed CPython distributions usually have their debug symbols stripped.
| /// By default, uv calls its build backend directly and does not create a PEP 517 build | ||
| /// environment. This option forces uv to use PEP 517 instead. |
There was a problem hiding this comment.
[P3] Keep the backend condition in --force-pep517 help
For projects using Hatchling or setuptools, uv build already uses PEP 517 by default. uv-build-commands selects direct builds only when check_direct_build accepts the project's backend and version requirements. Removing “for packages using the uv build backend” makes this paragraph incorrectly describe the default for all projects. Restore that condition, ideally specifying a compatible uv_build backend, so readers do not infer that other backends require this flag to use PEP 517.
| /// System Python installations are still preferred over downloading managed Python versions. | ||
| /// Use `only-managed` to always fetch a managed Python version. | ||
| /// Use an existing system Python installation before downloading a managed version. | ||
| /// Use `only-managed` to always download a managed Python version. |
There was a problem hiding this comment.
[P3] Describe only-managed without promising a download
When a matching managed interpreter is already installed, PythonInstallation::find_or_download returns it from find_existing before reaching the download logic. The existing venv_python_preference test also covers this reuse. Changing “fetch” to “always download” incorrectly describes only-managed as forcing a download. Say “always use a managed Python installation” and update the generated schema description.
| Each entry includes a package name and version. An entry may also include extras or platform | ||
| markers. For example: |
There was a problem hiding this comment.
[P3] Keep version constraints optional in dependency documentation
Unversioned declarations such as dependencies = ["anyio"] are valid: the PEP 508 parser accepts missing version constraints, and the existing lock_no_sources integration test exercises this. The rewrite makes a version sound mandatory, unlike the previous wording. Say that each entry requires a package name and may include version constraints, extras, or environment markers.
| The `--upgrade-package` flag updates the specified package to the latest compatible version. It does | ||
| not change the other packages in the lockfile. |
There was a problem hiding this comment.
[P3] Describe targeted upgrades as preserving other versions when possible
This turns a preference into a guarantee. If package A's new version requires B>=2 while the lockfile contains B==1, uv lock --upgrade-package A can update B too. read_lock_requirements retains other locked versions as preferences, and get_preferred_from_iter skips preferences outside the required version range. Say that uv prefers retaining other locked versions but may change them to satisfy the upgrade.
Apply Simplified Technical English principles to user-facing documentation, command help, configuration descriptions, and source comments. Replace long or indirect explanations with shorter sentences, active voice, and consistent terminology while preserving existing behavior and established technical terms. Record the conventions in
STYLE.mdand update generated configuration descriptions and affected help snapshots.