Skip to content

Commit

Permalink
feat(ingest): add deprecation warning for Python 3.6 (#5519)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 authored Aug 1, 2022
1 parent c31e380 commit 4f93aaa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions metadata-ingestion/src/datahub/__init__.py
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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,
)

0 comments on commit 4f93aaa

Please sign in to comment.