-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move PyInstaller hook tests into sub-directory
Move PyInstaller hook test (test_freetype.py and conftest.py) into tests sub-directory. This prevents the test from using the local (source) version of `freetype` instead of the installed one (which contains the shared library); this problem arises with pytest's default `prepend` import mode due to the project's structure (i.e., not using the `src/freetype` layout).
- Loading branch information
Showing
5 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
from os.path import dirname | ||
import os | ||
|
||
|
||
HERE = dirname(__file__) | ||
HERE = os.path.dirname(__file__) | ||
|
||
|
||
def get_hook_dirs(): | ||
return [HERE] | ||
|
||
|
||
def get_test_dirs(): | ||
return [HERE] | ||
return [os.path.join(HERE, 'tests')] |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,7 +109,7 @@ def build_extension(self, ext): | |
author_email='[email protected]', | ||
url='https://github.com/rougier/freetype-py', | ||
python_requires=">=3.7", | ||
packages=['freetype', 'freetype.ft_enums', 'freetype.__pyinstaller'], | ||
packages=['freetype', 'freetype.ft_enums', 'freetype.__pyinstaller', 'freetype.__pyinstaller.tests'], | ||
ext_modules=ext_modules, | ||
zip_safe=False if ext_modules else True, | ||
cmdclass=cmdclass, | ||
|