-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert all CRLF files to LF endings
- Loading branch information
Showing
11 changed files
with
650 additions
and
650 deletions.
There are no files selected for viewing
34 changes: 17 additions & 17 deletions
34
_pyinstaller_hooks_contrib/stdhooks/hook-HtmlTestRunner.py
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,17 +1,17 @@ | ||
# ------------------------------------------------------------------ | ||
# Copyright (c) 2020 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, distributed with | ||
# this software. | ||
# | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# ------------------------------------------------------------------ | ||
|
||
# Hook for HtmlTestRunner: https://pypi.org/project/html-testRunner//1.2.1 | ||
|
||
from PyInstaller.utils.hooks import collect_data_files | ||
|
||
datas = collect_data_files('HtmlTestRunner') | ||
# ------------------------------------------------------------------ | ||
# Copyright (c) 2020 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, distributed with | ||
# this software. | ||
# | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# ------------------------------------------------------------------ | ||
|
||
# Hook for HtmlTestRunner: https://pypi.org/project/html-testRunner//1.2.1 | ||
|
||
from PyInstaller.utils.hooks import collect_data_files | ||
|
||
datas = collect_data_files('HtmlTestRunner') |
28 changes: 14 additions & 14 deletions
28
_pyinstaller_hooks_contrib/stdhooks/hook-customtkinter.py
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,14 +1,14 @@ | ||
# ------------------------------------------------------------------ | ||
# Copyright (c) 2023 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, distributed with | ||
# this software. | ||
# | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# ------------------------------------------------------------------ | ||
from PyInstaller.utils.hooks import collect_data_files | ||
|
||
datas = collect_data_files("customtkinter") | ||
# ------------------------------------------------------------------ | ||
# Copyright (c) 2023 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, distributed with | ||
# this software. | ||
# | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# ------------------------------------------------------------------ | ||
from PyInstaller.utils.hooks import collect_data_files | ||
|
||
datas = collect_data_files("customtkinter") |
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,18 +1,18 @@ | ||
#----------------------------------------------------------------------------- | ||
# Copyright (c) 2005-2020, PyInstaller Development Team. | ||
# | ||
#----------------------------------------------------------------------------- | ||
# Copyright (c) 2005-2020, 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, distributed with | ||
# this software. | ||
# | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
#----------------------------------------------------------------------------- | ||
""" | ||
Collects in-repo dask.yaml and dask-schema.yaml data files. | ||
""" | ||
|
||
from PyInstaller.utils.hooks import collect_data_files | ||
|
||
datas = collect_data_files('dask', includes=['*.yml', '*.yaml']) | ||
#----------------------------------------------------------------------------- | ||
""" | ||
Collects in-repo dask.yaml and dask-schema.yaml data files. | ||
""" | ||
|
||
from PyInstaller.utils.hooks import collect_data_files | ||
|
||
datas = collect_data_files('dask', includes=['*.yml', '*.yaml']) |
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,15 +1,15 @@ | ||
# ------------------------------------------------------------------ | ||
# Copyright (c) 2005-2020 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, distributed with | ||
# this software. | ||
# | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# ------------------------------------------------------------------ | ||
|
||
from PyInstaller.utils.hooks import collect_data_files | ||
|
||
datas = collect_data_files('gmplot') | ||
# ------------------------------------------------------------------ | ||
# Copyright (c) 2005-2020 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, distributed with | ||
# this software. | ||
# | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# ------------------------------------------------------------------ | ||
|
||
from PyInstaller.utils.hooks import collect_data_files | ||
|
||
datas = collect_data_files('gmplot') |
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,15 +1,15 @@ | ||
# ------------------------------------------------------------------ | ||
# Copyright (c) 2022 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, distributed with | ||
# this software. | ||
# | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
#----------------------------------------------------------------------------- | ||
|
||
from PyInstaller.utils.hooks import collect_data_files | ||
|
||
datas = collect_data_files('ldfparser') | ||
# ------------------------------------------------------------------ | ||
# Copyright (c) 2022 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, distributed with | ||
# this software. | ||
# | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
#----------------------------------------------------------------------------- | ||
|
||
from PyInstaller.utils.hooks import collect_data_files | ||
|
||
datas = collect_data_files('ldfparser') |
28 changes: 14 additions & 14 deletions
28
_pyinstaller_hooks_contrib/stdhooks/hook-minecraft_launcher_lib.py
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,14 +1,14 @@ | ||
# ------------------------------------------------------------------ | ||
# Copyright (c) 2023 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, distributed with | ||
# this software. | ||
# | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# ------------------------------------------------------------------ | ||
from PyInstaller.utils.hooks import collect_data_files | ||
|
||
datas = collect_data_files("minecraft_launcher_lib") | ||
# ------------------------------------------------------------------ | ||
# Copyright (c) 2023 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, distributed with | ||
# this software. | ||
# | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# ------------------------------------------------------------------ | ||
from PyInstaller.utils.hooks import collect_data_files | ||
|
||
datas = collect_data_files("minecraft_launcher_lib") |
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 @@ | ||
# ------------------------------------------------------------------ | ||
# Copyright (c) 2023 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, distributed with | ||
# this software. | ||
# | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# ------------------------------------------------------------------ | ||
hiddenimports = ["nbt.nbt", "nbt.world", "nbt.region", "nbt.chunk"] | ||
# ------------------------------------------------------------------ | ||
# Copyright (c) 2023 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, distributed with | ||
# this software. | ||
# | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# ------------------------------------------------------------------ | ||
hiddenimports = ["nbt.nbt", "nbt.world", "nbt.region", "nbt.chunk"] |
44 changes: 22 additions & 22 deletions
44
_pyinstaller_hooks_contrib/stdhooks/hook-parsedatetime.py
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,29 +1,29 @@ | ||
#----------------------------------------------------------------------------- | ||
# Copyright (c) 2005-2020, PyInstaller Development Team. | ||
# | ||
#----------------------------------------------------------------------------- | ||
# Copyright (c) 2005-2020, 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, distributed with | ||
# this software. | ||
# | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
#----------------------------------------------------------------------------- | ||
""" | ||
Fixes https://github.com/pyinstaller/pyinstaller/issues/4995 | ||
Modules under parsedatetime.pdt_locales.* are lazily loaded using __import__. | ||
But they are conviniently listed in parsedatetime.pdt_locales.locales. | ||
Tested on versions: | ||
- 1.1.1 | ||
- 1.5 | ||
- 2.0 | ||
- 2.6 (latest) | ||
""" | ||
|
||
from PyInstaller.utils.hooks import collect_submodules | ||
|
||
hiddenimports = collect_submodules("parsedatetime.pdt_locales") | ||
#----------------------------------------------------------------------------- | ||
""" | ||
Fixes https://github.com/pyinstaller/pyinstaller/issues/4995 | ||
Modules under parsedatetime.pdt_locales.* are lazily loaded using __import__. | ||
But they are conviniently listed in parsedatetime.pdt_locales.locales. | ||
Tested on versions: | ||
- 1.1.1 | ||
- 1.5 | ||
- 2.0 | ||
- 2.6 (latest) | ||
""" | ||
|
||
from PyInstaller.utils.hooks import collect_submodules | ||
|
||
hiddenimports = collect_submodules("parsedatetime.pdt_locales") |
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,50 +1,50 @@ | ||
# ------------------------------------------------------------------ | ||
# Copyright (c) 2023 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, distributed with | ||
# this software. | ||
# | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# ------------------------------------------------------------------ | ||
import os | ||
import sys | ||
|
||
# see https://github.com/giampaolo/psutil/blob/release-5.9.5/psutil/_common.py#L82 | ||
WINDOWS = os.name == "nt" | ||
LINUX = sys.platform.startswith("linux") | ||
MACOS = sys.platform.startswith("darwin") | ||
FREEBSD = sys.platform.startswith(("freebsd", "midnightbsd")) | ||
OPENBSD = sys.platform.startswith("openbsd") | ||
NETBSD = sys.platform.startswith("netbsd") | ||
BSD = FREEBSD or OPENBSD or NETBSD | ||
SUNOS = sys.platform.startswith(("sunos", "solaris")) | ||
AIX = sys.platform.startswith("aix") | ||
|
||
excludedimports = [ | ||
"psutil._pslinux", | ||
"psutil._pswindows", | ||
"psutil._psosx", | ||
"psutil._psbsd", | ||
"psutil._pssunos", | ||
"psutil._psaix", | ||
] | ||
|
||
# see https://github.com/giampaolo/psutil/blob/release-5.9.5/psutil/__init__.py#L97 | ||
if LINUX: | ||
excludedimports.remove("psutil._pslinux") | ||
elif WINDOWS: | ||
excludedimports.remove("psutil._pswindows") | ||
# see https://github.com/giampaolo/psutil/blob/release-5.9.5/psutil/_common.py#L856 | ||
# This will exclude `curses` for windows | ||
excludedimports.append("curses") | ||
elif MACOS: | ||
excludedimports.remove("psutil._psosx") | ||
elif BSD: | ||
excludedimports.remove("psutil._psbsd") | ||
elif SUNOS: | ||
excludedimports.remove("psutil._pssunos") | ||
elif AIX: | ||
excludedimports.remove("psutil._psaix") | ||
# ------------------------------------------------------------------ | ||
# Copyright (c) 2023 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, distributed with | ||
# this software. | ||
# | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# ------------------------------------------------------------------ | ||
import os | ||
import sys | ||
|
||
# see https://github.com/giampaolo/psutil/blob/release-5.9.5/psutil/_common.py#L82 | ||
WINDOWS = os.name == "nt" | ||
LINUX = sys.platform.startswith("linux") | ||
MACOS = sys.platform.startswith("darwin") | ||
FREEBSD = sys.platform.startswith(("freebsd", "midnightbsd")) | ||
OPENBSD = sys.platform.startswith("openbsd") | ||
NETBSD = sys.platform.startswith("netbsd") | ||
BSD = FREEBSD or OPENBSD or NETBSD | ||
SUNOS = sys.platform.startswith(("sunos", "solaris")) | ||
AIX = sys.platform.startswith("aix") | ||
|
||
excludedimports = [ | ||
"psutil._pslinux", | ||
"psutil._pswindows", | ||
"psutil._psosx", | ||
"psutil._psbsd", | ||
"psutil._pssunos", | ||
"psutil._psaix", | ||
] | ||
|
||
# see https://github.com/giampaolo/psutil/blob/release-5.9.5/psutil/__init__.py#L97 | ||
if LINUX: | ||
excludedimports.remove("psutil._pslinux") | ||
elif WINDOWS: | ||
excludedimports.remove("psutil._pswindows") | ||
# see https://github.com/giampaolo/psutil/blob/release-5.9.5/psutil/_common.py#L856 | ||
# This will exclude `curses` for windows | ||
excludedimports.append("curses") | ||
elif MACOS: | ||
excludedimports.remove("psutil._psosx") | ||
elif BSD: | ||
excludedimports.remove("psutil._psbsd") | ||
elif SUNOS: | ||
excludedimports.remove("psutil._pssunos") | ||
elif AIX: | ||
excludedimports.remove("psutil._psaix") |
Oops, something went wrong.