Skip to content

Commit

Permalink
Merge pull request #3469 from pypa/debt/deprecate-upload-docs
Browse files Browse the repository at this point in the history
Deprecate upload_docs command
  • Loading branch information
jaraco authored Aug 3, 2022
2 parents a2c4c57 + de61ea9 commit 9b99694
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/2971.change.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
``upload_docs`` command is deprecated once again.
5 changes: 3 additions & 2 deletions setuptools/command/upload_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def initialize_options(self):
self.target_dir = None

def finalize_options(self):
log.warn(
"Upload_docs command is deprecated. Use Read the Docs "
"(https://readthedocs.org) instead.")
upload.finalize_options(self)
if self.upload_dir is None:
if self.has_sphinx():
Expand All @@ -70,8 +73,6 @@ def finalize_options(self):
else:
self.ensure_dirname('upload_dir')
self.target_dir = self.upload_dir
if 'pypi.python.org' in self.repository:
log.warn("Upload_docs command is deprecated for PyPi. Use RTD instead.")
self.announce('Using upload directory %s' % self.target_dir)

def create_zipfile(self, filename):
Expand Down

0 comments on commit 9b99694

Please sign in to comment.