hook-keyring.py 888 B

12345678910111213141516171819
  1. #-----------------------------------------------------------------------------
  2. # Copyright (c) 2014-2021, PyInstaller Development Team.
  3. #
  4. # Distributed under the terms of the GNU General Public License (version 2
  5. # or later) with exception for distributing the bootloader.
  6. #
  7. # The full license is in the file COPYING.txt, distributed with this software.
  8. #
  9. # SPDX-License-Identifier: (GPL-2.0-or-later WITH Bootloader-exception)
  10. #-----------------------------------------------------------------------------
  11. from PyInstaller.utils.hooks import collect_submodules, copy_metadata
  12. # Collect backends
  13. hiddenimports = collect_submodules('keyring.backends')
  14. # Keyring performs backend plugin discovery using setuptools entry points, which are listed in the metadata. Therefore,
  15. # we need to copy the metadata, otherwise no backends will be found at run-time.
  16. datas = copy_metadata('keyring')