Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deprecation warning for Python 3.7 #1157

Merged
merged 1 commit into from
May 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 17 additions & 0 deletions optimade/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,19 @@
__version__ = "0.16.12"
__api_version__ = "1.1.0"

import sys

if sys.version_info.minor == 7:
import warnings

warnings.filterwarnings(
action="once",
message=r"v0\.17 of the `optimade` package.*",
category=DeprecationWarning,
append=False,
)
warnings.warn(
"v0.17 of the `optimade` package will be the last to support Python 3.7. "
"Please upgrade to Python 3.8+ to use v0.18 and later versions of `optimade`.",
DeprecationWarning,
)