mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 13:25:00 +00:00
Use consistent commas around i.e. and e.g. (#12157)
## Summary Only in user-facing docs -- I didn't bother with the rustdoc. (This is in the style guide already.)
This commit is contained in:
parent
f5f712d75a
commit
3188d99f39
18 changed files with 34 additions and 34 deletions
|
@ -177,7 +177,7 @@ Changelog entries and version bumps are automated. First, run:
|
|||
|
||||
Then, editorialize the `CHANGELOG.md` file to ensure entries are consistently styled.
|
||||
|
||||
Then, open a pull request e.g. `Bump version to ...`.
|
||||
Then, open a pull request, e.g., `Bump version to ...`.
|
||||
|
||||
Binary builds will automatically be tested for the release.
|
||||
|
||||
|
|
|
@ -1050,11 +1050,11 @@ See [#2976](https://github.com/astral-sh/uv/pull/2976#discussion_r1566521453) fo
|
|||
|
||||
### Bug fixes
|
||||
|
||||
- Fix HTTP authentication when the password includes percent encoded characters (e.g. with Google
|
||||
- Fix HTTP authentication when the password includes percent encoded characters (e.g., with Google
|
||||
Artifact Registry) ([#2822](https://github.com/astral-sh/uv/issues/2822))
|
||||
- Use usernames from URLs when looking for credentials in netrc files and the keyring
|
||||
[#2563](https://github.com/astral-sh/uv/issues/2563))
|
||||
- Skip `HEAD` requests for indexes that return 403 (e.g. PyPICloud)
|
||||
- Skip `HEAD` requests for indexes that return 403 (e.g., PyPICloud)
|
||||
([#3070](https://github.com/astral-sh/uv/pull/3070))
|
||||
- Use kebab-case consistently ([#3080](https://github.com/astral-sh/uv/pull/3080))
|
||||
- Show package name in no version for direct dependency error
|
||||
|
|
|
@ -45,7 +45,7 @@ abundance of caution. We expect most users to be able to upgrade without making
|
|||
- **Implement PEP 440-compliant local version semantics**
|
||||
([#8797](https://github.com/astral-sh/uv/pull/8797))
|
||||
|
||||
Previously, uv's implementation of local versions (e.g. `2.0+cpu`) was not compliant with the
|
||||
Previously, uv's implementation of local versions (e.g., `2.0+cpu`) was not compliant with the
|
||||
specification due to the technical complexity of implementing the local version semantics in the
|
||||
PubGrub algorithm. Thanks to the work of @ericmarkmartin, uv now has a spec-compliant
|
||||
implementation. Namely, uv will now allow a request for `torch==2.1.0` to install
|
||||
|
|
|
@ -24,8 +24,8 @@ This crate supports the cross-language, restricted glob syntax from
|
|||
- `?`: Matches a single character except the path separator
|
||||
- `**`: Matches any number of characters including path separators
|
||||
- `[]`, containing only the verbatim matched characters: Matches a single of the characters
|
||||
contained. Within `[...]`, the hyphen indicates a locale-agnostic range (e.g. `a-z`, order based
|
||||
on Unicode code points). Hyphens at the start or end are matched literally.
|
||||
contained. Within `[...]`, the hyphen indicates a locale-agnostic range (e.g., `a-z`, order
|
||||
based on Unicode code points). Hyphens at the start or end are matched literally.
|
||||
- The path separator is the forward slash character (`/`). Patterns are relative to the given
|
||||
directory, a leading slash character for absolute paths is not supported.
|
||||
- Parent directory indicators (`..`) are not allowed.
|
||||
|
|
|
@ -24,7 +24,7 @@ assert!(version_specifiers.contains(&version));
|
|||
|
||||
PEP 440 has a lot of unintuitive features, including:
|
||||
|
||||
- An epoch that you can prefix the version which, e.g. `1!1.2.3`. Lower epoch always means lower
|
||||
- An epoch that you can prefix the version with, e.g., `1!1.2.3`. Lower epoch always means lower
|
||||
version (`1.0 <=2!0.1`)
|
||||
|
||||
* post versions, which can be attached to both stable releases and pre-releases
|
||||
|
@ -40,6 +40,6 @@ PEP 440 has a lot of unintuitive features, including:
|
|||
* local versions on top of all the others, which are added with a + and have implicitly typed string
|
||||
and number segments
|
||||
* no semver-caret (`^`), but a pseudo-semver tilde (`~=`)
|
||||
* ordering contradicts matching: We have e.g. `1.0+local > 1.0` when sorting, but `==1.0` matches
|
||||
* ordering contradicts matching: We have, e.g., `1.0+local > 1.0` when sorting, but `==1.0` matches
|
||||
`1.0+local`. While the ordering of versions itself is a total order the version matching needs to
|
||||
catch all sorts of special cases
|
||||
|
|
|
@ -22,7 +22,7 @@ assert_eq!(dependency_specification.extras, Some(vec
|
||||
|
@ -16,10 +16,10 @@ for more details on how to configure SSH.
|
|||
|
||||
Using a password or token:
|
||||
|
||||
- `git+https://<user>:<token>@<hostname>/...` (e.g.
|
||||
- `git+https://<user>:<token>@<hostname>/...` (e.g.,
|
||||
`git+https://git:github_pat_asdf@github.com/astral-sh/uv`)
|
||||
- `git+https://<token>@<hostname>/...` (e.g. `git+https://github_pat_asdf@github.com/astral-sh/uv`)
|
||||
- `git+https://<user>@<hostname>/...` (e.g. `git+https://git@github.com/astral-sh/uv`)
|
||||
- `git+https://<token>@<hostname>/...` (e.g., `git+https://github_pat_asdf@github.com/astral-sh/uv`)
|
||||
- `git+https://<user>@<hostname>/...` (e.g., `git+https://git@github.com/astral-sh/uv`)
|
||||
|
||||
When using a GitHub personal access token, the username is arbitrary. GitHub does not support
|
||||
logging in with password directly, although other hosts may. If a username is provided without
|
||||
|
|
|
@ -423,7 +423,7 @@ Use to control color via `anstyle`.
|
|||
|
||||
Overrides terminal width used for wrapping. This variable is not read by uv directly.
|
||||
|
||||
This is a quasi-standard variable, described e.g. in `ncurses(3x)`.
|
||||
This is a quasi-standard variable, described, e.g., in `ncurses(3x)`.
|
||||
|
||||
### `CONDA_DEFAULT_ENV`
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ To install multiple Python versions:
|
|||
$ uv python install 3.11 3.12
|
||||
```
|
||||
|
||||
To install an alternative Python implementation, e.g. PyPy:
|
||||
To install an alternative Python implementation, e.g., PyPy:
|
||||
|
||||
```console
|
||||
$ uv python install pypy@3.10
|
||||
|
|
|
@ -87,7 +87,7 @@ explicit = true
|
|||
|
||||
!!! note
|
||||
|
||||
When using `uv publish --index <name>`, the `pyproject.toml` must be present, i.e. you need to
|
||||
When using `uv publish --index <name>`, the `pyproject.toml` must be present, i.e., you need to
|
||||
have a checkout step in a publish CI job.
|
||||
|
||||
Even though `uv publish` retries failed uploads, it can happen that publishing fails in the middle,
|
||||
|
|
|
@ -76,7 +76,7 @@ print("hello world!")
|
|||
EOF
|
||||
```
|
||||
|
||||
Note that if you use `uv run` in a _project_, i.e. a directory with a `pyproject.toml`, it will
|
||||
Note that if you use `uv run` in a _project_, i.e., a directory with a `pyproject.toml`, it will
|
||||
install the current project before running the script. If your script does not depend on the
|
||||
project, use the `--no-project` flag to skip this:
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ Tools are installed into temporary, isolated environments when using `uvx`.
|
|||
When `uvx ruff` is invoked, uv installs the `ruff` package which provides the `ruff` command.
|
||||
However, sometimes the package and command names differ.
|
||||
|
||||
The `--from` option can be used to invoke a command from a specific package, e.g. `http` which is
|
||||
The `--from` option can be used to invoke a command from a specific package, e.g., `http` which is
|
||||
provided by `httpie`:
|
||||
|
||||
```console
|
||||
|
|
|
@ -259,7 +259,7 @@ dependencies of the package, e.g, `setuptools`.
|
|||
|
||||
If a package fails to build during resolution and the version that failed to build is older than the
|
||||
version you want to use, try adding a [constraint](../settings.md#constraint-dependencies) with a
|
||||
lower bound (e.g. `numpy>=1.17`). Sometimes, due to algorithmic limitations, the uv resolver tries
|
||||
lower bound (e.g., `numpy>=1.17`). Sometimes, due to algorithmic limitations, the uv resolver tries
|
||||
to find a fitting version using unreasonably old packages, which can be prevented by using lower
|
||||
bounds.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue