Skip to main content

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

setuptools_scm_git_archive-1.2.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

setuptools_scm_git_archive-1.2.1-py2.py3-none-any.whl (3.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file setuptools_scm_git_archive-1.2.1.tar.gz.

File metadata

  • Download URL: setuptools_scm_git_archive-1.2.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.10.4

File hashes

Hashes for setuptools_scm_git_archive-1.2.1.tar.gz
Algorithm Hash digest
SHA256 2d964ebba5f91488e4a2a00da6b8106858325c6684d0099c482558a2d9705915
MD5 08c8e71e15803b8bd4ea3bcde33df17b
BLAKE2b-256 9438b6406e3008b2cb887988a9708d6650df873164eedd9d14777bfe2026ebea

See more details on using hashes here.

File details

Details for the file setuptools_scm_git_archive-1.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: setuptools_scm_git_archive-1.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.10.4

File hashes

Hashes for setuptools_scm_git_archive-1.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d940b46f40d0b5e2bcbfd9ed48a3994e403901c94c5314d7fbf66de3f649eed7
MD5 466d6eb888e6da787e9c1238d235b55f
BLAKE2b-256 2ef682da3254123a1d8f43bf8cca6b3004f03571f0a2bd688b316b122f9d5874

See more details on using hashes here.

Supported by

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