__init__.py 674 B

12345678910111213141516171819202122232425262728
  1. # flake8: noqa
  2. import logging
  3. import sys
  4. from qtpy import QT_VERSION
  5. __appname__ = "labelme"
  6. # Semantic Versioning 2.0.0: https://semver.org/
  7. # 1. MAJOR version when you make incompatible API changes;
  8. # 2. MINOR version when you add functionality in a backwards-compatible manner;
  9. # 3. PATCH version when you make backwards-compatible bug fixes.
  10. # e.g., 1.0.0a0, 1.0.0a1, 1.0.0b0, 1.0.0rc0, 1.0.0, 1.0.0.post0
  11. __version__ = "5.2.0.post2"
  12. QT4 = QT_VERSION[0] == "4"
  13. QT5 = QT_VERSION[0] == "5"
  14. del QT_VERSION
  15. PY2 = sys.version[0] == "2"
  16. PY3 = sys.version[0] == "3"
  17. del sys
  18. from labelme.label_file import LabelFile
  19. from labelme import testing
  20. from labelme import utils