diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2016-09-01 22:58:56 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-09-01 22:58:56 -0400 |
commit | 7f8144544f23f4fd84d339d846b91d4e3b703dd4 (patch) | |
tree | ab1a79b0cb4893ff361df1bc239d8e363f641c65 /setuptools/command/upload_docs.py | |
parent | 1bab356fbc59272d9e17f03e52930cd4574ffa0a (diff) | |
download | python-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.py | 5 |
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(): |