setuptools_scm plugin for git archives
Project description
This plugin is obsolete. ``setuptools_scm >= 7.0.0`` supports Git archives by itself.
This is a setuptools_scm plugin that adds support for git archives (for example the ones GitHub automatically generates).
Note that it only works for archives of tagged commits (because git currently lacks a format option equivalent to git describe --tags).
Usage
Add 'setuptools_scm_git_archive' to the setup_requires parameter in your project’s setup.py file:
setup(
...,
use_scm_version=True,
setup_requires=['setuptools_scm', 'setuptools_scm_git_archive'],
...,
)
Create a .git_archival.txt file with the following content:
ref-names: $Format:%D$
Then add this line to the .gitattributes file:
.git_archival.txt export-subst
Finally, don’t forget to commit these two files.
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
Built Distribution
Hashes for setuptools_scm_git_archive-1.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d964ebba5f91488e4a2a00da6b8106858325c6684d0099c482558a2d9705915 |
|
MD5 | 08c8e71e15803b8bd4ea3bcde33df17b |
|
BLAKE2b-256 | 9438b6406e3008b2cb887988a9708d6650df873164eedd9d14777bfe2026ebea |
Hashes for setuptools_scm_git_archive-1.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d940b46f40d0b5e2bcbfd9ed48a3994e403901c94c5314d7fbf66de3f649eed7 |
|
MD5 | 466d6eb888e6da787e9c1238d235b55f |
|
BLAKE2b-256 | 2ef682da3254123a1d8f43bf8cca6b3004f03571f0a2bd688b316b122f9d5874 |