metadata.py 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # -*- coding: utf-8 -*-
  2. # Copyright 2018 Joshua Bronson. All Rights Reserved.
  3. #
  4. # This Source Code Form is subject to the terms of the Mozilla Public
  5. # License, v. 2.0. If a copy of the MPL was not distributed with this
  6. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  7. """Define bidict package metadata."""
  8. __version__ = '0.0.0.VERSION_NOT_FOUND'
  9. # _version.py is generated by setuptools_scm (via its `write_to` param, see setup.py)
  10. try:
  11. from ._version import version as __version__ # pylint: disable=unused-import
  12. except (ImportError, ValueError, SystemError): # pragma: no cover
  13. try:
  14. import pkg_resources
  15. except ImportError:
  16. pass
  17. else:
  18. try:
  19. __version__ = pkg_resources.get_distribution('bidict').version
  20. except pkg_resources.DistributionNotFound:
  21. pass
  22. try:
  23. __version_info__ = tuple(int(p) if i < 3 else p for (i, p) in enumerate(__version__.split('.')))
  24. except: # noqa: E722; pragma: no cover; pylint: disable=bare-except
  25. __vesion_info__ = (0, 0, 0, 'PARSE FAILURE: __version__=%s' % __version__)
  26. __author__ = u'Joshua Bronson'
  27. __maintainer__ = u'Joshua Bronson'
  28. __copyright__ = u'Copyright 2018 Joshua Bronson'
  29. __email__ = u'jab@math.brown.edu'
  30. # See: ../docs/thanks.rst
  31. __credits__ = [i.strip() for i in u"""
  32. Joshua Bronson, Michael Arntzenius, Francis Carr, Gregory Ewing, Raymond Hettinger, Jozef Knaperek,
  33. Daniel Pope, Terry Reedy, David Turner, Tom Viner
  34. """.split(u',')]
  35. __description__ = u'Efficient, Pythonic bidirectional map implementation and related functionality'
  36. __keywords__ = 'dict dictionary mapping datastructure bimap bijection bijective ' \
  37. 'injective inverse reverse bidirectional two-way 2-way'
  38. __license__ = u'MPL 2.0'
  39. __status__ = u'Beta'
  40. __url__ = u'https://bidict.readthedocs.io'