| Current Path : /snap/certbot/current/lib/python3.12/site-packages/wheel/__pycache__/ |
| Current File : //snap/certbot/current/lib/python3.12/site-packages/wheel/__pycache__/_bdist_wheel.cpython-312.pyc |
�
�j�T � �~ � d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddlZddlm
Z
mZ ddlmZmZ ddlmZ ddlmZ ddlmZ dd lmZmZmZmZ dd
lmZmZ ddlZddl m!Z! ddl m"Z# dd
lm$Z$ ddl%m&Z' ddl(m)Z) ddl*m+Z+ erddl,Z, e-d� ejb d� Z2d$d�Z3d%d�Z4 e5ejL jm d� d � Z7dZ8d&d�Z9d'd�Z:d(d�Z; d) d*d�Z<d+d�Z=d$d�Z>d%d�Z? d,d �Z@d-d!�ZA G d"� d#e$� ZBy# e.$ r ddl%m/Z/ e/j` � Y ��w xY w).zI
Create a wheel (.whl) distribution.
A wheel is a built archive format.
� )�annotationsN)�Iterable�Sequence)�BytesGenerator� Generator)�EmailPolicy)�iglob)�rmtree)�
TYPE_CHECKING�Callable�Literal�cast)�ZIP_DEFLATED�
ZIP_STORED)�tags��version)�Command� )�__version__)�pkginfo_to_metadata)� WheelFilezsetuptools.logging)�_setuptools_logging�wheelc �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-54d6d23c1eba5f776fc280588daee8b3/parts/certbot/install/lib/python3.12/site-packages/wheel/_bdist_wheel.py� safe_namer# 2 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"