관리-도구
편집 파일: metadata.cpython-36.pyc
3 �Re2� � @ s� d Z ddlmZ ddlZddlmZ ddlZddlZddlZddl m Z mZ ddlm Z mZmZ ddlmZ dd lmZmZ dd lmZmZ eje�ZG dd� de �ZG d d� de �ZG dd� de �ZG dd� de �ZdddgZdZ dZ!ej"d�Z#ej"d�Z$dKZ%dLZ&dMZ'dNZ(dOZ)dPZ*dQZ+e*dR Z,dSZ-e.� Z/e/j0e%� e/j0e&� e/j0e(� e/j0e*� e/j0e,� ej"d9�Z1d:d;� Z2d<d=� Z3d>d?� e/D �Z4d@d?� e4j5� D �Z6dTZ7dUZ8dVZ9dWZ:dXZ;dYZ<dZZ=e>� Z?ej"dA�Z@d[dCdD�ZAG dEdF� dFe>�ZBdGZCdHZDdIZEG dJd� de>�ZFdS )\z�Implementation of the Metadata for Python packages PEPs. Supports all metadata formats (1.0, 1.1, 1.2, 1.3/2.1 and withdrawn 2.0). � )�unicode_literalsN)�message_from_file� )�DistlibException�__version__)�StringIO�string_types� text_type)� interpret)�extract_by_key� get_extras)� get_scheme�PEP440_VERSION_REc @ s e Zd ZdZdS )�MetadataMissingErrorzA required metadata is missingN)�__name__� __module__�__qualname__�__doc__� r r ��/builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/distlib/metadata.pyr s r c @ s e Zd ZdZdS )�MetadataConflictErrorz>Attempt to read or write metadata fields that are conflictual.N)r r r r r r r r r s r c @ s e Zd ZdZdS )� MetadataUnrecognizedVersionErrorz Unknown metadata version number.N)r r r r r r r r r $ s r c @ s e Zd ZdZdS )�MetadataInvalidErrorzA metadata value is invalidN)r r r r r r r r r ( s r �Metadata�PKG_INFO_ENCODING�PKG_INFO_PREFERRED_VERSIONzutf-8z1.1z \|z �Metadata-Version�Name�Version�Platform�Summary�Description�Keywords� Home-page�Author�Author-email�License�Supported-Platform� Classifier�Download-URL� Obsoletes�Provides�Requires� Maintainer�Maintainer-email�Obsoletes-Dist�Project-URL� Provides-Dist� Requires-Dist�Requires-Python�Requires-External�Private-Version�Obsoleted-By�Setup-Requires-Dist� Extension�Provides-Extra�Description-Content-Typez"extra\s*==\s*("([^"]+)"|'([^']+)')c C sL | dkrt S | dkrtS | dkr$tS | dkr4tt S | dkr@tS t| ��d S )Nz1.0z1.1z1.2�1.3�2.1z2.0)r; r<