From d2cd09bbd7fed5d595a96bc4895aa2a2f6700ac9 Mon Sep 17 00:00:00 2001 From: Nathan McDougall Date: Sat, 26 Oct 2024 02:55:33 +1300 Subject: [PATCH] Update docs for `--publish-url` to avoid duplication. (#8561) ## Summary These two sentences in the docs for `--publish-url` seem to basically be duplicates: https://github.com/astral-sh/uv/blob/3eda248ef5678fe07b5424fb4f256011800fbb15/crates/uv-cli/src/lib.rs#L4616-L4618 I found the first to be easier to read, so this commit removes the second. ## Test Plan No tests, change is docs-only. --------- Co-authored-by: Zanie Blue --- crates/uv-cli/src/lib.rs | 2 -- docs/reference/cli.md | 2 -- 2 files changed, 4 deletions(-) diff --git a/crates/uv-cli/src/lib.rs b/crates/uv-cli/src/lib.rs index d75a58225..af1013724 100644 --- a/crates/uv-cli/src/lib.rs +++ b/crates/uv-cli/src/lib.rs @@ -4614,8 +4614,6 @@ pub struct PublishArgs { /// and index upload. /// /// Defaults to PyPI's publish URL (). - /// - /// The default value is publish URL for PyPI (). #[arg(long, env = EnvVars::UV_PUBLISH_URL)] pub publish_url: Option, diff --git a/docs/reference/cli.md b/docs/reference/cli.md index 238ad49d5..52882d281 100644 --- a/docs/reference/cli.md +++ b/docs/reference/cli.md @@ -7479,8 +7479,6 @@ uv publish [OPTIONS] [FILES]...

Defaults to PyPI’s publish URL (<https://upload.pypi.org/legacy/>).

-

The default value is publish URL for PyPI (<https://upload.pypi.org/legacy/>).

-

May also be set with the UV_PUBLISH_URL environment variable.

--python-preference python-preference

Whether to prefer uv-managed or system Python installations.