@@ -35,7 +35,7 @@ def test_simple_settings(tmp_path, platform, fname):
3535 config_file_path : Path = tmp_path / fname
3636 config_file_path .write_text (PYPROJECT_1 )
3737
38- options_reader = OptionsReader (config_file_path , platform = platform , environ = {})
38+ options_reader = OptionsReader (config_file_path , platform = platform , env = {})
3939
4040 assert options_reader .get ("build" , env_plat = False , sep = " " ) == "cp39*"
4141
@@ -78,7 +78,7 @@ def test_envvar_override(tmp_path, platform, monkeypatch):
7878 options_reader = OptionsReader (
7979 config_file_path ,
8080 platform = platform ,
81- environ = {
81+ env = {
8282 "CIBW_BUILD" : "cp38*" ,
8383 "CIBW_MANYLINUX_X86_64_IMAGE" : "manylinux_2_24" ,
8484 "CIBW_TEST_COMMAND" : "mytest" ,
@@ -108,13 +108,13 @@ def test_project_global_override_default_platform(tmp_path, platform):
108108repair-wheel-command = "repair-project-global"
109109"""
110110 )
111- options_reader = OptionsReader (pyproject_toml , platform = platform , environ = {})
111+ options_reader = OptionsReader (pyproject_toml , platform = platform , env = {})
112112 assert options_reader .get ("repair-wheel-command" ) == "repair-project-global"
113113
114114
115115def test_env_global_override_default_platform (tmp_path , platform , monkeypatch ):
116116 options_reader = OptionsReader (
117- platform = platform , environ = {"CIBW_REPAIR_WHEEL_COMMAND" : "repair-env-global" }
117+ platform = platform , env = {"CIBW_REPAIR_WHEEL_COMMAND" : "repair-env-global" }
118118 )
119119 assert options_reader .get ("repair-wheel-command" ) == "repair-env-global"
120120
@@ -134,7 +134,7 @@ def test_env_global_override_project_platform(tmp_path, platform, monkeypatch):
134134 options_reader = OptionsReader (
135135 pyproject_toml ,
136136 platform = platform ,
137- environ = {
137+ env = {
138138 "CIBW_REPAIR_WHEEL_COMMAND" : "repair-env-global" ,
139139 },
140140 )
@@ -155,7 +155,7 @@ def test_global_platform_order(tmp_path, platform):
155155repair-wheel-command = "repair-project-global"
156156"""
157157 )
158- options_reader = OptionsReader (pyproject_toml , platform = platform , environ = {})
158+ options_reader = OptionsReader (pyproject_toml , platform = platform , env = {})
159159 assert options_reader .get ("repair-wheel-command" ) == f"repair-project-{ platform } "
160160
161161
@@ -171,7 +171,7 @@ def test_unexpected_key(tmp_path):
171171 )
172172
173173 with pytest .raises (ConfigOptionError ) as excinfo :
174- OptionsReader (pyproject_toml , platform = "linux" , environ = {})
174+ OptionsReader (pyproject_toml , platform = "linux" , env = {})
175175
176176 assert "repair-wheel-command" in str (excinfo .value )
177177
@@ -188,7 +188,7 @@ def test_underscores_in_key(tmp_path):
188188 )
189189
190190 with pytest .raises (ConfigOptionError ) as excinfo :
191- OptionsReader (pyproject_toml , platform = "linux" , environ = {})
191+ OptionsReader (pyproject_toml , platform = "linux" , env = {})
192192
193193 assert "repair-wheel-command" in str (excinfo .value )
194194
@@ -202,7 +202,7 @@ def test_unexpected_table(tmp_path):
202202"""
203203 )
204204 with pytest .raises (ConfigOptionError ):
205- OptionsReader (pyproject_toml , platform = "linux" , environ = {})
205+ OptionsReader (pyproject_toml , platform = "linux" , env = {})
206206
207207
208208def test_unsupported_join (tmp_path ):
@@ -213,7 +213,7 @@ def test_unsupported_join(tmp_path):
213213build = ["1", "2"]
214214"""
215215 )
216- options_reader = OptionsReader (pyproject_toml , platform = "linux" , environ = {})
216+ options_reader = OptionsReader (pyproject_toml , platform = "linux" , env = {})
217217
218218 assert "1, 2" == options_reader .get ("build" , sep = ", " )
219219 with pytest .raises (ConfigOptionError ):
@@ -229,9 +229,9 @@ def test_disallowed_a(tmp_path):
229229"""
230230 )
231231 disallow = {"windows" : {"manylinux-x86_64-image" }}
232- OptionsReader (pyproject_toml , platform = "linux" , disallow = disallow , environ = {})
232+ OptionsReader (pyproject_toml , platform = "linux" , disallow = disallow , env = {})
233233 with pytest .raises (ConfigOptionError ):
234- OptionsReader (pyproject_toml , platform = "windows" , disallow = disallow , environ = {})
234+ OptionsReader (pyproject_toml , platform = "windows" , disallow = disallow , env = {})
235235
236236
237237def test_environment_override_empty (tmp_path , monkeypatch ):
@@ -247,7 +247,7 @@ def test_environment_override_empty(tmp_path, monkeypatch):
247247 options_reader = OptionsReader (
248248 pyproject_toml ,
249249 platform = "linux" ,
250- environ = {
250+ env = {
251251 "CIBW_MANYLINUX_I686_IMAGE" : "" ,
252252 "CIBW_MANYLINUX_AARCH64_IMAGE" : "manylinux1" ,
253253 },
@@ -320,7 +320,7 @@ def test_pyproject_2(tmp_path, platform):
320320 pyproject_toml : Path = tmp_path / "pyproject.toml"
321321 pyproject_toml .write_text (PYPROJECT_2 )
322322
323- options_reader = OptionsReader (config_file_path = pyproject_toml , platform = platform , environ = {})
323+ options_reader = OptionsReader (config_file_path = pyproject_toml , platform = platform , env = {})
324324 assert options_reader .get ("test-command" ) == "pyproject"
325325
326326 with options_reader .identifier ("random" ):
@@ -344,7 +344,7 @@ def test_overrides_not_a_list(tmp_path, platform):
344344 )
345345
346346 with pytest .raises (ConfigOptionError ):
347- OptionsReader (config_file_path = pyproject_toml , platform = platform , environ = {})
347+ OptionsReader (config_file_path = pyproject_toml , platform = platform , env = {})
348348
349349
350350def test_config_settings (tmp_path ):
@@ -357,7 +357,7 @@ def test_config_settings(tmp_path):
357357"""
358358 )
359359
360- options_reader = OptionsReader (config_file_path = pyproject_toml , platform = "linux" , environ = {})
360+ options_reader = OptionsReader (config_file_path = pyproject_toml , platform = "linux" , env = {})
361361 assert (
362362 options_reader .get ("config-settings" , table = {"item" : '{k}="{v}"' , "sep" : " " })
363363 == 'example="one" other="two" other="three"'
@@ -373,7 +373,7 @@ def test_pip_config_settings(tmp_path):
373373"""
374374 )
375375
376- options_reader = OptionsReader (config_file_path = pyproject_toml , platform = "linux" , environ = {})
376+ options_reader = OptionsReader (config_file_path = pyproject_toml , platform = "linux" , env = {})
377377 assert (
378378 options_reader .get (
379379 "config-settings" , table = {"item" : "--config-settings='{k}=\" {v}\" '" , "sep" : " " }
0 commit comments