File tree 3 files changed +44
-0
lines changed
3 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 2
2
CHANGES
3
3
=======
4
4
5
+ v27.0.0
6
+ -------
7
+
8
+ * Now use Warehouse by default for
9
+ ``upload ``, patching ``distutils.config.PyPIRCCommand `` to
10
+ affect default behavior.
11
+
12
+ Any config in .pypirc should be updated to replace
13
+
14
+ https://pypi.python.org/pypi/
15
+
16
+ with
17
+
18
+ https://upload.pypi.org/legacy/
19
+
20
+ Similarly, any passwords stored in the keyring should be
21
+ updated to use this new value for "system".
22
+
23
+ The ``upload_docs `` command will continue to use the python.org
24
+ site, but the command is now deprecated. Users are urged to use
25
+ Read The Docs instead.
26
+
5
27
v26.1.1
6
28
-------
7
29
Original file line number Diff line number Diff line change @@ -183,3 +183,20 @@ def findall(dir=os.curdir):
183
183
if has_issue_12885 :
184
184
# fix findall bug in distutils (http://bugs.python.org/issue12885)
185
185
distutils .filelist .findall = findall
186
+
187
+
188
+ needs_warehouse = (
189
+ sys .version_info < (2 , 7 , 13 )
190
+ or
191
+ (3 , 0 ) < sys .version_info < (3 , 3 , 7 )
192
+ or
193
+ (3 , 4 ) < sys .version_info < (3 , 4 , 6 )
194
+ or
195
+ (3 , 5 ) < sys .version_info <= (3 , 5 , 3 )
196
+ or
197
+ (3 , 6 ) < sys .version_info
198
+ )
199
+
200
+ if needs_warehouse :
201
+ warehouse = 'https://upload.pypi.org/legacy/'
202
+ distutils .config .PyPIRCCommand .DEFAULT_REPOSITORY = warehouse
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ def _encode(s):
29
29
30
30
31
31
class upload_docs (upload ):
32
+ # override the default repository as upload_docs isn't
33
+ # supported by Warehouse (and won't be).
34
+ DEFAULT_REPOSITORY = 'https://pypi.python.org/pypi/'
35
+
32
36
description = 'Upload documentation to PyPI'
33
37
34
38
user_options = [
@@ -53,6 +57,7 @@ def initialize_options(self):
53
57
self .target_dir = None
54
58
55
59
def finalize_options (self ):
60
+ log .warn ("Upload_docs command is deprecated. Use RTD instead." )
56
61
upload .finalize_options (self )
57
62
if self .upload_dir is None :
58
63
if self .has_sphinx ():
You can’t perform that action at this time.
0 commit comments