Skip to main content

setuptools-git-version

Automatically set package version from Git.

Introduction

Instead of hardcoding the package version in setup.py like:

setup(
    name='foobar',
    version='1.0',
    ...)

this package allows to extract it from the underlying Git repository:

setup(
    name='foobar',
    version_format='{tag}.dev{commitcount}+{gitsha}',
    setup_requires=['setuptools-git-version'],
    ...)

Changes

1.0.2 - 2015-04-14

  • [bugfix] make it work with Python 3(.4)

1.0.1 - 2015-04-14

  • brownbag release

1.0 2015-04-10

  • initial public release

Metadata

Release files for setuptools-git-version 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for setuptools-git-version 1.0.2
File Size Uploaded Provenance Actions
setuptools-git-version-1.0.2.zip 4.8 kB Without provenance Details for setuptools-git-version-1.0.2.zip

Release files / setuptools-git-version-1.0.2.zip

Download URL setuptools-git-version-1.0.2.zip
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b7e652142536dddd8941f35849f235f28989f4a9c85f028973743c0895bd941b
BLAKE2b-256 checksum
How to use checksums
2543d0da19fc3c15386cd70fd856b32ab1875cdd7d25757523107baca7feb4a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for setuptools-git-version 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page