o
    yAf                     @  st   d dl mZ d dlZd dlZd dlmZ d dlmZ d dlT ddd	Z		ddddZ
	ddddZ	ddddZdS )    )annotationsN)literal_eval)Any)*return	list[str]c                  C  s   d} t tjt ddd}ddd |D }W d    n1 s$w   Y  tj| |tjtjB d}|d u r?d	}t	|t
|d
S )Nz^dependencies = (\[.*?\])$zpyproject.tomlzutf-8)encoding
c                 s  s    | ]}|  V  qd S N)rstrip).0line r   8/usr/lib/python3.10/site-packages/hatchling/ouroboros.py	<genexpr>   s    z$read_dependencies.<locals>.<genexpr>)flagszNo dependencies found   )openospathjoingetcwdresearch	MULTILINEDOTALL
ValueErrorr   group)patternfcontentsmatchmessager   r   r   read_dependencies   s   r#   config_settingsdict[str, Any] | Nonec                 C     t  S )zH
    https://peps.python.org/pep-0517/#get-requires-for-build-sdist
    r#   r$   r   r   r   get_requires_for_build_sdist      r)   c                 C  r&   )zH
    https://peps.python.org/pep-0517/#get-requires-for-build-wheel
    r'   r(   r   r   r   get_requires_for_build_wheel#   r*   r+   c                 C  r&   )zK
    https://peps.python.org/pep-0660/#get-requires-for-build-editable
    r'   r(   r   r   r   get_requires_for_build_editable,   r*   r,   )r   r   r
   )r$   r%   r   r   )
__future__r   r   r   astr   typingr   Zhatchling.buildr#   r)   r+   r,   r   r   r   r   <module>   s    


