Skip to content

Commit a5e663d

Browse files
committed
Deprecated upload_docs command. Ref #2971
1 parent 62745be commit a5e663d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

changelog.d/2971.change.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Deprecated upload_docs command, to be removed in the future.

setuptools/command/upload_docs.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@
1717
import functools
1818
import http.client
1919
import urllib.parse
20+
import warnings
2021

2122
from .._importlib import metadata
23+
from .. import SetuptoolsDeprecationWarning
2224

2325
from .upload import upload
2426

@@ -89,6 +91,12 @@ def create_zipfile(self, filename):
8991
zip_file.close()
9092

9193
def run(self):
94+
warnings.warn(
95+
"upload_docs is deprecated and will be removed in a future "
96+
"version. Use tools like httpie or curl instead.",
97+
SetuptoolsDeprecationWarning,
98+
)
99+
92100
# Run sub commands
93101
for cmd_name in self.get_sub_commands():
94102
self.run_command(cmd_name)

0 commit comments

Comments
 (0)