Skip to content

Commit 594f026

Browse files
committed
wip
1 parent 68dfedb commit 594f026

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

tests/pypi/requirements_files_by_platform/requirements_files_by_platform_tests.bzl

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ requirements_files_by_platform = lambda **kwargs: _sut(
2323
platforms = kwargs.pop(
2424
"platforms",
2525
[
26-
"linux_aarch64",
27-
"linux_arm",
28-
"linux_ppc",
29-
"linux_s390x",
30-
"linux_x86_64",
31-
"osx_aarch64",
32-
"osx_x86_64",
33-
"windows_x86_64",
26+
"cp311_linux_aarch64",
27+
"cp311_linux_arm",
28+
"cp311_linux_ppc",
29+
"cp311_linux_s390x",
30+
"cp311_linux_x86_64",
31+
"cp311_osx_aarch64",
32+
"cp311_osx_x86_64",
33+
"cp311_windows_x86_64",
3434
],
3535
),
3636
**kwargs
@@ -90,14 +90,14 @@ def _test_simple(env):
9090
]:
9191
env.expect.that_dict(got).contains_exactly({
9292
"requirements_lock": [
93-
"linux_aarch64",
94-
"linux_arm",
95-
"linux_ppc",
96-
"linux_s390x",
97-
"linux_x86_64",
98-
"osx_aarch64",
99-
"osx_x86_64",
100-
"windows_x86_64",
93+
"cp311_linux_aarch64",
94+
"cp311_linux_arm",
95+
"cp311_linux_ppc",
96+
"cp311_linux_s390x",
97+
"cp311_linux_x86_64",
98+
"cp311_osx_aarch64",
99+
"cp311_osx_x86_64",
100+
"cp311_windows_x86_64",
101101
],
102102
})
103103

@@ -107,19 +107,19 @@ def _test_simple_limited(env):
107107
for got in [
108108
requirements_files_by_platform(
109109
requirements_lock = "requirements_lock",
110-
platforms = ["linux_x86_64", "osx_x86_64"],
110+
platforms = ["cp311_linux_x86_64", "cp311_osx_x86_64"],
111111
),
112112
requirements_files_by_platform(
113113
requirements_by_platform = {
114114
"requirements_lock": "*",
115115
},
116-
platforms = ["linux_x86_64", "osx_x86_64"],
116+
platforms = ["cp311_linux_x86_64", "cp311_osx_x86_64"],
117117
),
118118
]:
119119
env.expect.that_dict(got).contains_exactly({
120120
"requirements_lock": [
121-
"linux_x86_64",
122-
"osx_x86_64",
121+
"cp311_linux_x86_64",
122+
"cp311_osx_x86_64",
123123
],
124124
})
125125

@@ -179,18 +179,18 @@ def _test_multi_os(env):
179179
]:
180180
env.expect.that_dict(got).contains_exactly({
181181
"requirements_linux": [
182-
"linux_aarch64",
183-
"linux_arm",
184-
"linux_ppc",
185-
"linux_s390x",
186-
"linux_x86_64",
182+
"cp311_linux_aarch64",
183+
"cp311_linux_arm",
184+
"cp311_linux_ppc",
185+
"cp311_linux_s390x",
186+
"cp311_linux_x86_64",
187187
],
188188
"requirements_osx": [
189-
"osx_aarch64",
190-
"osx_x86_64",
189+
"cp311_osx_aarch64",
190+
"cp311_osx_x86_64",
191191
],
192192
"requirements_windows": [
193-
"windows_x86_64",
193+
"cp311_windows_x86_64",
194194
],
195195
})
196196

@@ -224,12 +224,12 @@ def _test_os_arch_requirements_with_default(env):
224224
"requirements_exotic": ["linux_super_exotic"],
225225
"requirements_linux": ["linux_x86_64", "linux_aarch64"],
226226
"requirements_lock": [
227-
"linux_arm",
228-
"linux_ppc",
229-
"linux_s390x",
230-
"osx_aarch64",
231-
"osx_x86_64",
232-
"windows_x86_64",
227+
"cp311_linux_arm",
228+
"cp311_linux_ppc",
229+
"cp311_linux_s390x",
230+
"cp311_osx_aarch64",
231+
"cp311_osx_x86_64",
232+
"cp311_windows_x86_64",
233233
],
234234
})
235235

0 commit comments

Comments
 (0)