-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a scenario for filtering out architecture tags (#235)
- Loading branch information
1 parent
760791d
commit ae71231
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name = "specific-architecture" | ||
description = "When a dependency is only required on a specific platform (like x86_64), omit wheels that target other platforms (like aarch64)." | ||
|
||
[root] | ||
requires = ["a"] | ||
|
||
[expected] | ||
satisfiable = true | ||
|
||
[packages.a.versions."1.0.0"] | ||
requires = [ | ||
"b ; platform_machine == 'x86_64'", | ||
"c ; platform_machine == 'aarch64'", | ||
"d ; platform_machine == 'i686'", | ||
] | ||
|
||
[packages.b.versions."1.0.0"] | ||
wheel_tags = [ | ||
"cp313-cp313-manylinux2010_x86_64", | ||
"cp313-cp313-manylinux2010_aarch64", | ||
"cp313-cp313-manylinux2010_i686", | ||
"cp313-cp313-freebsd_13_x86_64", | ||
"cp313-cp313-freebsd_13_aarch64", | ||
"cp313-cp313-macosx_10_9_x86_64", | ||
"cp313-cp313-macosx_10_9_arm64", | ||
] | ||
sdist = false | ||
|
||
[packages.c.versions."1.0.0"] | ||
wheel_tags = [ | ||
"cp313-cp313-manylinux2010_x86_64", | ||
"cp313-cp313-manylinux2010_aarch64", | ||
"cp313-cp313-manylinux2010_i686", | ||
"cp313-cp313-freebsd_13_x86_64", | ||
"cp313-cp313-freebsd_13_aarch64", | ||
"cp313-cp313-macosx_10_9_x86_64", | ||
"cp313-cp313-macosx_10_9_arm64", | ||
] | ||
sdist = false | ||
|
||
[packages.d.versions."1.0.0"] | ||
wheel_tags = [ | ||
"cp313-cp313-manylinux2010_x86_64", | ||
"cp313-cp313-manylinux2010_aarch64", | ||
"cp313-cp313-manylinux2010_i686", | ||
"cp313-cp313-freebsd_13_x86_64", | ||
"cp313-cp313-freebsd_13_aarch64", | ||
"cp313-cp313-macosx_10_9_x86_64", | ||
"cp313-cp313-macosx_10_9_arm64", | ||
] | ||
sdist = false | ||
|
||
[resolver_options] | ||
universal = true |