hook-jsonschema.py 828 B

1234567891011121314151617181920
  1. # ------------------------------------------------------------------
  2. # Copyright (c) 2020 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. # This is needed to bundle draft3.json and draft4.json files that come with jsonschema module.
  13. # NOTE: with jsonschema >= 4.18.0, the specification files are part of jsonschema_specifications package, and are
  14. # handled by the corresponding hook-jsonschema.
  15. from PyInstaller.utils.hooks import collect_data_files, copy_metadata
  16. datas = collect_data_files('jsonschema')
  17. datas += copy_metadata('jsonschema')