Skip to content

Commit

Permalink
Convert all CRLF files to LF endings
Browse files Browse the repository at this point in the history
  • Loading branch information
bwoodsend committed Oct 21, 2024
1 parent 599c516 commit 8374416
Show file tree
Hide file tree
Showing 11 changed files with 650 additions and 650 deletions.
34 changes: 17 additions & 17 deletions _pyinstaller_hooks_contrib/stdhooks/hook-HtmlTestRunner.py
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 _pyinstaller_hooks_contrib/stdhooks/hook-customtkinter.py
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")
22 changes: 11 additions & 11 deletions _pyinstaller_hooks_contrib/stdhooks/hook-dask.py
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'])
30 changes: 15 additions & 15 deletions _pyinstaller_hooks_contrib/stdhooks/hook-gmplot.py
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')
30 changes: 15 additions & 15 deletions _pyinstaller_hooks_contrib/stdhooks/hook-ldfparser.py
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 _pyinstaller_hooks_contrib/stdhooks/hook-minecraft_launcher_lib.py
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")
24 changes: 12 additions & 12 deletions _pyinstaller_hooks_contrib/stdhooks/hook-nbt.py
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 _pyinstaller_hooks_contrib/stdhooks/hook-parsedatetime.py
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")
100 changes: 50 additions & 50 deletions _pyinstaller_hooks_contrib/stdhooks/hook-psutil.py
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")
Loading

0 comments on commit 8374416

Please sign in to comment.