setuptools_scm plugin for git archives
Project description
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file setuptools_scm_git_archive-1.1.tar.gz.
File metadata
- Download URL: setuptools_scm_git_archive-1.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6026f61089b73fa1b5ee737e95314f41cb512609b393530385ed281d0b46c062
|
|
| MD5 |
1c9351fa5cebd12e76488737a7c78f2e
|
|
| BLAKE2b-256 |
7e2c0c15b29a1b5940250bfdc4a4f53272e35cd7cf8a34159291b6b4ec9eb291
|
File details
Details for the file setuptools_scm_git_archive-1.1-py2.py3-none-any.whl.
File metadata
- Download URL: setuptools_scm_git_archive-1.1-py2.py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3df19d1f05f70bb4b33485a88669726f1b2f14600ef2e557b927fc9cbdbfff2b
|
|
| MD5 |
f7c1f51345874bd4d8d1d0b63d3c5663
|
|
| BLAKE2b-256 |
7e83284c6d3fac2e74532a9f51f908018690709db9af1469cf728574f6be3abf
|