Modernize setuptools usage and setuptools_scm
This commit is contained in:
@@ -1 +1,4 @@
|
|||||||
|
node: $Format:%H$
|
||||||
|
node-date: $Format:%cI$
|
||||||
|
describe-name: $Format:%(describe:tags=true)$
|
||||||
ref-names: $Format:%D$
|
ref-names: $Format:%D$
|
||||||
+3
-5
@@ -1,14 +1,12 @@
|
|||||||
[build-system]
|
[build-system]
|
||||||
requires = [
|
requires = [
|
||||||
"setuptools >= 30.3.0",
|
"setuptools >= 52",
|
||||||
"wheel",
|
"setuptools_scm[toml] >= 7.0.3",
|
||||||
"setuptools_scm[toml] >= 3.4",
|
"wheel"
|
||||||
"setuptools_scm_git_archive"
|
|
||||||
]
|
]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[tool.setuptools_scm]
|
[tool.setuptools_scm]
|
||||||
version_scheme = "post-release"
|
|
||||||
|
|
||||||
[tool.black]
|
[tool.black]
|
||||||
line-length = 88
|
line-length = 88
|
||||||
|
|||||||
@@ -8,11 +8,4 @@
|
|||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
# Minimal setup to support older setuptools/setuptools_scm
|
setup()
|
||||||
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'},
|
|
||||||
)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user