From 3a7e114a728550a26793412ea9f67916c69f112c Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Tue, 30 Jul 2024 13:54:43 +0200 Subject: [PATCH 1/4] Bump setuptools to 72.1.* --- stubs/setuptools/METADATA.toml | 2 +- stubs/setuptools/setuptools/command/test.pyi | 43 ++++---------------- 2 files changed, 8 insertions(+), 37 deletions(-) diff --git a/stubs/setuptools/METADATA.toml b/stubs/setuptools/METADATA.toml index 6d0e2c46412e..19e5f1cd4616 100644 --- a/stubs/setuptools/METADATA.toml +++ b/stubs/setuptools/METADATA.toml @@ -1,4 +1,4 @@ -version = "71.1.*" +version = "72.1.*" upstream_repository = "https://github.com/pypa/setuptools" extra_description = """\ If using `setuptools >= 71.1` *only* for `pkg_resources`, diff --git a/stubs/setuptools/setuptools/command/test.pyi b/stubs/setuptools/setuptools/command/test.pyi index 3c2c22673f13..d88d26faea63 100644 --- a/stubs/setuptools/setuptools/command/test.pyi +++ b/stubs/setuptools/setuptools/command/test.pyi @@ -1,43 +1,14 @@ -from _typeshed import Incomplete, Unused -from collections.abc import Callable -from types import ModuleType -from typing import ClassVar, Generic, TypeVar, overload -from typing_extensions import Self -from unittest import TestLoader, TestSuite +from typing import ClassVar +from typing_extensions import deprecated from .. import Command -_T = TypeVar("_T") -_R = TypeVar("_R") - -class ScanningLoader(TestLoader): - def __init__(self) -> None: ... - def loadTestsFromModule(self, module: ModuleType, pattern: Incomplete | None = None) -> list[TestSuite]: ... # type: ignore[override] - -class NonDataProperty(Generic[_T, _R]): - fget: Callable[[_T], _R] - def __init__(self, fget: Callable[[_T], _R]) -> None: ... - @overload - def __get__(self, obj: None, objtype: Unused = None) -> Self: ... - @overload - def __get__(self, obj: _T, objtype: Unused = None) -> _R: ... - -class test(Command): - description: str +@deprecated("The test command is disabled and references to it are deprecated. Please remove any references to `setuptools.command.test` in all supported versions of the affected package.") +class _test(Command): + description: ClassVar[str] user_options: ClassVar[list[tuple[str, str, str]]] - test_suite: Incomplete - test_module: Incomplete - test_loader: Incomplete - test_runner: Incomplete def initialize_options(self) -> None: ... def finalize_options(self) -> None: ... - @NonDataProperty - def test_args(self) -> list[str]: ... - def with_project_on_sys_path(self, func) -> None: ... - def project_on_sys_path(self, include_dists=()): ... - @staticmethod - def paths_on_pythonpath(paths) -> None: ... - @staticmethod - def install_dists(dist): ... def run(self) -> None: ... - def run_tests(self) -> None: ... + +test = _test From d575b1a753b3fef0120498c9424e4619a30cf647 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 30 Jul 2024 11:57:52 +0000 Subject: [PATCH 2/4] [pre-commit.ci] auto fixes from pre-commit.com hooks --- stubs/setuptools/setuptools/command/test.pyi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stubs/setuptools/setuptools/command/test.pyi b/stubs/setuptools/setuptools/command/test.pyi index d88d26faea63..e0207b061152 100644 --- a/stubs/setuptools/setuptools/command/test.pyi +++ b/stubs/setuptools/setuptools/command/test.pyi @@ -3,7 +3,9 @@ from typing_extensions import deprecated from .. import Command -@deprecated("The test command is disabled and references to it are deprecated. Please remove any references to `setuptools.command.test` in all supported versions of the affected package.") +@deprecated( + "The test command is disabled and references to it are deprecated. Please remove any references to `setuptools.command.test` in all supported versions of the affected package." +) class _test(Command): description: ClassVar[str] user_options: ClassVar[list[tuple[str, str, str]]] From f5d66771e90fe7a0d4f552698945afd2fb400f03 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Tue, 30 Jul 2024 18:14:09 +0200 Subject: [PATCH 3/4] Update stubs/setuptools/setuptools/command/test.pyi Co-authored-by: Avasam --- stubs/setuptools/setuptools/command/test.pyi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stubs/setuptools/setuptools/command/test.pyi b/stubs/setuptools/setuptools/command/test.pyi index e0207b061152..4832cf3a99cc 100644 --- a/stubs/setuptools/setuptools/command/test.pyi +++ b/stubs/setuptools/setuptools/command/test.pyi @@ -4,7 +4,10 @@ from typing_extensions import deprecated from .. import Command @deprecated( - "The test command is disabled and references to it are deprecated. Please remove any references to `setuptools.command.test` in all supported versions of the affected package." + """\ +The test command is disabled and references to it are deprecated. \ +Please remove any references to `setuptools.command.test` in all supported versions of the affected package.\ +""" ) class _test(Command): description: ClassVar[str] From 0ac5637b753a9f3b8b053a26f140e258ce309034 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Tue, 20 Aug 2024 08:55:29 +0200 Subject: [PATCH 4/4] Update stubs/setuptools/METADATA.toml Co-authored-by: Avasam --- stubs/setuptools/METADATA.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/setuptools/METADATA.toml b/stubs/setuptools/METADATA.toml index 19e5f1cd4616..6c3dfe7ad10c 100644 --- a/stubs/setuptools/METADATA.toml +++ b/stubs/setuptools/METADATA.toml @@ -1,4 +1,4 @@ -version = "72.1.*" +version = "72.2.*" upstream_repository = "https://github.com/pypa/setuptools" extra_description = """\ If using `setuptools >= 71.1` *only* for `pkg_resources`,