feat(ingest): add deprecation warning for Python 3.6 (#5519)

This commit is contained in:
Harshal Sheth 2022-08-01 17:20:41 +00:00 committed by GitHub
parent c31e380489
commit 4f93aaa3a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,6 @@
import sys
import warnings
# Published at https://pypi.org/project/acryl-datahub/.
__package_name__ = "acryl-datahub"
__version__ = "0.0.0.dev0"
@ -11,3 +14,11 @@ def nice_version_name() -> str:
if is_dev_mode():
return "unavailable (installed in develop mode)"
return __version__
if sys.version_info < (3, 7):
warnings.warn(
"DataHub will require Python 3.7 or newer in a future release. "
"Please upgrade your Python version to continue using DataHub.",
FutureWarning,
)