@@ -135,7 +135,7 @@ def _test_select_abi3(env):
135
135
_tests .append (_test_select_abi3 )
136
136
137
137
def _test_select_by_supported_py_version (env ):
138
- for want_version , match in {
138
+ for want_python_version , match in {
139
139
"3.11" : "pkg-0.0.1-py311-abi3-any.whl" ,
140
140
"3.8" : "pkg-0.0.1-py3-abi3-any.whl" ,
141
141
}.items ():
@@ -147,14 +147,14 @@ def _test_select_by_supported_py_version(env):
147
147
],
148
148
want_abis = ["abi3" ],
149
149
want_platforms = ["ignored" ],
150
- want_version = want_version ,
150
+ want_python_version = want_python_version ,
151
151
)
152
152
_match (env , got , match )
153
153
154
154
_tests .append (_test_select_by_supported_py_version )
155
155
156
156
def _test_select_by_supported_cp_version (env ):
157
- for want_version , match in {
157
+ for want_python_version , match in {
158
158
"3.11" : "pkg-0.0.1-cp311-abi3-any.whl" ,
159
159
"3.8" : "pkg-0.0.1-py3-abi3-any.whl" ,
160
160
}.items ():
@@ -167,14 +167,14 @@ def _test_select_by_supported_cp_version(env):
167
167
],
168
168
want_abis = ["abi3" ],
169
169
want_platforms = ["ignored" ],
170
- want_version = want_version ,
170
+ want_python_version = want_python_version ,
171
171
)
172
172
_match (env , got , match )
173
173
174
174
_tests .append (_test_select_by_supported_cp_version )
175
175
176
176
def _test_supported_cp_version_manylinux (env ):
177
- for want_version , match in {
177
+ for want_python_version , match in {
178
178
"3.11" : "pkg-0.0.1-cp311-none-manylinux_x86_64.whl" ,
179
179
"3.8" : "pkg-0.0.1-py3-none-manylinux_x86_64.whl" ,
180
180
}.items ():
@@ -187,7 +187,7 @@ def _test_supported_cp_version_manylinux(env):
187
187
],
188
188
want_abis = ["none" ],
189
189
want_platforms = ["linux_x86_64" ],
190
- want_version = want_version ,
190
+ want_python_version = want_python_version ,
191
191
)
192
192
_match (env , got , match )
193
193
@@ -207,7 +207,7 @@ _tests.append(_test_ignore_unsupported)
207
207
208
208
def _test_match_abi_and_not_py_version (env ):
209
209
# Check we match the ABI and not the py version
210
- got = _select_whls (whls = WHL_LIST , want_abis = ["cp37m" ], want_platforms = ["linux_x86_64" ], want_version = "3.7" )
210
+ got = _select_whls (whls = WHL_LIST , want_abis = ["cp37m" ], want_platforms = ["linux_x86_64" ], want_python_version = "3.7" )
211
211
_match (
212
212
env ,
213
213
got ,
@@ -221,7 +221,7 @@ _tests.append(_test_match_abi_and_not_py_version)
221
221
222
222
def _test_select_filename_with_many_tags (env ):
223
223
# Check we can select a filename with many platform tags
224
- got = _select_whls (whls = WHL_LIST , want_abis = ["cp39" ], want_platforms = ["linux_x86_32" ], want_version = "3.9" )
224
+ got = _select_whls (whls = WHL_LIST , want_abis = ["cp39" ], want_platforms = ["linux_x86_32" ], want_python_version = "3.9" )
225
225
_match (
226
226
env ,
227
227
got ,
@@ -239,7 +239,7 @@ def _test_osx_prefer_arch_specific(env):
239
239
whls = WHL_LIST ,
240
240
want_abis = ["cp311" ],
241
241
want_platforms = ["osx_x86_64" , "osx_x86_32" ],
242
- want_version = "3.11" ,
242
+ want_python_version = "3.11" ,
243
243
)
244
244
_match (
245
245
env ,
@@ -250,7 +250,7 @@ def _test_osx_prefer_arch_specific(env):
250
250
got = _select_whl (whls = got , want_platform = "osx_x86_64" )
251
251
_match (env , got , "pkg-0.0.1-cp311-cp311-macosx_10_9_x86_64.whl" )
252
252
253
- got = _select_whls (whls = WHL_LIST , want_abis = ["cp311" ], want_platforms = ["osx_aarch64" ], want_version = "3.11" )
253
+ got = _select_whls (whls = WHL_LIST , want_abis = ["cp311" ], want_platforms = ["osx_aarch64" ], want_python_version = "3.11" )
254
254
_match (
255
255
env ,
256
256
got ,
@@ -264,7 +264,7 @@ _tests.append(_test_osx_prefer_arch_specific)
264
264
265
265
def _test_osx_fallback_to_universal2 (env ):
266
266
# Check that we can use the universal2 if the arm wheel is not available
267
- got = _select_whls (whls = [w for w in WHL_LIST if "arm64" not in w ], want_abis = ["cp311" ], want_platforms = ["osx_aarch64" ], want_version = "3.11" )
267
+ got = _select_whls (whls = [w for w in WHL_LIST if "arm64" not in w ], want_abis = ["cp311" ], want_platforms = ["osx_aarch64" ], want_python_version = "3.11" )
268
268
_match (
269
269
env ,
270
270
got ,
@@ -277,7 +277,7 @@ _tests.append(_test_osx_fallback_to_universal2)
277
277
278
278
def _test_prefer_manylinux_wheels (env ):
279
279
# Check we prefer platform specific wheels
280
- got = _select_whls (whls = WHL_LIST , want_abis = ["none" , "abi3" , "cp39" ], want_platforms = ["linux_x86_64" ], want_version = "3.9" )
280
+ got = _select_whls (whls = WHL_LIST , want_abis = ["none" , "abi3" , "cp39" ], want_platforms = ["linux_x86_64" ], want_python_version = "3.9" )
281
281
_match (
282
282
env ,
283
283
got ,
0 commit comments