Skip to main content

Automatically set package version from Git.

Project description

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'],
    ...)

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

setuptools-git-version-1.0a2.zip (4.9 kB view details)

Uploaded Source

File details

Details for the file setuptools-git-version-1.0a2.zip.

File metadata

File hashes

Hashes for setuptools-git-version-1.0a2.zip
Algorithm Hash digest
SHA256 7d3331b935938baf586afd34ca0f5ea684c2431bf63d25669c14aa3f7260a013
MD5 e7c78fb301f20d72569348c2e912c417
BLAKE2b-256 e288ff8b3b833f68e06ead8727832b9712c582be5dacccfe6cf6718c257c8104

See more details on using hashes here.

Supported by

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