__init__.py 781 B

12345678910111213141516171819202122232425
  1. # This file is dual licensed under the terms of the Apache License, Version
  2. # 2.0, and the BSD License. See the LICENSE file in the root of this repository
  3. # for complete details.
  4. import sys
  5. import warnings
  6. from cryptography.__about__ import __author__, __copyright__, __version__
  7. from cryptography.utils import CryptographyDeprecationWarning
  8. __all__ = [
  9. "__version__",
  10. "__author__",
  11. "__copyright__",
  12. ]
  13. if sys.version_info[:2] == (3, 6):
  14. warnings.warn(
  15. "Python 3.6 is no longer supported by the Python core team. "
  16. "Therefore, support for it is deprecated in cryptography. The next "
  17. "release of cryptography (40.0) will be the last to support Python "
  18. "3.6.",
  19. CryptographyDeprecationWarning,
  20. stacklevel=2,
  21. )