File tree 3 files changed +0
-36
lines changed
3 files changed +0
-36
lines changed Original file line number Diff line number Diff line change 11
11
import urllib .parse
12
12
import urllib .request
13
13
from distutils ._log import log
14
- from warnings import warn
15
14
16
15
from more_itertools import always_iterable
17
16
@@ -65,19 +64,6 @@ def run(self):
65
64
else :
66
65
self .send_metadata ()
67
66
68
- def check_metadata (self ):
69
- """Deprecated API."""
70
- warn (
71
- "distutils.command.register.check_metadata is deprecated; "
72
- "use the check command instead" ,
73
- DeprecationWarning ,
74
- )
75
- check = self .distribution .get_command_obj ('check' )
76
- check .ensure_finalized ()
77
- check .strict = self .strict
78
- check .restructuredtext = True
79
- check .run ()
80
-
81
67
def _set_config (self ):
82
68
"""Reads the configuration file and set attributes."""
83
69
config = self ._read_pypirc ()
Original file line number Diff line number Diff line change 8
8
from distutils ._log import log
9
9
from glob import glob
10
10
from itertools import filterfalse
11
- from warnings import warn
12
11
13
12
from ..core import Command
14
13
from ..errors import DistutilsOptionError , DistutilsTemplateError
@@ -177,17 +176,6 @@ def run(self):
177
176
# or zipfile, or whatever.
178
177
self .make_distribution ()
179
178
180
- def check_metadata (self ):
181
- """Deprecated API."""
182
- warn (
183
- "distutils.command.sdist.check_metadata is deprecated, \
184
- use the check command instead" ,
185
- PendingDeprecationWarning ,
186
- )
187
- check = self .distribution .get_command_obj ('check' )
188
- check .ensure_finalized ()
189
- check .run ()
190
-
191
179
def get_file_list (self ):
192
180
"""Figure out the list of files to include in the source
193
181
distribution, and put it in 'self.filelist'. This might involve
Original file line number Diff line number Diff line change 4
4
import pathlib
5
5
import shutil # noqa: F401
6
6
import tarfile
7
- import warnings
8
7
import zipfile
9
8
from distutils .archive_util import ARCHIVE_FORMATS
10
9
from distutils .command .sdist import sdist , show_formats
20
19
import pytest
21
20
from more_itertools import ilen
22
21
23
- from .compat .py38 import check_warnings
24
22
from .unix_compat import grp , pwd , require_uid_0 , require_unix_id
25
23
26
24
SETUP_PY = """
@@ -275,14 +273,6 @@ def test_metadata_check_option(self, caplog):
275
273
cmd .run ()
276
274
assert len (self .warnings (caplog .messages , 'warning: check: ' )) == 0
277
275
278
- def test_check_metadata_deprecated (self ):
279
- # makes sure make_metadata is deprecated
280
- dist , cmd = self .get_cmd ()
281
- with check_warnings () as w :
282
- warnings .simplefilter ("always" )
283
- cmd .check_metadata ()
284
- assert len (w .warnings ) == 1
285
-
286
276
def test_show_formats (self , capsys ):
287
277
show_formats ()
288
278
You can’t perform that action at this time.
0 commit comments