@@ -458,34 +458,40 @@ package[extra]==0.7.0 \
458
458
)
459
459
460
460
pypi .exposed_packages ().contains_exactly ({"pypi" : ["package" ]})
461
- # TODO(hartikainen): Check these expectations.
462
461
pypi .hub_whl_map ().contains_exactly ({"pypi" : {
463
462
"package" : {
464
463
"pypi_312_package_py3_none_any_62833036" : [
465
464
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" ],
469
472
version = "3.12" ,
470
473
),
471
474
],
472
475
},
473
476
}})
474
477
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.
478
478
"pypi_312_package_py3_none_any_62833036" : {
479
479
"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" ],
482
490
"filename" : "package-0.7.0-py3-none-any.whl" ,
483
491
"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`
486
492
"requirement" : "package[extra]==0.7.0" ,
487
493
"sha256" : "62833036cbaf4641d66ae94c61c0446890a91b2c0d153946583a0ebe04877a76" ,
488
- "urls" : ["https://example.com/package-0.7.0-py3-none-any.whl" ],
494
+ "urls" : ["https://example.com/package/package -0.7.0-py3-none-any.whl" ],
489
495
},
490
496
})
491
497
pypi .whl_mods ().contains_exactly ({})
0 commit comments