__init__.py 762 B

1234567891011121314151617181920212223242526
  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. from __future__ import annotations
  5. import sys
  6. import warnings
  7. from cryptography import utils
  8. from cryptography.__about__ import __author__, __copyright__, __version__
  9. __all__ = [
  10. "__author__",
  11. "__copyright__",
  12. "__version__",
  13. ]
  14. if sys.version_info[:2] == (3, 7):
  15. warnings.warn(
  16. "Python 3.7 is no longer supported by the Python core team "
  17. "and support for it is deprecated in cryptography. A future "
  18. "release of cryptography will remove support for Python 3.7.",
  19. utils.CryptographyDeprecationWarning,
  20. stacklevel=2,
  21. )