Skip to content

Commit

Permalink
Collect metadata for eth-keys>=0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rokm committed Jan 17, 2024
1 parent 1b5deb0 commit 1c9b69c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions news/688.new.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Add hook for ``eth_keys`` that collects package metadata for
``eth-keys >= 0.5.0``.
17 changes: 17 additions & 0 deletions src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-eth_keys.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# ------------------------------------------------------------------
# Copyright (c) 2024 PyInstaller Development Team.
#
# This file is distributed under the terms of the GNU General Public
# License (version 2.0 or later).
#
# The full license is available in LICENSE.GPL.txt, distributed with
# this software.
#
# SPDX-License-Identifier: GPL-2.0-or-later
# ------------------------------------------------------------------

from PyInstaller.utils.hooks import copy_metadata, is_module_satisfies

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

0 comments on commit 1c9b69c

Please sign in to comment.