__init__.py 748 B

1234567891011121314151617181920212223242526272829
  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 (
  7. __author__,
  8. __copyright__,
  9. __version__,
  10. )
  11. from cryptography.utils import CryptographyDeprecationWarning
  12. __all__ = [
  13. "__version__",
  14. "__author__",
  15. "__copyright__",
  16. ]
  17. if sys.version_info[:2] == (3, 6):
  18. warnings.warn(
  19. "Python 3.6 is no longer supported by the Python core team. "
  20. "Therefore, support for it is deprecated in cryptography and will be"
  21. " removed in a future release.",
  22. CryptographyDeprecationWarning,
  23. stacklevel=2,
  24. )