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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file setuptools-git-version-1.0a1.zip
.
File metadata
- Download URL: setuptools-git-version-1.0a1.zip
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2456e9ffbce273e35cbc9ac3425c6d0aff28045abf48ad6d5599ae868e6d3f83 |
|
MD5 | a65c8fc1c69cd88bf214364f4a3d589e |
|
BLAKE2b-256 | a83c56f7c311785aafc4265271731ccd53c7b2fe6d7f0a9e83e5a6737534802f |