diff --git a/CHANGES.rst b/CHANGES.rst
index b2d1ed9a90..35ee477658 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -1,3 +1,14 @@
+v36.1.0
+-------
+
+* Removed deprecation of and restored support for
+ ``upload_docs`` command for sites other than PyPI.
+ Only warehouse is dropping support, but services like
+ `devpi `_ continue to
+ support docs built by setuptools' plugins. See
+ `this comment `_
+ for more context on the motivation for this change.
+
v36.0.1
-------
diff --git a/setuptools/command/upload_docs.py b/setuptools/command/upload_docs.py
index 24a017cfec..07aa564af4 100644
--- a/setuptools/command/upload_docs.py
+++ b/setuptools/command/upload_docs.py
@@ -57,7 +57,6 @@ def initialize_options(self):
self.target_dir = None
def finalize_options(self):
- log.warn("Upload_docs command is deprecated. Use RTD instead.")
upload.finalize_options(self)
if self.upload_dir is None:
if self.has_sphinx():
@@ -69,6 +68,8 @@ 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. Use RTD instead.")
self.announce('Using upload directory %s' % self.target_dir)
def create_zipfile(self, filename):