Skip to main content

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.3 - 2015-04-23

  • [bugfix] rename module to avoid import conflicts

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

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.0.3.zip (5.1 kB view details)

Uploaded Source

File details

Details for the file setuptools-git-version-1.0.3.zip.

File metadata

File hashes

Hashes for setuptools-git-version-1.0.3.zip
Algorithm Hash digest
SHA256 82cf7ab80272e20b7cae81d907e0adf295ef7a1f735418c046ae7f40f5861e15
MD5 802555a15f289a6016cfe10c02a004b7
BLAKE2b-256 ce5ee6e17f09b16036fe60257266311133b15a5814d23c0dc8a5147e9e3a2da1

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.3 This release

1 file

1.0.2

1 file

1.0

1 file

Supported by

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