관리-도구
편집 파일: upload_docs.cpython-311.pyc
� �܋f� � � � d Z ddlmZ ddlmZ ddlmZ ddlZddlZddl Z ddl Z ddlZddlZddl ZddlZddlmZ ddlmZ d d lmZ d� Z G d� d e� � ZdS )z|upload_docs Implements a Distutils 'upload_docs' subcommand (upload documentation to sites other than PyPi such as devpi). � )�standard_b64encode)�log)�DistutilsOptionErrorN� )�metadata)�SetuptoolsDeprecationWarning� )�uploadc �. � | � dd� � S )Nzutf-8�surrogateescape)�encode)�ss �o/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/setuptools/command/upload_docs.py�_encoder s � ��8�8�G�.�/�/�/� c � � e Zd ZdZdZdddej z fddgZej Zd� Zd efgZ d � Z d� Zd� Zd � Z ed� � � Zed� � � Zd� ZdS )�upload_docszhttps://pypi.python.org/pypi/z;Upload documentation to sites other than PyPi such as devpizrepository=�rzurl of repository [default: %s])z show-responseNz&display full response text from server)zupload-dir=Nzdirectory to uploadc �Z � t | j d u ot j dd�� � � � S )Nzdistutils.commands�build_sphinx)�group�name)�bool� upload_dirr �entry_points��selfs r � has_sphinxzupload_docs.has_sphinx/ s8 � ���O�t�#� W��%�,@�~�V�V�V� � � r r c �J � t j | � � d | _ d | _ d S )N)r �initialize_optionsr � target_dirr s r r zupload_docs.initialize_options7 s% � ��!�$�'�'�'��������r c �� � t j d� � t j | � � | j ��| � � � r5| � d� � }t |j � � d | _ na| � d� � }t j � |j d� � | _ n!| � d� � | j | _ | � d| j z � � d S )NzWUpload_docs command is deprecated. Use Read the Docs (https://readthedocs.org) instead.r �html�build�docsr zUsing upload directory %s)r �warnr �finalize_optionsr r �get_finalized_command�dict�builder_target_dirsr! �os�path�join� build_base�ensure_dirname�announce)r r r$ s r r'