Skip to content

Commit f6d2c42

Browse files
srittauAvasampre-commit-ci[bot]
authored andcommitted
Bump setuptools to 72.2.* (python#12461)
Co-authored-by: Avasam <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 83095e9 commit f6d2c42

File tree

2 files changed

+13
-37
lines changed

2 files changed

+13
-37
lines changed

stubs/setuptools/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "71.1.*"
1+
version = "72.2.*"
22
upstream_repository = "https://github.com/pypa/setuptools"
33
extra_description = """\
44
If using `setuptools >= 71.1` *only* for `pkg_resources`,
Lines changed: 12 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,19 @@
1-
from _typeshed import Incomplete, Unused
2-
from collections.abc import Callable
3-
from types import ModuleType
4-
from typing import ClassVar, Generic, TypeVar, overload
5-
from typing_extensions import Self
6-
from unittest import TestLoader, TestSuite
1+
from typing import ClassVar
2+
from typing_extensions import deprecated
73

84
from .. import Command
95

10-
_T = TypeVar("_T")
11-
_R = TypeVar("_R")
12-
13-
class ScanningLoader(TestLoader):
14-
def __init__(self) -> None: ...
15-
def loadTestsFromModule(self, module: ModuleType, pattern: Incomplete | None = None) -> list[TestSuite]: ... # type: ignore[override]
16-
17-
class NonDataProperty(Generic[_T, _R]):
18-
fget: Callable[[_T], _R]
19-
def __init__(self, fget: Callable[[_T], _R]) -> None: ...
20-
@overload
21-
def __get__(self, obj: None, objtype: Unused = None) -> Self: ...
22-
@overload
23-
def __get__(self, obj: _T, objtype: Unused = None) -> _R: ...
24-
25-
class test(Command):
26-
description: str
6+
@deprecated(
7+
"""\
8+
The test command is disabled and references to it are deprecated. \
9+
Please remove any references to `setuptools.command.test` in all supported versions of the affected package.\
10+
"""
11+
)
12+
class _test(Command):
13+
description: ClassVar[str]
2714
user_options: ClassVar[list[tuple[str, str, str]]]
28-
test_suite: Incomplete
29-
test_module: Incomplete
30-
test_loader: Incomplete
31-
test_runner: Incomplete
3215
def initialize_options(self) -> None: ...
3316
def finalize_options(self) -> None: ...
34-
@NonDataProperty
35-
def test_args(self) -> list[str]: ...
36-
def with_project_on_sys_path(self, func) -> None: ...
37-
def project_on_sys_path(self, include_dists=()): ...
38-
@staticmethod
39-
def paths_on_pythonpath(paths) -> None: ...
40-
@staticmethod
41-
def install_dists(dist): ...
4217
def run(self) -> None: ...
43-
def run_tests(self) -> None: ...
18+
19+
test = _test

0 commit comments

Comments
 (0)