Skip to content

Commit ae71231

Browse files
Add a scenario for filtering out architecture tags (#235)
1 parent 760791d commit ae71231

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name = "specific-architecture"
2+
description = "When a dependency is only required on a specific platform (like x86_64), omit wheels that target other platforms (like aarch64)."
3+
4+
[root]
5+
requires = ["a"]
6+
7+
[expected]
8+
satisfiable = true
9+
10+
[packages.a.versions."1.0.0"]
11+
requires = [
12+
"b ; platform_machine == 'x86_64'",
13+
"c ; platform_machine == 'aarch64'",
14+
"d ; platform_machine == 'i686'",
15+
]
16+
17+
[packages.b.versions."1.0.0"]
18+
wheel_tags = [
19+
"cp313-cp313-manylinux2010_x86_64",
20+
"cp313-cp313-manylinux2010_aarch64",
21+
"cp313-cp313-manylinux2010_i686",
22+
"cp313-cp313-freebsd_13_x86_64",
23+
"cp313-cp313-freebsd_13_aarch64",
24+
"cp313-cp313-macosx_10_9_x86_64",
25+
"cp313-cp313-macosx_10_9_arm64",
26+
]
27+
sdist = false
28+
29+
[packages.c.versions."1.0.0"]
30+
wheel_tags = [
31+
"cp313-cp313-manylinux2010_x86_64",
32+
"cp313-cp313-manylinux2010_aarch64",
33+
"cp313-cp313-manylinux2010_i686",
34+
"cp313-cp313-freebsd_13_x86_64",
35+
"cp313-cp313-freebsd_13_aarch64",
36+
"cp313-cp313-macosx_10_9_x86_64",
37+
"cp313-cp313-macosx_10_9_arm64",
38+
]
39+
sdist = false
40+
41+
[packages.d.versions."1.0.0"]
42+
wheel_tags = [
43+
"cp313-cp313-manylinux2010_x86_64",
44+
"cp313-cp313-manylinux2010_aarch64",
45+
"cp313-cp313-manylinux2010_i686",
46+
"cp313-cp313-freebsd_13_x86_64",
47+
"cp313-cp313-freebsd_13_aarch64",
48+
"cp313-cp313-macosx_10_9_x86_64",
49+
"cp313-cp313-macosx_10_9_arm64",
50+
]
51+
sdist = false
52+
53+
[resolver_options]
54+
universal = true

0 commit comments

Comments
 (0)