Skip to main content

A simple version based on git for setuptools.

Project description

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)
    [build-system]
    requires = [
        "setuptools>=81.0.0",
        "gitversion_simple~=1.1",
    ]
    
  2. add in pyproject.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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gitversion_simple-1.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gitversion_simple-1.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file gitversion_simple-1.1.0.tar.gz.

File metadata

  • Download URL: gitversion_simple-1.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gitversion_simple-1.1.0.tar.gz
Algorithm Hash digest
SHA256 b28737e89ca78ccc32adfc982bb0e2813782524412903ad7c20ad19c809cfc52
MD5 b68558b466f33765bee8588f475b6289
BLAKE2b-256 93f33e51498aa30280eadd1a72d54be76ad3ee3c44198807c865bab1a90af179

See more details on using hashes here.

Provenance

The following attestation bundles were made for gitversion_simple-1.1.0.tar.gz:

Publisher: release.yml on zedzhen/gitversion_simple

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gitversion_simple-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gitversion_simple-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74019a3b32dcd73094b2fabc00db9a4ac82618e6ef5f8aac2b8348f0f6371840
MD5 c1414a32363b8e4bf469426f0e4613a4
BLAKE2b-256 695752b26c3213666a4a8bf8eba4602b9dfd44255e5854f4f8cd76411164281d

See more details on using hashes here.

Provenance

The following attestation bundles were made for gitversion_simple-1.1.0-py3-none-any.whl:

Publisher: release.yml on zedzhen/gitversion_simple

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page