Skip to content

Commit 9b99694

Browse files
authored
Merge pull request #3469 from pypa/debt/deprecate-upload-docs
Deprecate upload_docs command
2 parents a2c4c57 + de61ea9 commit 9b99694

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

changelog.d/2971.change.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
``upload_docs`` command is deprecated once again.

setuptools/command/upload_docs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ def initialize_options(self):
5959
self.target_dir = None
6060

6161
def finalize_options(self):
62+
log.warn(
63+
"Upload_docs command is deprecated. Use Read the Docs "
64+
"(https://readthedocs.org) instead.")
6265
upload.finalize_options(self)
6366
if self.upload_dir is None:
6467
if self.has_sphinx():
@@ -70,8 +73,6 @@ def finalize_options(self):
7073
else:
7174
self.ensure_dirname('upload_dir')
7275
self.target_dir = self.upload_dir
73-
if 'pypi.python.org' in self.repository:
74-
log.warn("Upload_docs command is deprecated for PyPi. Use RTD instead.")
7576
self.announce('Using upload directory %s' % self.target_dir)
7677

7778
def create_zipfile(self, filename):

0 commit comments

Comments
 (0)