[stable-2.17] release.py - Add missing setuptools arg to prepare (#83887) (#83888)

* 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
(cherry picked from commit b544ac13ec)
pull/83891/head
Matt Clay 3 months ago committed by GitHub
parent 803cbccbc3
commit 142e46ce6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1243,7 +1243,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,

Loading…
Cancel
Save