diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2022-02-17 19:36:43 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2022-02-17 19:36:43 -0500 |
| commit | a5e663d83bee3ec96890a5f9b5d818c1fdd2d6bc (patch) | |
| tree | 9a86e102b965cc72699aa750094e4b705f1f3aff /setuptools/command/upload_docs.py | |
| parent | 62745be68e088b3752f902e055da57a5be358b68 (diff) | |
| download | python-setuptools-git-a5e663d83bee3ec96890a5f9b5d818c1fdd2d6bc.tar.gz | |
Deprecated upload_docs command. Ref #2971
Diffstat (limited to 'setuptools/command/upload_docs.py')
| -rw-r--r-- | setuptools/command/upload_docs.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/setuptools/command/upload_docs.py b/setuptools/command/upload_docs.py index f429f568..a5480005 100644 --- a/setuptools/command/upload_docs.py +++ b/setuptools/command/upload_docs.py @@ -17,8 +17,10 @@ import itertools import functools import http.client import urllib.parse +import warnings from .._importlib import metadata +from .. import SetuptoolsDeprecationWarning from .upload import upload @@ -89,6 +91,12 @@ class upload_docs(upload): zip_file.close() def run(self): + warnings.warn( + "upload_docs is deprecated and will be removed in a future " + "version. Use tools like httpie or curl instead.", + SetuptoolsDeprecationWarning, + ) + # Run sub commands for cmd_name in self.get_sub_commands(): self.run_command(cmd_name) |
