From b544ac13ec081e4e84f16c12b286b0626cc2bb12 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 3 Sep 2024 13:05:26 -0700 Subject: [PATCH] release.py - Add missing setuptools arg to prepare (#83887) * release.py - Add missing setuptools arg to prepare This allows the prepare command to accept the `--no-setuptools` argument. It also fixes a traceback when using the `prepare` command. * Use a more accurate type hint --- packaging/release.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/release.py b/packaging/release.py index 109fa811b94..16f9d5fd4c1 100755 --- a/packaging/release.py +++ b/packaging/release.py @@ -1244,7 +1244,7 @@ def check_state(allow_stale: bool = False) -> None: # noinspection PyUnusedLocal @command -def prepare(final: bool = False, pre: str | None = None, version: str | None = None) -> None: +def prepare(final: bool = False, pre: str | None = None, version: str | None = None, setuptools: bool | None = None) -> None: """Prepare a release.""" command.run( update_version,