@@ -32,6 +32,7 @@ def test_skbuild_settings_default(tmp_path):
32
32
assert settings .wheel .packages is None
33
33
assert settings .wheel .py_api == ""
34
34
assert not settings .wheel .expand_macos_universal_tags
35
+ assert settings .backport .find_python == "3.24"
35
36
assert settings .strict_config
36
37
assert not settings .experimental
37
38
assert settings .minimum_version is None
@@ -55,6 +56,7 @@ def test_skbuild_settings_envvar(tmp_path, monkeypatch):
55
56
monkeypatch .setenv ("SKBUILD_WHEEL_PACKAGES" , "j; k; l" )
56
57
monkeypatch .setenv ("SKBUILD_WHEEL_PY_API" , "cp39" )
57
58
monkeypatch .setenv ("SKBUILD_WHEEL_EXPAND_MACOS_UNIVERSAL_TAGS" , "True" )
59
+ monkeypatch .setenv ("SKBUILD_BACKPORT_FIND_PYTHON" , "0" )
58
60
monkeypatch .setenv ("SKBUILD_STRICT_CONFIG" , "0" )
59
61
monkeypatch .setenv ("SKBUILD_EXPERIMENTAL" , "1" )
60
62
monkeypatch .setenv ("SKBUILD_MINIMUM_VERSION" , "0.1" )
@@ -83,6 +85,7 @@ def test_skbuild_settings_envvar(tmp_path, monkeypatch):
83
85
assert settings .wheel .packages == ["j" , "k" , "l" ]
84
86
assert settings .wheel .py_api == "cp39"
85
87
assert settings .wheel .expand_macos_universal_tags
88
+ assert settings .backport .find_python == "0"
86
89
assert not settings .strict_config
87
90
assert settings .experimental
88
91
assert settings .minimum_version == "0.1"
@@ -112,6 +115,7 @@ def test_skbuild_settings_config_settings(tmp_path, monkeypatch):
112
115
"wheel.packages" : ["j" , "k" , "l" ],
113
116
"wheel.py-api" : "cp39" ,
114
117
"wheel.expand-macos-universal-tags" : "True" ,
118
+ "backport.find-python" : "" ,
115
119
"strict-config" : "false" ,
116
120
"experimental" : "1" ,
117
121
"minimum-version" : "0.1" ,
@@ -135,6 +139,7 @@ def test_skbuild_settings_config_settings(tmp_path, monkeypatch):
135
139
assert settings .wheel .packages == ["j" , "k" , "l" ]
136
140
assert settings .wheel .py_api == "cp39"
137
141
assert settings .wheel .expand_macos_universal_tags
142
+ assert settings .backport .find_python == ""
138
143
assert not settings .strict_config
139
144
assert settings .experimental
140
145
assert settings .minimum_version == "0.1"
@@ -163,6 +168,7 @@ def test_skbuild_settings_pyproject_toml(tmp_path, monkeypatch):
163
168
wheel.packages = ["j", "k", "l"]
164
169
wheel.py-api = "cp39"
165
170
wheel.expand-macos-universal-tags = true
171
+ backport.find-python = "3.18"
166
172
strict-config = false
167
173
experimental = true
168
174
minimum-version = "0.1"
@@ -191,6 +197,7 @@ def test_skbuild_settings_pyproject_toml(tmp_path, monkeypatch):
191
197
assert settings .wheel .packages == ["j" , "k" , "l" ]
192
198
assert settings .wheel .py_api == "cp39"
193
199
assert settings .wheel .expand_macos_universal_tags
200
+ assert settings .backport .find_python == "3.18"
194
201
assert not settings .strict_config
195
202
assert settings .experimental
196
203
assert settings .minimum_version == "0.1"
0 commit comments