PHP 8.0.30
Preview: test.py Size: 1.37 KB
//opt/cloudlinux/venv/lib64/python3.11/site-packages/setuptools/command/test.py

from __future__ import annotations

from typing import NoReturn

from setuptools import Command
from setuptools.warnings import SetuptoolsDeprecationWarning


# Would restrict to Literal["test"], but mypy doesn't support it: https://github.com/python/mypy/issues/8203
def __getattr__(name: str) -> type[_test]:
    if name == 'test':
        SetuptoolsDeprecationWarning.emit(
            "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.",
            due_date=(2024, 11, 15),
            stacklevel=2,
        )
        return _test
    raise AttributeError(name)


class _test(Command):
    """
    Stub to warn when test command is referenced or used.
    """

    description = "stub for old test command (do not use)"

    user_options = [
        ('test-module=', 'm', "Run 'test_suite' in specified module"),
        (
            'test-suite=',
            's',
            "Run single test, case or suite (e.g. 'module.test_suite')",
        ),
        ('test-runner=', 'r', "Test runner to use"),
    ]

    def initialize_options(self) -> None:
        pass

    def finalize_options(self) -> None:
        pass

    def run(self) -> NoReturn:
        raise RuntimeError("Support for the test command was removed in Setuptools 72")

Directory Contents

Dirs: 1 × Files: 25

Name Size Perms Modified Actions
- drwxr-xr-x 2026-07-22 02:20:03
Edit Download
2.31 KB lrw-r--r-- 2026-06-16 08:49:16
Edit Download
16.44 KB lrw-r--r-- 2026-06-16 08:49:16
Edit Download
1.40 KB lrw-r--r-- 2026-06-16 08:49:16
Edit Download
21.69 KB lrw-r--r-- 2026-06-16 08:49:16
Edit Download
5.91 KB lrw-r--r-- 2026-06-16 08:49:16
Edit Download
4.42 KB lrw-r--r-- 2026-06-16 08:49:16
Edit Download
17.84 KB lrw-r--r-- 2026-06-16 08:49:16
Edit Download
15.46 KB lrw-r--r-- 2026-06-16 08:49:16
Edit Download
1.71 KB lrw-r--r-- 2026-06-16 08:49:16
Edit Download
3.37 KB lrw-r--r-- 2026-06-16 08:49:16
Edit Download
780 B lrw-r--r-- 2026-06-16 08:49:16
Edit Download
34.04 KB lrw-r--r-- 2026-06-16 08:49:16
Edit Download
25.15 KB lrw-r--r-- 2026-06-16 08:49:16
Edit Download
4.95 KB lrw-r--r-- 2026-06-16 08:49:16
Edit Download
1.97 KB lrw-r--r-- 2026-06-16 08:49:16
Edit Download
4.22 KB lrw-r--r-- 2026-06-16 08:49:16
Edit Download
2.39 KB lrw-r--r-- 2026-06-16 08:49:16
Edit Download
628 B lrw-r--r-- 2026-06-16 08:49:16
Edit Download
2.08 KB lrw-r--r-- 2026-06-16 08:49:16
Edit Download
678 B lrw-r--r-- 2026-06-16 08:49:16
Edit Download
7.25 KB lrw-r--r-- 2026-06-16 08:49:16
Edit Download
4.93 KB lrw-r--r-- 2026-06-16 08:49:16
Edit Download
1.37 KB lrw-r--r-- 2026-06-16 08:49:16
Edit Download
4.13 KB lrw-r--r-- 2026-06-16 08:49:16
Edit Download
803 B lrw-r--r-- 2026-06-16 08:49:16
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).