gituser/production/: setuptools-scm-git-archive-1.1 metadata and description

Homepage Simple index

setuptools_scm plugin for git archives

author Changaco
author_email changaco@changaco.oy.lc
keywords scm vcs version tags git archive
license MIT
File Tox results History
setuptools_scm_git_archive-1.1-py2.py3-none-any.whl
Size
3 KB
Type
Python Wheel
Python
2.7

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.