@@ -566,7 +566,6 @@ def _test_torch_experimental_index_url(env):
566566 for (os , cpu ), whl_platform_tags in {
567567 ("linux" , "x86_64" ): ["linux_x86_64" , "manylinux_*_x86_64" ],
568568 ("linux" , "aarch64" ): ["linux_aarch64" , "manylinux_*_aarch64" ],
569- ("osx" , "x86_64" ): ["macosx_*_x86_64" ],
570569 ("osx" , "aarch64" ): ["macosx_*_arm64" ],
571570 ("windows" , "x86_64" ): ["win_amd64" ],
572571 ("windows" , "aarch64" ): ["win_arm64" ], # this should be ignored
@@ -577,15 +576,6 @@ def _test_torch_experimental_index_url(env):
577576 "python_3_12_host" : "unit_test_interpreter_target" ,
578577 },
579578 minor_mapping = {"3.12" : "3.12.19" },
580- evaluate_markers_fn = lambda _ , requirements , ** __ : {
581- # todo once 2692 is merged, this is going to be easier to test.
582- key : [
583- platform
584- for platform in platforms
585- if ("x86_64" in platform and "platform_machine ==" in key ) or ("x86_64" not in platform and "platform_machine !=" in key )
586- ]
587- for key , platforms in requirements .items ()
588- },
589579 simpleapi_download_fn = mocksimpleapi_download ,
590580 )
591581 builder .pip_parse (
@@ -1085,14 +1075,6 @@ _tests.append(_test_simple_get_index)
10851075def _test_optimum_sys_platform_extra (env ):
10861076 builder = hub_builder (
10871077 env ,
1088- evaluate_markers_fn = lambda _ , requirements , ** __ : {
1089- key : [
1090- platform
1091- for platform in platforms
1092- if ("darwin" in key and "osx" in platform ) or ("linux" in key and "linux" in platform )
1093- ]
1094- for key , platforms in requirements .items ()
1095- },
10961078 )
10971079 builder .pip_parse (
10981080 _mock_mctx (
0 commit comments