diff options
| author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2023-03-06 19:01:07 +0000 |
|---|---|---|
| committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2023-03-06 19:01:38 +0000 |
| commit | 384d0c49740cf666771b44139d514af7d6437d6c (patch) | |
| tree | 834a2839e27a0e6cca639a3596123a7635cdbbbc /setuptools/config | |
| parent | 0f050a1cf4e71d79fb4402fe7ccbfcb148120234 (diff) | |
| download | python-setuptools-git-384d0c49740cf666771b44139d514af7d6437d6c.tar.gz | |
Import SetuptoolsDeprecationWarning from setuptools.warnings
Diffstat (limited to 'setuptools/config')
| -rw-r--r-- | setuptools/config/__init__.py | 2 | ||||
| -rw-r--r-- | setuptools/config/_apply_pyprojecttoml.py | 2 | ||||
| -rw-r--r-- | setuptools/config/setupcfg.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/config/__init__.py b/setuptools/config/__init__.py index 1a5153ad..d411aadd 100644 --- a/setuptools/config/__init__.py +++ b/setuptools/config/__init__.py @@ -6,7 +6,7 @@ from functools import wraps from textwrap import dedent from typing import Callable, TypeVar, cast -from .._deprecation_warning import SetuptoolsDeprecationWarning +from ..warnings import SetuptoolsDeprecationWarning from . import setupcfg Fn = TypeVar("Fn", bound=Callable) diff --git a/setuptools/config/_apply_pyprojecttoml.py b/setuptools/config/_apply_pyprojecttoml.py index c805e639..f792521c 100644 --- a/setuptools/config/_apply_pyprojecttoml.py +++ b/setuptools/config/_apply_pyprojecttoml.py @@ -18,7 +18,7 @@ from types import MappingProxyType from typing import (TYPE_CHECKING, Any, Callable, Dict, List, Optional, Set, Tuple, Type, Union, cast) -from setuptools._deprecation_warning import SetuptoolsDeprecationWarning +from setuptools.warnings import SetuptoolsDeprecationWarning if TYPE_CHECKING: from setuptools._importlib import metadata # noqa diff --git a/setuptools/config/setupcfg.py b/setuptools/config/setupcfg.py index 03a446fd..8c0dcc61 100644 --- a/setuptools/config/setupcfg.py +++ b/setuptools/config/setupcfg.py @@ -31,7 +31,7 @@ from setuptools.extern.packaging.requirements import Requirement, InvalidRequire from setuptools.extern.packaging.markers import default_environment as marker_env from setuptools.extern.packaging.version import Version, InvalidVersion from setuptools.extern.packaging.specifiers import SpecifierSet -from setuptools._deprecation_warning import SetuptoolsDeprecationWarning +from setuptools.warnings import SetuptoolsDeprecationWarning from . import expand |
