We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 729d2ad commit 9048578Copy full SHA for 9048578
optimade/__init__.py
@@ -4,17 +4,18 @@
4
5
import sys
6
7
-
8
-class OptimadeDeprecationWarning(Warning):
9
- """Special deprecation warning"""
10
11
12
if sys.version_info.minor == 6:
13
# Python 3.6
14
import warnings
15
+ warnings.filterwarnings(
+ action="once",
+ message=r"v0\.14 of the `optimade` package.*",
+ category=DeprecationWarning,
+ append=False,
16
+ )
17
warnings.warn(
18
"v0.14 of the `optimade` package will be the last to support Python 3.6. "
19
"Please upgrade to Python 3.7+ to use v0.15 and later versions of `optimade`.",
- OptimadeDeprecationWarning,
20
+ DeprecationWarning,
21
)
0 commit comments