@@ -332,7 +332,9 @@ torch==2.4.1 ; platform_machine != 'x86_64' \
332332 _parse (
333333 hub_name = "pypi" ,
334334 python_version = "3.15" ,
335- requirements_lock = "universal.txt" ,
335+ requirements_by_platform = {
336+ "universal.txt" : "linux_aarch64,osx_aarch64,windows_aarch64,linux_x86_64,linux_x86_64_freethreaded" ,
337+ },
336338 ),
337339 )
338340 pypi = builder .build ()
@@ -723,7 +725,9 @@ git_dep @ git+https://git.server/repo/project@deadbeefdeadbeef
723725 _parse (
724726 hub_name = "pypi" ,
725727 python_version = "3.15" ,
726- requirements_lock = "requirements.txt" ,
728+ requirements_by_platform = {
729+ "requirements.txt" : "linux_aarch64,linux_x86_64,linux_x86_64_freethreaded,osx_aarch64,windows_aarch64" ,
730+ },
727731 experimental_index_url = "pypi.org" ,
728732 extra_pip_args = [
729733 "--extra-args-for-sdist-building" ,
@@ -938,18 +942,16 @@ optimum[onnxruntime-gpu]==1.17.1 ; sys_platform == 'linux'
938942 )
939943 pypi = builder .build ()
940944
941- # FIXME @aignas 2025-09-07: we should expose the `optimum` package
942- pypi .exposed_packages ().contains_exactly ([])
945+ pypi .exposed_packages ().contains_exactly (["optimum" ])
943946 pypi .group_map ().contains_exactly ({})
944947 pypi .whl_map ().contains_exactly ({
945948 "optimum" : {
946- "pypi_315_optimum_linux_aarch64_linux_x86_64_linux_x86_64_freethreaded " : [
949+ "pypi_315_optimum_linux_aarch64_linux_x86_64 " : [
947950 whl_config_setting (
948951 version = "3.15" ,
949952 target_platforms = [
950953 "cp315_linux_aarch64" ,
951954 "cp315_linux_x86_64" ,
952- "cp315_linux_x86_64_freethreaded" ,
953955 ],
954956 ),
955957 ],
@@ -964,7 +966,7 @@ optimum[onnxruntime-gpu]==1.17.1 ; sys_platform == 'linux'
964966 },
965967 })
966968 pypi .whl_libraries ().contains_exactly ({
967- "pypi_315_optimum_linux_aarch64_linux_x86_64_linux_x86_64_freethreaded " : {
969+ "pypi_315_optimum_linux_aarch64_linux_x86_64 " : {
968970 "config_load" : "@pypi//:config.bzl" ,
969971 "dep_template" : "@pypi//{name}:{target}" ,
970972 "python_interpreter_target" : "unit_test_interpreter_target" ,
@@ -1019,7 +1021,9 @@ optimum[onnxruntime-gpu]==1.17.1 ; sys_platform == 'linux'
10191021 _parse (
10201022 hub_name = "pypi" ,
10211023 python_version = "3.15" ,
1022- requirements_lock = "universal.txt" ,
1024+ requirements_by_platform = {
1025+ "universal.txt" : "mylinuxx86_64,myosxaarch64" ,
1026+ },
10231027 ),
10241028 )
10251029 pypi = builder .build ()
0 commit comments