hook-u1db.py 876 B

12345678910111213141516171819202122232425262728293031
  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. """
  13. Pyinstaller hook for u1db module
  14. This hook was tested with:
  15. - u1db 0.1.4 : https://launchpad.net/u1db
  16. - Python 2.7.10
  17. - Linux Debian GNU/Linux unstable (sid)
  18. Test script used for testing:
  19. import u1db
  20. db = u1db.open("mydb1.u1db", create=True)
  21. doc = db.create_doc({"key": "value"}, doc_id="testdoc")
  22. print doc.content
  23. print doc.doc_id
  24. """
  25. from PyInstaller.utils.hooks import collect_data_files
  26. datas = collect_data_files('u1db')