Skip to content

Commit e78b59d

Browse files
asvetlovseifertm
andauthored
Fix setuptools_scm configuration (#279)
* Fix setuptools_scm configuration * build: Enabled Tox build isolation. This fixes an issue that forced us to add setuptools_scm to setup.cfg, instead of specifying the dependency just once in pyproject.toml. See discussion #279 Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de> Co-authored-by: Michael Seifert <m.seifert@digitalernachschub.de>
1 parent d8efa64 commit e78b59d

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
requires = [
33
"setuptools>=51.0",
44
"wheel>=0.36",
5-
"setuptools_scm>=6.2"
5+
"setuptools_scm[toml]>=6.2"
66
]
77
build-backend = "setuptools.build_meta"
88

setup.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ python_requires = >=3.7
3434
packages = find:
3535
include_package_data = True
3636

37-
setup_requires =
38-
setuptools_scm >= 6.2
39-
4037
install_requires =
4138
pytest >= 6.1.0
4239
typing-extensions >= 4.0; python_version < "3.8"

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
minversion = 3.14.0
33
envlist = py37, py38, py39, py310, lint, version-info, pytest-min
44
skip_missing_interpreters = true
5+
isolated_build = true
56
passenv =
67
CI
78

0 commit comments

Comments
 (0)