File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ def main(argv: Sequence[str] | None = None) -> int:
8989 basename = os .path .basename (filename )
9090
9191 # core metadata backfill
92- if has_core_metadata :
92+ if filename in has_core_metadata :
9393 if basename in on_pypi :
9494 raise AssertionError (f"{ basename } : already on pypi?" )
9595 elif basename in seen :
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ def test_make_info_empty_wheel_metadata(tmp_path):
3131 assert ret == {
3232 "filename" : "a-1-py3-none-any.whl" ,
3333 "hash" : "sha256=64f7f4664408d711c17ad28c1d3ba7dd155501e67c8632fafc8a525ba3ebc527" ,
34+ "core_metadata" : "sha256=64f7f4664408d711c17ad28c1d3ba7dd155501e67c8632fafc8a525ba3ebc527" ,
3435 "upload_timestamp" : mock .ANY ,
3536 "uploaded_by" : re_assert .Matches (r"^git@[a-f0-9]{7}" ),
3637 }
@@ -57,6 +58,7 @@ def test_make_info_full_wheel_metadata(tmp_path):
5758 "jsonschema" ,
5859 "packaging (==21.3) ; extra = 'p'" ,
5960 ],
61+ "core_metadata" : "sha256=4e6da08b56614db68d4139aca043731c1fed51496ef168b5be2c67737dfe9f9a" ,
6062 "requires_python" : ">= 3.7, != 3.7.0" ,
6163 "upload_timestamp" : mock .ANY ,
6264 "uploaded_by" : re_assert .Matches (r"^git@[a-f0-9]{7}" ),
You can’t perform that action at this time.
0 commit comments