$29 GRAYBYTE WORDPRESS FILE MANAGER $11

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools/config/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools/config//__init__.py
"""For backward compatibility, expose main functions from
``setuptools.config.setupcfg``
"""

from functools import wraps
from typing import Callable, TypeVar, cast

from ..warnings import SetuptoolsDeprecationWarning
from . import setupcfg

Fn = TypeVar("Fn", bound=Callable)

__all__ = ('parse_configuration', 'read_configuration')


def _deprecation_notice(fn: Fn) -> Fn:
    @wraps(fn)
    def _wrapper(*args, **kwargs):
        SetuptoolsDeprecationWarning.emit(
            "Deprecated API usage.",
            f"""
            As setuptools moves its configuration towards `pyproject.toml`,
            `{__name__}.{fn.__name__}` became deprecated.

            For the time being, you can use the `{setupcfg.__name__}` module
            to access a backward compatible API, but this module is provisional
            and might be removed in the future.

            To read project metadata, consider using
            ``build.util.project_wheel_metadata`` (https://pypi.org/project/build/).
            For simple scenarios, you can also try parsing the file directly
            with the help of ``configparser``.
            """,
            # due_date not defined yet, because the community still heavily relies on it
            # Warning introduced in 24 Mar 2022
        )
        return fn(*args, **kwargs)

    return cast(Fn, _wrapper)


read_configuration = _deprecation_notice(setupcfg.read_configuration)
parse_configuration = _deprecation_notice(setupcfg.parse_configuration)

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
14 Aug 2025 9.30 PM
root / root
0755
__pycache__
--
14 Aug 2025 9.24 PM
root / root
0755
_validate_pyproject
--
14 Aug 2025 9.24 PM
root / root
0755
NOTICE
0.481 KB
17 Apr 2025 8.10 PM
root / root
0644
__init__.py
1.464 KB
17 Apr 2025 8.10 PM
root / root
0644
_apply_pyprojecttoml.py
18.672 KB
17 Apr 2025 8.10 PM
root / root
0644
distutils.schema.json
0.949 KB
17 Apr 2025 8.10 PM
root / root
0644
expand.py
15.665 KB
17 Apr 2025 8.10 PM
root / root
0644
pyprojecttoml.py
17.891 KB
17 Apr 2025 8.10 PM
root / root
0644
setupcfg.py
25.952 KB
17 Apr 2025 8.10 PM
root / root
0644
setuptools.schema.json
15.694 KB
17 Apr 2025 8.10 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF