mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-02 11:49:23 +00:00
feat(ingest): add deprecation warning for Python 3.6 (#5519)
This commit is contained in:
parent
c31e380489
commit
4f93aaa3a7
@ -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,
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user