OwlCyberSecurity - MANAGER
Edit File: wheel.cpython-312.pyc
� "��g� � �t � d Z ddlZddlmZmZmZ ddlmZ ddlm Z ddlmZ ddlm Z ddl mZ G d� d � Zy) z`Represents a wheel file and provides access to the various parts of the name that have meaning. � N)�Dict�Iterable�List)�Tag)�InvalidWheelFilename)�parse_wheel_filename)� deprecatedc � � e Zd ZdZ ej dej � Zdeddfd�Z de e fd�Zde e de fd �Zde e d eee f de fd�Zdee defd�Zy) �WheelzA wheel filez�^(?P<namever>(?P<name>[^\s-]+?)-(?P<ver>[^\s-]*?)) ((-(?P<build>\d[^-]*?))?-(?P<pyver>[^\s-]+?)-(?P<abi>[^\s-]+?)-(?P<plat>[^\s-]+?) \.whl|\.dist-info)$�filename�returnNc �T � | j j |� }|st |� d�� �|| _ |j d� j dd� | _ |j d� }d|v r t |� |j dd� }|| _ |j d� | _ |j d� j d� | _ |j d� j d� | _ |j d� j d� | _ | j D ���ch c]1 }| j D ] }| j D ] }t# |||� �� �" �3 c}}}| _ y# t $ r.}t d|�d|j d � d �d dd� � Y d}~��!d}~ww xY wc c}}}w )zX :raises InvalidWheelFilename: when the filename is invalid for a wheel z is not a valid wheel filename.�name�_�-�verzWheel filename zU is not correctly normalised. Future versions of pip will raise the following error: r z zvto rename the wheel to use a correctly normalised name (this may require updating the version in the project metadata)z25.1i�2 )�reason�replacement�gone_in�issueN�build�pyver�.�abi�plat)� wheel_file_re�matchr r �group�replacer r �PackagingInvalidWheelNamer �args�version� build_tag�split� pyversions�abis�platsr � file_tags)�selfr � wheel_info�_version�e�x�y�zs �I/opt/hc_python/lib/python3.12/site-packages/pip/_internal/models/wheel.py�__init__zWheel.__init__ s� � � �'�'�-�-�h�7� ��&�(��3R�'S�T�T� �� ��$�$�V�,�4�4�S�#�>�� ��#�#�E�*���(�?� �$�X�.�"