Skip to content

Commit 3d0106d

Browse files
authored
Merge pull request #1608 from Anselmoo/Anselmoo/issue1607
build: 🔒 Warning for the end of support for `Python 3.8` is approaching
2 parents 88280d0 + f156f42 commit 3d0106d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

spectrafit/__init__.py

+19
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,25 @@
33
!!! info "About Versioning"
44
55
SpectraFit uses [Semantic Versioning](https://semver.org/).
6+
7+
!!! warning "About Python Versions"
8+
9+
Currently, SpectraFit only supports Python 3.8 and above. Soon, Python 3.8
10+
will be deprecated in favor of Python 3.9 and above, see also
11+
[Release Schedule](https://devguide.python.org/versions/#end-of-life-branches).
612
"""
713

14+
import sys
15+
import warnings
16+
17+
18+
if sys.version_info[:2] == (3, 8):
19+
warnings.warn(
20+
"Support for Python 3.8 is approaching its end-of-life. "
21+
"Please consider upgrading to Python 3.9 or newer. "
22+
"For more details, see: "
23+
"https://devguide.python.org/versions/#end-of-life-branches.",
24+
DeprecationWarning,
25+
)
26+
827
__version__ = "1.0.4"

0 commit comments

Comments
 (0)