File: //snap/certbot/5057/lib/python3.12/site-packages/wheel/__pycache__/_bdist_wheel.cpython-312.pyc
�
�F�h�T � �V � d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddlmZm
Z
ddlmZ ddlmZ ddlmZ ddlmZmZmZmZmZmZ dd lmZmZ ddlZdd
lmZ ddlm Z! dd
l"m#Z# ddl$m%Z% ddl&m'Z' ddl&m(Z) ddl*m+Z+ erddl,Z, e-d� d#d�Z1d$d�Z2 e3ej@ ji d� d � Z5dZ6d%d�Z7d&d�Z8d'd�Z9 d( d)d�Z:d*d�Z;d#d�Z<d$d�Z= d+d�Z>d,d �Z? G d!� d"e� Z@y# e.$ r ddlm/Z/ e/j` � Y ��w xY w)-zI
Create a wheel (.whl) distribution.
A wheel is a built archive format.
� )�annotationsN)�BytesGenerator� Generator)�EmailPolicy)�iglob)�rmtree)�
TYPE_CHECKING�Callable�Iterable�Literal�Sequence�cast)�ZIP_DEFLATED�
ZIP_STORED)�Command� )�__version__)�pkginfo_to_metadata)�log)�tags��version)� WheelFilezsetuptools.logging)�_setuptools_loggingc �0 � t j dd| � S )z�Convert an arbitrary string to a standard distribution name
Any runs of non-alphanumeric/. characters are replaced with a single '-'.
�[^A-Za-z0-9.]+�-)�re�sub��names ��/build/snapcraft-certbot-c9aaebe726f8beb59a0eb2d8e1671bc4/parts/certbot/install/lib/python3.12/site-packages/wheel/_bdist_wheel.py� safe_namer# / s � � �6�6�"�C��.�.� c �� � t t j | � � S # t j $ r, | j dd� } t j dd| � cY S w xY w)zB
Convert an arbitrary string to a standard version string
� �.r r )�str�_packaging_version�Version�InvalidVersion�replacer r r s r"