Skip to content

Commit

Permalink
feat: remove the hashes argument from PackageFinder.build_evaluator
Browse files Browse the repository at this point in the history
… that is deprecated before

Signed-off-by: Frost Ming <me@frostming.com>
  • Loading branch information
frostming committed Jan 15, 2024
1 parent fc1757b commit 4c8b4bd
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/unearth/finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import itertools
import os
import pathlib
import warnings
from tempfile import TemporaryDirectory
from typing import TYPE_CHECKING, Iterable, NamedTuple, Sequence
from urllib.parse import urljoin
Expand Down Expand Up @@ -142,10 +141,7 @@ def add_find_links(self, url: str) -> None:
self.sources.append({"url": url, "type": "find_links"})

def build_evaluator(
self,
package_name: str,
allow_yanked: bool = False,
hashes: dict[str, list[str]] | None = None,
self, package_name: str, allow_yanked: bool = False
) -> Evaluator:
"""Build an evaluator for the given package name.
Expand All @@ -156,13 +152,6 @@ def build_evaluator(
Returns:
Evaluator: The evaluator for the given package name
"""
if hashes is not None:
warnings.warn(
"The evaluator no longer validates hashes, "
"please remove the hashes argument",
FutureWarning,
stacklevel=2,
)
format_control = FormatControl(
no_binary=self.no_binary, only_binary=self.only_binary
)
Expand Down

0 comments on commit 4c8b4bd

Please sign in to comment.