|
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 |
7 | 3 |
|
8 | 4 | from .. import Command |
9 | 5 |
|
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] |
27 | 14 | user_options: ClassVar[list[tuple[str, str, str]]] |
28 | | - test_suite: Incomplete |
29 | | - test_module: Incomplete |
30 | | - test_loader: Incomplete |
31 | | - test_runner: Incomplete |
32 | 15 | def initialize_options(self) -> None: ... |
33 | 16 | 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): ... |
42 | 17 | def run(self) -> None: ... |
43 | | - def run_tests(self) -> None: ... |
| 18 | + |
| 19 | +test = _test |
0 commit comments