Skip to content

Commit

Permalink
Merge pull request AdaCore#714 from enzbang/e3-pypi-closure
Browse files Browse the repository at this point in the history
E3 pypi closure
  • Loading branch information
enzbang authored Apr 4, 2024
2 parents 6eb314e + cbd7d66 commit f333658
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/e3/python/pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def __init__(
*,
data: dict["str", Any],
) -> None:
"""Initialize a pakage metadata object.
"""Initialize a package metadata object.
:param pypi: a PyPIClosure session
:param data: the data as fetched on pypi
Expand All @@ -203,7 +203,10 @@ def __init__(
):
self.versions.append(v)
except Exception:
logger.warning(f"Cannot parse version {version} of {self.name}")
# Many packages uploaded before pip 1.4 had versions that are
# rejected by packaging.version. Do not warn but just log
# the error.
logger.debug(f"Cannot parse version {version} of {self.name}")
logger.debug(f"Load package {self.name}")

def __eq__(self, other: Any) -> bool:
Expand Down

0 comments on commit f333658

Please sign in to comment.