@@ -458,31 +458,37 @@ package[extra]==0.7.0 \
458458 )
459459
460460 pypi .exposed_packages ().contains_exactly ({"pypi" : ["package" ]})
461- # TODO(hartikainen): Check these expectations.
462461 pypi .hub_whl_map ().contains_exactly ({"pypi" : {
463462 "package" : {
464463 "pypi_312_package_py3_none_any_62833036" : [
465464 whl_config_setting (
466- # TODO(hartikainen): The two platforms both use the same `.whl` and
467- # are thus included in the same `target_platforms` here.
468- target_platforms = ["cp312_linux_aarch64" , "cp312_linux_x86_64" ],
465+ target_platforms = ["cp312_linux_aarch64" ],
466+ version = "3.12" ,
467+ ),
468+ ],
469+ "pypi_312_package_py3_none_any_extra_62833036" : [
470+ whl_config_setting (
471+ target_platforms = ["cp312_linux_x86_64" ],
469472 version = "3.12" ,
470473 ),
471474 ],
472475 },
473476 }})
474477 pypi .whl_libraries ().contains_exactly ({
475- # NOTE(hartikainen): The error stems here. We have two different platforms
476- # pointing to the same universal wheel, both just with different extras. The key
477- # clashes and probably needs the extras to be included in it.
478478 "pypi_312_package_py3_none_any_62833036" : {
479479 "dep_template" : "@pypi//{name}:{target}" ,
480- "download_only" : True ,
481- "experimental_target_platforms" : ["linux_aarch64" , "linux_x86_64" ],
480+ "experimental_target_platforms" : ["linux_aarch64" ],
481+ "filename" : "package-0.7.0-py3-none-any.whl" ,
482+ "python_interpreter_target" : "unit_test_interpreter_target" ,
483+ "requirement" : "package==0.7.0" ,
484+ "sha256" : "62833036cbaf4641d66ae94c61c0446890a91b2c0d153946583a0ebe04877a76" ,
485+ "urls" : ["https://example.com/package/package-0.7.0-py3-none-any.whl" ],
486+ },
487+ "pypi_312_package_py3_none_any_extra_62833036" : {
488+ "dep_template" : "@pypi//{name}:{target}" ,
489+ "experimental_target_platforms" : ["linux_x86_64" ],
482490 "filename" : "package-0.7.0-py3-none-any.whl" ,
483491 "python_interpreter_target" : "unit_test_interpreter_target" ,
484- # NOTE(hartikainen): This should say `package[extra]==0.7.0` for
485- # `linux_x86_64` platform and `package==0.7.0` for `linux_aarch64`
486492 "requirement" : "package[extra]==0.7.0" ,
487493 "sha256" : "62833036cbaf4641d66ae94c61c0446890a91b2c0d153946583a0ebe04877a76" ,
488494 "urls" : ["https://example.com/package/package-0.7.0-py3-none-any.whl" ],
0 commit comments