관리-도구
편집 파일: egg_info.cpython-38.pyc
U �Qab�c � @ s� d Z ddlmZ ddlmZ ddlmZ ddlm Z ddlZddlZddl Z ddlZddlZddl Z ddlZddlZddlZddlmZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZ ddlmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z& ddl'm(Z( ddl)m*Z* ddlm+Z+ ddlm,Z, dd� Z-G dd� d�Z.G dd� de.e�Z/G dd� de�ZG dd� de�Z0dd� Z1dd� Z2d d!� Z3d"d#� Z4d$d%� Z5d&d'� Z6d(d)� Z7d*d+� Z8d5d-d.�Z9d/d0� Z:d1d2� Z;G d3d4� d4e,�Z<dS )6zUsetuptools.command.egg_info Create a distribution's .egg-info directory and contents� )�FileList)�DistutilsInternalError)�convert_path)�logN)�six)�map)�Command)�sdist)�walk_revctrl)�edit_config)� bdist_egg)�parse_requirements� safe_name� parse_version�safe_version�yield_lines� EntryPoint�iter_entry_points�to_filename)�glob)� packaging)�SetuptoolsDeprecationWarningc C s� d}| � tjj�}t�tj�}d|f }t|�D �]�\}}|t|�d k}|dkrr|r`|d7 }q0|d||f 7 }q0d}t|�} || k �r�|| } | dkr�||d 7 }�n | d kr�||7 }n�| d k�r�|d }|| k r�|| dkr�|d }|| k �r|| dk�r|d }|| k �r,|| dk�r,|d }�q|| k�rF|t�| �7 }nR||d |� }d} |d dk�rxd } |dd� }| t�|�7 } |d| f 7 }|}n|t�| �7 }|d7 }q~|s0||7 }q0|d7 }tj|tj tj B d�S )z� Translate a file path glob like '*.txt' in to a regular expression. This differs from fnmatch.translate which allows wildcards to match directory separators. It also knows about '**/' which matches any number of directories. � z[^%s]� �**z.*z (?:%s+%s)*r �*�?�[�!�]�^Nz[%s]z\Z)�flags)�split�os�path�sep�re�escape� enumerate�len�compile� MULTILINE�DOTALL)r ZpatZchunksr% Z valid_char�c�chunkZ last_chunk�iZ chunk_len�charZinner_i�innerZ char_class� r2 �?/usr/lib/python3.8/site-packages/setuptools/command/egg_info.py�translate_pattern$ sV r4 c @ s8 e Zd ZdZdZedd� �Zdd� Zdd� Zee�Z dS )� InfoCommonNc C s t | j�� �S �N)r �distributionZget_name��selfr2 r2 r3 �name{ s zInfoCommon.namec C s2 | j �� }| jr$|�| j�r$t|�S t|| j �S r6 )r7 Zget_version�vtags�endswithr �r9 �versionr2 r2 r3 �tagged_version s zInfoCommon.tagged_versionc C s, d}| j r|| j 7 }| jr(|t�d�7 }|S )Nr z-%Y%m%d)� tag_build�tag_date�time�strftimer= r2 r2 r3 �tags� s zInfoCommon.tags) �__name__� __module__�__qualname__r@ rA �propertyr: r? rD r; r2 r2 r2 r3 r5 w s r5 c @ s� e Zd ZdZddddgZdgZddiZdd � Zed d� �Z e j dd� �Z d d� Zdd� Zddd�Z dd� Zdd� Zdd� Zdd� Zdd� ZdS ) �egg_infoz+create a distribution's .egg-info directory)z egg-base=�ezLdirectory containing .egg-info directories (default: top of the source tree))�tag-date�dz0Add date stamp (e.g. 20050528) to version number)z tag-build=�bz-Specify explicit tag to add to version number)�no-date�Dz"Don't include date stamp [default]rK rN c C s"