Modernize setuptools usage and setuptools_scm

This commit is contained in:
James R. Barlow 2022-07-04 02:19:31 -07:00
parent da38e1b035
commit 6e439ee89e
No known key found for this signature in database
GPG Key ID: E54A300D567E1260
3 changed files with 8 additions and 14 deletions

View File

@ -1 +1,4 @@
ref-names: $Format:%D$
node: $Format:%H$
node-date: $Format:%cI$
describe-name: $Format:%(describe:tags=true)$
ref-names: $Format:%D$

View File

@ -1,14 +1,12 @@
[build-system]
requires = [
"setuptools >= 30.3.0",
"wheel",
"setuptools_scm[toml] >= 3.4",
"setuptools_scm_git_archive"
"setuptools >= 52",
"setuptools_scm[toml] >= 7.0.3",
"wheel"
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
version_scheme = "post-release"
[tool.black]
line-length = 88

View File

@ -8,11 +8,4 @@
from setuptools import setup
# Minimal setup to support older setuptools/setuptools_scm
setup(
setup_requires=[ # can be removed whenever we can drop pip 9 support
'setuptools_scm', # so that version will work
'setuptools_scm_git_archive', # enable version from github tarballs
],
use_scm_version={'version_scheme': 'post-release'},
)
setup()