
    h                         S SK r S SKrS SKJrJrJrJrJr  S SKJ	r	  S SK
Jr  S SKJrJr   " S S\5      r " S S	\	5      r\S
\\\	      4S j5       rg)    N)AnyDictListType	TypedDict)VersionSourceInterface)hookimpl)_load_pyproject_toml_existing_versionc                        \ rS rSr% \\S'   Srg)_VersionData   version N)__name__
__module____qualname____firstlineno__str__annotations____static_attributes__r       Y/root/1688_scrapy/alibaba-scraper/venv/lib/python3.13/site-packages/incremental/_hatch.pyr   r      s    Lr   r   c                   F    \ rS rSrSrS\4S jrS\S\\	\	4   SS4S jr
S	rg)
IncrementalVersionSource   incrementalreturnc                     [         R                  R                  U R                  S5      n[	        U5      nS[        UR                  5      R                  5       0$ )Nz./pyproject.tomlr   )ospathjoinrootr
   r   version_pathpublic)selfr!   configs      r   get_version_data)IncrementalVersionSource.get_version_data   sE    ww||DII'9:%d+,V-@-@AHHJKKr   r   version_dataNc                 H    [        S[        R                  " U5       S35      e)Nz0Run `python -m incremental.version --newversion zT` to set the version.

 See `python -m incremental.version --help` for more options.)NotImplementedErrorshlexquote)r&   r   r*   s      r   set_version$IncrementalVersionSource.set_version   s/    !G$% &LM
 	
r   r   )r   r   r   r   PLUGIN_NAMEr   r(   r   r   r   r/   r   r   r   r   r   r      s7    KL, L

3 
d38n 
 
r   r   r   c                      [         /$ )N)r   r   r   r   hatch_register_version_sourcer3   "   s    $%%r   )r    r-   typingr   r   r   r   r   )hatchling.version.source.plugin.interfacer   hatchling.pluginr	   r   r
   r   r   r   r3   r   r   r   <module>r7      s[    
  3 3 L % ?9 
5 
  
&tD1G,H'I & 
&r   