summaryrefslogtreecommitdiff
path: root/setuptools/command/upload_docs.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-09-01 22:58:56 -0400
committerJason R. Coombs <jaraco@jaraco.com>2016-09-01 22:58:56 -0400
commit7f8144544f23f4fd84d339d846b91d4e3b703dd4 (patch)
treeab1a79b0cb4893ff361df1bc239d8e363f641c65 /setuptools/command/upload_docs.py
parent1bab356fbc59272d9e17f03e52930cd4574ffa0a (diff)
downloadpython-setuptools-git-7f8144544f23f4fd84d339d846b91d4e3b703dd4.tar.gz
Provide forward compatibility for Warehouse as the default repository for the upload command.
Diffstat (limited to 'setuptools/command/upload_docs.py')
-rw-r--r--setuptools/command/upload_docs.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/setuptools/command/upload_docs.py b/setuptools/command/upload_docs.py
index ccc1c76f..269dc2d5 100644
--- a/setuptools/command/upload_docs.py
+++ b/setuptools/command/upload_docs.py
@@ -29,6 +29,10 @@ def _encode(s):
class upload_docs(upload):
+ # override the default repository as upload_docs isn't
+ # supported by Warehouse (and won't be).
+ DEFAULT_REPOSITORY = 'https://pypi.python.org/pypi/'
+
description = 'Upload documentation to PyPI'
user_options = [
@@ -53,6 +57,7 @@ class upload_docs(upload):
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():