Skip to content

Commit 44a7814

Browse files
authoredAug 18, 2022
build: Update git archival options to support auto versioning (#1951)
* Update the options in .git_archival.txt to fully support to allow Git archives (including the ones generated from GitHub) to support versioning. - c.f. scikit-hep/scikit-hep.github.io#250 - c.f. https://github.com/pypa/setuptools_scm/tree/1b18371fc2fa672f39c758a103c4d12956b5964f#git-archives * Require 'setuptools_scm>=7.0.1' for the build system to ensure support. - Drop addition of 'setuptools_scm[toml]' extra as no longer required. * Require 'setuptools>=61.0.0' for the build system as v61.0.0 adds support for pyproject.toml configuration. This configuration is not currently used by pyhf, but it is updated given the recommendation by the Scikit-HEP developer guide. - c.f. https://setuptools.pypa.io/en/latest/history.html#v61-0-0
1 parent a618640 commit 44a7814

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
 

‎.git_archival.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
node: $Format:%H$
2+
node-date: $Format:%cI$
3+
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
14
ref-names: $Format:%D$

‎pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
# Minimum requirements for the build system to execute.
3-
requires = ["setuptools>=42.0.0", "setuptools_scm[toml]>=3.4"]
3+
requires = ["setuptools>=61.0.0", "setuptools_scm>=7.0.1"]
44
build-backend = "setuptools.build_meta"
55

66
[tool.setuptools_scm]

0 commit comments

Comments
 (0)
Please sign in to comment.