Skip to content

Commit 118c5e4

Browse files
committed
Remove deprecated 'setuptools.convert_path'
1 parent 77bfebf commit 118c5e4

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

setuptools/__init__.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import _distutils_hack.override # noqa: F401
99
import distutils.core
1010
from distutils.errors import DistutilsOptionError
11-
from distutils.util import convert_path as _convert_path
1211

1312
from . import logging, monkey
1413
from . import version as _version_module
@@ -247,22 +246,6 @@ def findall(dir=os.curdir):
247246
return list(files)
248247

249248

250-
@functools.wraps(_convert_path)
251-
def convert_path(pathname):
252-
SetuptoolsDeprecationWarning.emit(
253-
"Access to implementation detail",
254-
"""
255-
The function `convert_path` is not provided by setuptools itself,
256-
and therefore not part of the public API.
257-
258-
Its direct usage by 3rd-party packages is considered improper and the function
259-
may be removed in the future.
260-
""",
261-
due_date=(2023, 12, 13), # initial deprecation 2022-03-25, see #3201
262-
)
263-
return _convert_path(pathname)
264-
265-
266249
class sic(str):
267250
"""Treat this string as-is (https://en.wikipedia.org/wiki/Sic)"""
268251

setuptools/tests/test_setuptools.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,3 @@ def test_its_own_wheel_does_not_contain_tests(setuptools_wheel):
307307

308308
for member in contents:
309309
assert '/tests/' not in member
310-
311-
312-
def test_convert_path_deprecated():
313-
with pytest.warns(setuptools.SetuptoolsDeprecationWarning):
314-
setuptools.convert_path('setuptools/tests')

0 commit comments

Comments
 (0)