hook-migrate.py 743 B

12345678910111213141516171819
  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. # hook for https://github.com/openstack/sqlalchemy-migrate
  13. # Since v0.12.0 importing migrate requires metadata to resolve __version__
  14. # attribute
  15. from PyInstaller.utils.hooks import copy_metadata, is_module_satisfies
  16. if is_module_satisfies('sqlalchemy-migrate >= 0.12.0'):
  17. datas = copy_metadata('sqlalchemy-migrate')