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.0a1.zip (4.4 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for setuptools-git-version-1.0a1.zip
Algorithm Hash digest
SHA256 2456e9ffbce273e35cbc9ac3425c6d0aff28045abf48ad6d5599ae868e6d3f83
MD5 a65c8fc1c69cd88bf214364f4a3d589e
BLAKE2b-256 a83c56f7c311785aafc4265271731ccd53c7b2fe6d7f0a9e83e5a6737534802f

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