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

build: 🔒 Warning for the end of support for Python 3.8 is approaching #1608

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions spectrafit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,25 @@
!!! info "About Versioning"

SpectraFit uses [Semantic Versioning](https://semver.org/).

!!! warning "About Python Versions"

Currently, SpectraFit only supports Python 3.8 and above. Soon, Python 3.8
will be deprecated in favor of Python 3.9 and above, see also
[Release Schedule](https://devguide.python.org/versions/#end-of-life-branches).
"""

import sys
import warnings


if sys.version_info[:2] == (3, 8):
warnings.warn(

Check warning on line 19 in spectrafit/__init__.py

View check run for this annotation

Codecov / codecov/patch

spectrafit/__init__.py#L19

Added line #L19 was not covered by tests
"Support for Python 3.8 is approaching its end-of-life. "
"Please consider upgrading to Python 3.9 or newer. "
"For more details, see: "
"https://devguide.python.org/versions/#end-of-life-branches.",
DeprecationWarning,
)

__version__ = "1.0.4"
Loading