File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 10
10
import logging
11
11
import urllib .parse
12
12
import urllib .request
13
+ import warnings
13
14
from distutils ._log import log
14
15
15
16
from more_itertools import always_iterable
@@ -50,6 +51,7 @@ def finalize_options(self):
50
51
self .distribution .command_options ['check' ] = check_options
51
52
52
53
def run (self ):
54
+ warnings .warn ("register command is deprecated. Do not use." )
53
55
self .finalize_options ()
54
56
self ._set_config ()
55
57
Original file line number Diff line number Diff line change 9
9
import io
10
10
import logging
11
11
import os
12
+ import warnings
12
13
from base64 import standard_b64encode
13
14
from urllib .parse import urlparse
14
15
from urllib .request import HTTPError , Request , urlopen
@@ -63,6 +64,7 @@ def finalize_options(self):
63
64
self .password = self .distribution .password
64
65
65
66
def run (self ):
67
+ warnings .warn ("upload command is deprecated. Do not use." )
66
68
if not self .distribution .dist_files :
67
69
msg = (
68
70
"Must create and upload files in one command "
Original file line number Diff line number Diff line change @@ -44,3 +44,7 @@ filterwarnings=
44
44
# https://sourceforge.net/p/docutils/bugs/490/
45
45
ignore:' encoding' argument not specified::docutils.io
46
46
ignore:UTF-8 Mode affects locale.getpreferredencoding()::docutils.io
47
+
48
+ # suppress known deprecation
49
+ ignore:register command is deprecated
50
+ ignore:upload command is deprecated
You can’t perform that action at this time.
0 commit comments