+
    kGj@
                     p    R t ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHt R tR R	 ltR
 R ltR# )z
Interface to conda-index.
)AnyChannelIndex)BaseCondaIndexCache)CONDA_PACKAGE_EXTENSIONS)UnableToConvertToRepodataEntry)pypi_to_repodatac                 H    \        V R ^RRRR\        R,           /RRR7	      pV# )NTFpackage_extensions)threads	write_zstwrite_current_repodatarepodata_v3cache_kwargsupdate_onlysave_fs_state)z.whl)r   r   )pathchannel_indexs   & 0lib/python3.14/site-packages/conda_pypi/index.pycreate_channel_indexr      s:     $*,Dy,PQ
M     c                $    V ^8  d   QhR\         /# )   r   r   )formats   "r   __annotate__r      s     ' ' 'r   c                 J    V P                  R R7       V P                  4        R # )N)patch_generator)indexupdate_channeldata)r   s   &r   update_indexr      s    -$$&r   c                R    V ^8  d   QhR\         R\        \        \        3,          /# )r   cache	pypi_json)r   dictstrr   )r   s   "r   r   r   #   s#     0 02 0tCH~ 0r   c                   \        V4      pVf   \        R4      hVR,           RVR,           R2pV P                  RV P                  V4      RVR,          R	VP	                  R
^ 4      /.4       VP	                  R4      '       g    \        RVP	                  R4      : R24      hVP                  RR4       V P                  VVR,          VP	                  R
^ 4      / VR7       R# )a}  Convert and cache a single pypi package as a conda repodata entry.

Starting in conda-index 0.11.0, conda index can output repodata v3, including
wheel packages.

This function takes the output from the PyPI API and converts it to a conda repodata entry.
For example,

```
def cache_repodata_entry(cache: BaseCondaIndexCache, name: str, version: str) -> dict[str, Any] | None:
    pypi_endpoint = f"https://pypi.org/pypi/{name}/{version}/json"
    pypi_data = requests.get(pypi_endpoint)
    if pypi_data.json() is None:
        raise Exception(f"unable to process {name} {version}")
    store_pypi_metadata(cache, pypi_data.json())
```
NzEUnable to find a pure python wheel and convert it to a repodata entryname-versionz-py3_none_any_0.whlr   sizemtime	timestampsha256zPyPI payload for z is missing a sha256 digestmd5)fnr)   r*   members
index_json)r   r   store_fs_statedatabase_pathget
ValueError
setdefaultstore)r!   r"   repodata_entryr   s   &&  r   store_pypi_metadatar8   #   s   $ &i0N,S
 	
 V$%Q~i'@&AATUD	 ++D1v.++K;	
 h'' 2 26 :==XY
 	
 eT*	KKF#  a0!  r   N)__doc__typingr   conda_index.indexr   conda_index.index.cacher   conda_index.utilsr   conda_pypi.exceptionsr   conda_pypi.pypi_metadatar   r   r   r8    r   r   <module>rA      s-     * 7 6 @ 5'
0r   