hook-sunpy.py 810 B

1234567891011121314151617181920
  1. # ------------------------------------------------------------------
  2. # Copyright (c) 2021 PyInstaller Development Team.
  3. #
  4. # This file is distributed under the terms of the GNU General Public
  5. # License (version 2.0 or later).
  6. #
  7. # The full license is available in LICENSE, distributed with
  8. # this software.
  9. #
  10. # SPDX-License-Identifier: GPL-2.0-or-later
  11. # ------------------------------------------------------------------
  12. from PyInstaller.utils.hooks import collect_data_files, collect_submodules, copy_metadata
  13. hiddenimports = collect_submodules("sunpy", filter=lambda x: "tests" not in x.split("."))
  14. datas = collect_data_files("sunpy", excludes=['**/tests/', '**/test/'])
  15. datas += collect_data_files("drms")
  16. datas += copy_metadata("sunpy")
  17. # Note : sunpy > 3.1.0 comes with it's own hook for running tests.