+
    Ë,jQ
  ã                   ón   € ^ RI Ht ^ RIHtHt ^ RIHt ^ RIHt	 ^ RI
Ht  ! R R4      t ! R R	4      tR
# )é    ©ÚPath)ÚListÚOptional)ÚPyExplicitEnvironmentSpec)ÚPyExplicitEnvironmentEntry)ÚPlatformc                   óR   a € ] tR t^	t o RtV 3R lR lt]V 3R lR l4       tRtV t	R# )ÚExplicitEnvironmentEntryzRA wrapper around an explicit environment entry which represents a URL to a packagec                ó$   <€ V ^8„  d   QhRS[ RR/# ©é   ÚinnerÚreturnN)Ú_PyExplicitEnvironmentEntry)ÚformatÚ__classdict__s   "€ÚHlib/python3.14/site-packages/rattler/explicit_environment/environment.pyÚ__annotate__Ú%ExplicitEnvironmentEntry.__annotate__   s   ø€ ÷ ñ Ñ9ð ¸dñ ó    c                ó   € Wn         R # ©N©Ú_inner©Úselfr   s   &&r   Ú__init__Ú!ExplicitEnvironmentEntry.__init__   ó   € ØŽr   c                ó    <€ V ^8„  d   QhRS[ /# ©r   r   ©Ústr)r   r   s   "€r   r   r      s   ø€ ÷ !ñ !‘Sñ !r   c                ó6   € V P                   P                  4       # )zReturns the URL of the package)r   Úurl)r   s   &r   r&   ÚExplicitEnvironmentEntry.url   s   € ð {‰{‰Ó Ð r   r   N)
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   Úpropertyr&   Ú__static_attributes__Ú__classdictcell__©r   s   @r   r   r   	   s&   ø‡ € Ù\÷ð ð ÷!ó ö!r   r   c                   ó¦   a € ] tR t^t o RtV 3R lR lt]V 3R lR l4       t]V 3R lR l4       t]	V 3R lR	 l4       t
]	V 3R
 lR l4       tRtV tR# )ÚExplicitEnvironmentSpecz^The explicit environment (e.g. env.txt) file that contains a list of all URLs in a environmentc                ó$   <€ V ^8„  d   QhRS[ RR/# r   )Ú_PyExplicitEnvironmentSpec)r   r   s   "€r   r   Ú$ExplicitEnvironmentSpec.__annotate__   s   ø€ ÷ ñ Ñ8ð ¸Tñ r   c                ó   € Wn         R # r   r   r   s   &&r   r   Ú ExplicitEnvironmentSpec.__init__   r    r   c                ó$   <€ V ^8„  d   QhRS[ RR/# )r   Úpathr   r2   r   )r   r   s   "€r   r   r5      s   ø€ ÷ ?ñ ?™Tð ?Ð&?ñ ?r   c                ó:   € V ! \         P                  ! V4      4      # )am  Parses the object from a file specified by a `path`, using a format appropriate for the file type.

For example, if the file is in text format, this function reads the data from the file at
the specified path, parses the text and returns the resulting object. If the file is
not in a parsable format or if the file could not be read, this function raises an error.
)r4   Ú	from_path)Úclsr9   s   &&r   r;   Ú!ExplicitEnvironmentSpec.from_path   s   € ñ Ô-×7Ò7¸Ó=Ó>Ð>r   c                ó$   <€ V ^8„  d   QhRS[ RR/# )r   Úcontentr   r2   r#   )r   r   s   "€r   r   r5   &   s    ø€ ÷ Añ A™sð AÐ'@ñ Ar   c                ó:   € V ! \         P                  ! V4      4      # )a˜  
Parses the object from a string containing the explicit environment specification

Examples:

```python
>>> spec = ExplicitEnvironmentSpec.from_str('''@EXPLICIT
... # platform: linux-64
... http://repo.anaconda.com/pkgs/main/linux-64/python-3.9.0-h3.tar.bz2
... ''')
>>> spec.platform
Platform(linux-64)
>>> spec.packages[0].url
'http://repo.anaconda.com/pkgs/main/linux-64/python-3.9.0-h3.tar.bz2'
>>>
```
)r4   Úfrom_str)r<   r?   s   &&r   rA   Ú ExplicitEnvironmentSpec.from_str%   s   € ñ& Ô-×6Ò6°wÓ?Ó@Ð@r   c                ó0   <€ V ^8„  d   QhRS[ S[,          /# r"   )r   r	   )r   r   s   "€r   r   r5   ;   s   ø€ ÷ ñ ™(¡8Õ,ñ r   c                ón   € V P                   P                  4       pVe   \        P                  ! V4      # R# )zHReturns the platform specified in the explicit environment specificationN)r   Úplatformr	   Ú_from_py_platform)r   rE   s   & r   rE   Ú ExplicitEnvironmentSpec.platform:   s0   € ð —;‘;×'Ñ'Ó)ˆØÒÜ×-Ò-¨hÓ7Ð7Ùr   c                ó0   <€ V ^8„  d   QhRS[ S[,          /# r"   )r   r   )r   r   s   "€r   r   r5   C   s   ø€ ÷ Mñ M™$Ñ7Õ8ñ Mr   c                ór   € V P                   P                  4        Uu. uF  p\        V4      NK  	  up# u upi )zZReturns the environment entries (URLs) specified in the explicit environment specification)r   Úpackagesr   )r   Úps   & r   rJ   Ú ExplicitEnvironmentSpec.packagesB   s1   € ð 6:·[±[×5IÑ5IÔ5KÓLÑ5K°Ô(¨Ö+Ñ5KÑLÐLùÒLs   4r   N)r(   r)   r*   r+   r,   r   Úclassmethodr;   rA   r-   rE   rJ   r.   r/   r0   s   @r   r2   r2      sf   ø‡ € Ùh÷ð ð ÷?ó ð?ð ÷Aó ðAð( ÷ó ðð ÷Mó öMr   r2   N)Úpathlibr   Útypingr   r   Úrattler.rattlerr   r4   r   r   Úrattler.platformr	   r   r2   © r   r   Ú<module>rS      s*   ðÝ ß !å SÝ UÝ %÷	!ñ 	!÷0Mó 0Mr   