@@ -32,6 +32,7 @@ def test_skbuild_settings_default(tmp_path):
3232 assert settings .wheel .packages is None
3333 assert settings .wheel .py_api == ""
3434 assert not settings .wheel .expand_macos_universal_tags
35+ assert settings .backport .find_python == "3.24"
3536 assert settings .strict_config
3637 assert not settings .experimental
3738 assert settings .minimum_version is None
@@ -55,6 +56,7 @@ def test_skbuild_settings_envvar(tmp_path, monkeypatch):
5556 monkeypatch .setenv ("SKBUILD_WHEEL_PACKAGES" , "j; k; l" )
5657 monkeypatch .setenv ("SKBUILD_WHEEL_PY_API" , "cp39" )
5758 monkeypatch .setenv ("SKBUILD_WHEEL_EXPAND_MACOS_UNIVERSAL_TAGS" , "True" )
59+ monkeypatch .setenv ("SKBUILD_BACKPORT_FIND_PYTHON" , "0" )
5860 monkeypatch .setenv ("SKBUILD_STRICT_CONFIG" , "0" )
5961 monkeypatch .setenv ("SKBUILD_EXPERIMENTAL" , "1" )
6062 monkeypatch .setenv ("SKBUILD_MINIMUM_VERSION" , "0.1" )
@@ -83,6 +85,7 @@ def test_skbuild_settings_envvar(tmp_path, monkeypatch):
8385 assert settings .wheel .packages == ["j" , "k" , "l" ]
8486 assert settings .wheel .py_api == "cp39"
8587 assert settings .wheel .expand_macos_universal_tags
88+ assert settings .backport .find_python == "0"
8689 assert not settings .strict_config
8790 assert settings .experimental
8891 assert settings .minimum_version == "0.1"
@@ -112,6 +115,7 @@ def test_skbuild_settings_config_settings(tmp_path, monkeypatch):
112115 "wheel.packages" : ["j" , "k" , "l" ],
113116 "wheel.py-api" : "cp39" ,
114117 "wheel.expand-macos-universal-tags" : "True" ,
118+ "backport.find-python" : "" ,
115119 "strict-config" : "false" ,
116120 "experimental" : "1" ,
117121 "minimum-version" : "0.1" ,
@@ -135,6 +139,7 @@ def test_skbuild_settings_config_settings(tmp_path, monkeypatch):
135139 assert settings .wheel .packages == ["j" , "k" , "l" ]
136140 assert settings .wheel .py_api == "cp39"
137141 assert settings .wheel .expand_macos_universal_tags
142+ assert settings .backport .find_python == ""
138143 assert not settings .strict_config
139144 assert settings .experimental
140145 assert settings .minimum_version == "0.1"
@@ -163,6 +168,7 @@ def test_skbuild_settings_pyproject_toml(tmp_path, monkeypatch):
163168 wheel.packages = ["j", "k", "l"]
164169 wheel.py-api = "cp39"
165170 wheel.expand-macos-universal-tags = true
171+ backport.find-python = "3.18"
166172 strict-config = false
167173 experimental = true
168174 minimum-version = "0.1"
@@ -191,6 +197,7 @@ def test_skbuild_settings_pyproject_toml(tmp_path, monkeypatch):
191197 assert settings .wheel .packages == ["j" , "k" , "l" ]
192198 assert settings .wheel .py_api == "cp39"
193199 assert settings .wheel .expand_macos_universal_tags
200+ assert settings .backport .find_python == "3.18"
194201 assert not settings .strict_config
195202 assert settings .experimental
196203 assert settings .minimum_version == "0.1"
0 commit comments