Skip to content

Commit

Permalink
Hooks: Add hooks to support current web3.
Browse files Browse the repository at this point in the history
  • Loading branch information
bjones1 committed Aug 21, 2018
1 parent e4ab403 commit 381d069
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 10 deletions.
3 changes: 0 additions & 3 deletions PyInstaller/hooks/hook-eth_abi.py
Expand Up @@ -7,9 +7,6 @@
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------

# Hook for the eth-abi package: https://pypi.python.org/pypi/eth-abi
# Tested with eth-utils 0.5.0 and Python 3.5.2, on Ubuntu Linux x64

from PyInstaller.utils.hooks import copy_metadata

datas = copy_metadata("eth_abi")
12 changes: 12 additions & 0 deletions PyInstaller/hooks/hook-eth_account.py
@@ -0,0 +1,12 @@
#-----------------------------------------------------------------------------
# Copyright (c) 2018-2018, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------

from PyInstaller.utils.hooks import copy_metadata

datas = copy_metadata("eth_account")
12 changes: 12 additions & 0 deletions PyInstaller/hooks/hook-eth_keyfile.py
@@ -0,0 +1,12 @@
#-----------------------------------------------------------------------------
# Copyright (c) 2018-2018, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License with exception
# for distributing bootloader.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------

from PyInstaller.utils.hooks import copy_metadata

datas = copy_metadata("eth_keyfile")
3 changes: 0 additions & 3 deletions PyInstaller/hooks/hook-eth_utils.py
Expand Up @@ -7,9 +7,6 @@
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------

# Hook for the eth-utils package: https://pypi.python.org/pypi/eth-utils
# Tested with eth-utils 0.8.1 and Python 3.5.2, on Ubuntu Linux x64

from PyInstaller.utils.hooks import copy_metadata

datas = copy_metadata("eth_utils")
3 changes: 0 additions & 3 deletions PyInstaller/hooks/hook-web3.py
Expand Up @@ -7,9 +7,6 @@
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------

# Hook for the web3 package: https://pypi.python.org/pypi/web3
# Tested with web3 3.16.5 and Python 3.5.2, on Ubuntu Linux x64

from PyInstaller.utils.hooks import copy_metadata

datas = copy_metadata("web3")
1 change: 1 addition & 0 deletions tests/functional/test_libraries.py
Expand Up @@ -810,6 +810,7 @@ def test_uvloop(pyi_builder):
def test_web3(pyi_builder):
pyi_builder.test_source("import web3")


@importorskip('phonenumbers')
def test_phonenumbers(pyi_builder):
pyi_builder.test_source("""
Expand Down
4 changes: 3 additions & 1 deletion tests/requirements-libraries.txt
Expand Up @@ -7,7 +7,6 @@
# these hooks.
#
Django==1.8.18 # pyup: ignore
web3==3.16.5 # pyup: ignore
requests==2.15.1 # pyup: ignore
# The gevent hook only supports an old version, which lacks wheels for
# Python 3.7.
Expand Down Expand Up @@ -94,3 +93,6 @@ twisted==18.7.0; python_version == '2.7'
# Python 3.4 wheel.
pywin32==223; python_version != '3.4' and sys_platform == 'win32'
pypiwin32==219; python_version == '3.4' and sys_platform == 'win32' # pyup: ignore

# Web3 supports Python 3.5 and up.
web3==4.5.0; python_version >= '3.5'

0 comments on commit 381d069

Please sign in to comment.