o
    >h                     @   s   d dl Z d dlZd dlmZmZmZmZmZ d dlm	Z	 d dl
mZ d dlmZmZ G dd deZG dd	 d	e	Zed
eee	  fddZdS )    N)AnyDictListType	TypedDict)VersionSourceInterface)hookimpl)_load_pyproject_toml_existing_versionc                   @   s   e Zd ZU eed< dS )_VersionDataversionN)__name__
__module____qualname__str__annotations__ r   r   r/var/www/vedio/testing/chatpythonscript.ninositsolution.com/env/lib/python3.10/site-packages/incremental/_hatch.pyr      s   
 r   c                   @   s<   e Zd ZdZdefddZdedeeef ddfdd	Z	dS )
IncrementalVersionSourceincrementalreturnc                 C   s*   t j| jd}t|}dt|j iS )Nz./pyproject.tomlr   )ospathjoinrootr	   r
   version_pathpublic)selfr   configr   r   r   get_version_data   s   z)IncrementalVersionSource.get_version_datar   version_dataNc                 C   s   t dt| d)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    r   r   r   set_version   s
   z$IncrementalVersionSource.set_version)
r   r   r   PLUGIN_NAMEr   r   r   r   r   r$   r   r   r   r   r      s    "r   r   c                   C   s   t gS )N)r   r   r   r   r   hatch_register_version_source"   s   r&   )r   r"   typingr   r   r   r   r   )hatchling.version.source.plugin.interfacer   hatchling.pluginr   r   r	   r
   r   r   r&   r   r   r   r   <module>   s   