관리-도구
편집 파일: wheelfile.cpython-38.pyc
U -?�f� � @ s d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dl m Z mZ d dlm Z mZmZ d dlmZmZmZ d dlmZ d dlmZmZmZ er�d dlmZmZmZ d d lmZ eeej e f Z!G d d� deee�Z"e�#dej$�Z%d Z&ddd�dd�Z'G dd� de�Z(dS )� )�annotationsN)�StringIO� TextIOWrapper)�IO� TYPE_CHECKING�Literal)�ZIP_DEFLATED�ZipFile�ZipInfo)� WheelError)�log�urlsafe_b64decode�urlsafe_b64encode)�Protocol�Sized�Union)�Bufferc @ s e Zd ZdS )�SizedBufferN)�__name__� __module__�__qualname__� r r �=/opt/hc_python/lib/python3.8/site-packages/wheel/wheelfile.pyr s r z�^(?P<namever>(?P<name>[^\s-]+?)-(?P<ver>[^\s-]+?))(-(?P<build>\d[^\s-]*))? -(?P<pyver>[^\s-]+?)-(?P<abi>[^\s-]+?)-(?P<plat>\S+)\.whl$i ��zfloat | None�� timestampc C s6 t tj�d| pt�� ��} t| t�} t�| �dd� S )N�SOURCE_DATE_EPOCHr � )�int�os�environ�get�time�max�MINIMUM_TIMESTAMP�gmtimer r r r �get_zipinfo_datetime$ s r% c @ s� e Zd ZdZejZdefdddd�dd�Zd!d ddd d�dd�Z dd�dd�Z d"ddddd�dd�Zd#d ddd�dd�Zdd � Z d S )$� WheelFilez�A ZipFile derivative class that also reads SHA-256 hashes from .dist-info/RECORD and checks any read files against those. �r�StrPathzLiteral[('r', 'w', 'x', 'a')]r )�file�mode�compressionc C s� t j�|�}t�|�| _|�d�r,| jd kr:td|����tj | |||dd� d� | j�d��| _| jd | _ i | _i | _|dk�r�d | j| j <