Metadata-Version: 2.4
Name: gitversion_simple
Version: 1.0.0
Summary: A simple version based on git for setuptools.
Author-email: Ярыкин Евгений <pypi@zedzhen.ru>
License: The zlib/libpng License
        
        Copyright (c) 2026 Ярыкин Евгений
        
        This software is provided 'as-is', without any express or implied
        warranty. In no event will the authors be held liable for any damages
        arising from the use of this software.
        
        Permission is granted to anyone to use this software for any purpose,
        including commercial applications, and to alter it and redistribute it
        freely, subject to the following restrictions:
        
        1. The origin of this software must not be misrepresented; you must not
           claim that you wrote the original software. If you use this software
           in a product, an acknowledgement in the product documentation would be
           appreciated but is not required.
        2. Altered source versions must be plainly marked as such, and must not be
           misrepresented as being the original software.
        3. This notice may not be removed or altered from any source distribution.
        
Project-URL: source, https://github.com/zedzhen/gitversion_simple
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: versioningit~=3.2
Requires-Dist: typing-extensions~=4.14
Requires-Dist: packaging~=26.1
Provides-Extra: dev
Requires-Dist: black~=26.5; extra == "dev"
Requires-Dist: isort~=8.0; extra == "dev"
Requires-Dist: build==1.5.*; extra == "dev"
Requires-Dist: pre-commit~=4.6; extra == "dev"
Dynamic: license-file

A simple version based on git for setuptools.

If there have been no commits or uncommitted changes since the most recent tag,
the version from the tag is used as the project version.

If the latest tag is final release, then the last part is incremented by 1 and alpha 0 is added.

If the latest tag is pre-release, the pre-release number is incremented by 1.

used:
1. add "gitversion_simple" in build-system.requires (in pyproject.toml)
    ```toml
        [build-system]
    requires = [
        "setuptools>=81.0.0",
        "gitversion_simple~=1.0",
    ]
    ```
2. add in pyproject.toml
    ```toml
   [tool.versioningit.next-version]
    method = "simple"
    
    [tool.versioningit.format]
    method = "simple"
    ```

examples:

| last tag | version |
|----------|---------|
| v1.0.0   | 1.0.1   | 
| v1.0.0a1 | 1.0.0a2 |
| v1.0.0b2 | 1.0.0b3 |
| v1.0     | 1.1     |
| v1.2.3.4 | 1.2.3.5 |
| v26.1    | 26.2    |
