@@ -53,7 +53,6 @@ def cibuildwheel_from_sdist_run(sdist_path, add_env=None, config_file=None):
53
53
# tests
54
54
55
55
56
- @utils .skip_if_pyodide (reason = "TODO: fix!" )
57
56
def test_simple (tmp_path ):
58
57
basic_project = test_projects .new_c_project ()
59
58
@@ -77,16 +76,15 @@ def test_simple(tmp_path):
77
76
sdist_path ,
78
77
add_env = {
79
78
"CIBW_BEFORE_BUILD" : setup_py_assertion_cmd ,
80
- "CIBW_BUILD" : "cp311 -*" ,
79
+ "CIBW_BUILD" : "cp312 -*" ,
81
80
},
82
81
)
83
82
84
83
# check that the expected wheels are produced
85
- expected_wheels = [w for w in utils .expected_wheels ("spam" , "0.1.0" ) if "cp311 " in w ]
84
+ expected_wheels = [w for w in utils .expected_wheels ("spam" , "0.1.0" ) if "cp312 " in w ]
86
85
assert set (actual_wheels ) == set (expected_wheels )
87
86
88
87
89
- @utils .skip_if_pyodide (reason = "TODO: fix!" )
90
88
def test_external_config_file_argument (tmp_path , capfd ):
91
89
basic_project = test_projects .new_c_project ()
92
90
@@ -109,20 +107,19 @@ def test_external_config_file_argument(tmp_path, capfd):
109
107
# build the wheels from sdist
110
108
actual_wheels = cibuildwheel_from_sdist_run (
111
109
sdist_path ,
112
- add_env = {"CIBW_BUILD" : "cp311 -*" },
110
+ add_env = {"CIBW_BUILD" : "cp312 -*" },
113
111
config_file = str (config_file ),
114
112
)
115
113
116
114
# check that the expected wheels are produced
117
- expected_wheels = [w for w in utils .expected_wheels ("spam" , "0.1.0" ) if "cp311 " in w ]
115
+ expected_wheels = [w for w in utils .expected_wheels ("spam" , "0.1.0" ) if "cp312 " in w ]
118
116
assert set (actual_wheels ) == set (expected_wheels )
119
117
120
118
# check that before-all was run
121
119
captured = capfd .readouterr ()
122
120
assert "test log statement from before-all" in captured .out
123
121
124
122
125
- @utils .skip_if_pyodide (reason = "TODO: fix!" )
126
123
def test_config_in_pyproject_toml (tmp_path , capfd ):
127
124
# make a project with a pyproject.toml
128
125
project = test_projects .new_c_project ()
@@ -141,19 +138,18 @@ def test_config_in_pyproject_toml(tmp_path, capfd):
141
138
# build the wheels from sdist
142
139
actual_wheels = cibuildwheel_from_sdist_run (
143
140
sdist_path ,
144
- add_env = {"CIBW_BUILD" : "cp311 -*" },
141
+ add_env = {"CIBW_BUILD" : "cp312 -*" },
145
142
)
146
143
147
144
# check that the expected wheels are produced
148
- expected_wheels = [w for w in utils .expected_wheels ("spam" , "0.1.0" ) if "cp311 " in w ]
145
+ expected_wheels = [w for w in utils .expected_wheels ("spam" , "0.1.0" ) if "cp312 " in w ]
149
146
assert set (actual_wheels ) == set (expected_wheels )
150
147
151
148
# check that before-build was run
152
149
captured = capfd .readouterr ()
153
150
assert "test log statement from before-build 8419" in captured .out
154
151
155
152
156
- @utils .skip_if_pyodide (reason = "Doesn't work" )
157
153
def test_internal_config_file_argument (tmp_path , capfd ):
158
154
# make a project with a config file inside
159
155
project = test_projects .new_c_project (
@@ -179,12 +175,12 @@ def test_internal_config_file_argument(tmp_path, capfd):
179
175
# build the wheels from sdist, referencing the config file inside
180
176
actual_wheels = cibuildwheel_from_sdist_run (
181
177
sdist_path ,
182
- add_env = {"CIBW_BUILD" : "cp311 -*" },
178
+ add_env = {"CIBW_BUILD" : "cp312 -*" },
183
179
config_file = "{package}/wheel_build_config.toml" ,
184
180
)
185
181
186
182
# check that the expected wheels are produced
187
- expected_wheels = [w for w in utils .expected_wheels ("spam" , "0.1.0" ) if "cp311 " in w ]
183
+ expected_wheels = [w for w in utils .expected_wheels ("spam" , "0.1.0" ) if "cp312 " in w ]
188
184
assert set (actual_wheels ) == set (expected_wheels )
189
185
190
186
# check that before-all was run
0 commit comments