Skip to content

Commit

Permalink
Add openpyxl hook
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenrauch committed Jul 20, 2016
1 parent 8689a5d commit 1dbb921
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
15 changes: 15 additions & 0 deletions PyInstaller/hooks/hook-openpyxl.py
@@ -0,0 +1,15 @@
#-----------------------------------------------------------------------------
# Copyright (c) 2013-2016, 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.
#-----------------------------------------------------------------------------

# Hook for the openpyxl module: https://pypi.python.org/pypi/openpyxl
# Tested with openpyxl 2.3.4, Python 2.7, Windows

from PyInstaller.utils.hooks import collect_data_files

datas = collect_data_files('openpyxl')
9 changes: 9 additions & 0 deletions tests/functional/test_libraries.py
Expand Up @@ -347,6 +347,15 @@ def test_numpy(pyi_builder):
""")


@importorskip('openpyxl')
def test_openpyxl(pyi_builder):
pyi_builder.test_source(
"""
# Test the hook to openpyxl
from openpyxl import __version__
""")


@importorskip('pyodbc')
def test_pyodbc(pyi_builder):
pyi_builder.test_source(
Expand Down

0 comments on commit 1dbb921

Please sign in to comment.