def METHOD_NAME(self):
    SetuptoolsDeprecationWarning.emit(
        "Deprecated command",
        """
        upload_docs is deprecated and will be removed in a future version.
        Instead, use tools like devpi and Read the Docs; or lower level tools like
        httpie and curl to interact directly with your hosting service API.
        """,
        due_date=(2023, 9, 26),  # warning introduced in 27 Jul 2022
    )
    # Run sub commands
    for cmd_name in self.get_sub_commands():
        self.run_command(cmd_name)
    tmp_dir = tempfile.mkdtemp()
    name = self.distribution.metadata.get_name()
    zip_file = os.path.join(tmp_dir, "%s.zip" % name)
    try:
        self.create_zipfile(zip_file)
        self.upload_file(zip_file)
    finally:
        shutil.rmtree(tmp_dir)