Skip to content

Commit dc4736e

Browse files
committed
chore: add PyPI stub
Signed-off-by: Ben Selwyn-Smith <[email protected]>
1 parent bf8e9ed commit dc4736e

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/macaron/slsa_analyzer/analyzer.py

+13-2
Original file line numberDiff line numberDiff line change
@@ -1011,8 +1011,19 @@ def get_artifact_hash(
10111011
return maven_registry.get_artifact_hash(purl, hash_algorithm)
10121012

10131013
if purl.type == "pypi":
1014-
# TODO implement
1015-
return None
1014+
# pypi_registry = next(
1015+
# (
1016+
# package_registry
1017+
# for package_registry in PACKAGE_REGISTRIES
1018+
# if isinstance(package_registry, PyPIRegistry)
1019+
# )
1020+
# )
1021+
# if not pypi_registry:
1022+
# return None
1023+
1024+
# Create PyPIJsonAsset (requires component changes from PR 982)
1025+
1026+
pass
10161027

10171028
logger.debug("Purl type '%s' not yet supported for GitHub attestation discovery.", purl.type)
10181029
return None

0 commit comments

Comments
 (0)