Skip to content

Commit

Permalink
Collect metadata for eth-hash>=0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
bwoodsend authored and rokm committed Jan 17, 2024
1 parent 6e8323d commit 1b5deb0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/688.update.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Collect package metadata for ``eth-hash`` (fixes ``PackageNotFoundError``).
1 change: 1 addition & 0 deletions requirements-test-libraries.txt
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ langchain==0.1.0
seedir==0.4.2
cel-python==0.1.5
pygwalker==0.4.2
eth-hash==0.6.0

# ------------------- Platform (OS) specifics

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# ------------------------------------------------------------------

from PyInstaller.utils.hooks import collect_submodules
from PyInstaller.utils.hooks import collect_submodules, copy_metadata, is_module_satisfies

# The ``eth_hash.utils.load_backend`` function does a dynamic import.
hiddenimports = collect_submodules('eth_hash.backends')

# As of eth-hash 0.6.0, it uses importlib.metadata.version() set its __version__ attribute
if is_module_satisfies("eth-hash >= 0.6.0"):
datas = copy_metadata("eth-hash")

0 comments on commit 1b5deb0

Please sign in to comment.