Skip to content

Commit

Permalink
Deprecation warning for python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ADBond committed Nov 13, 2024
1 parent 2f67811 commit f25bcd3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions splink/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from sys import version_info
from typing import TYPE_CHECKING
from warnings import warn

from splink.internals.blocking_rule_library import block_on
from splink.internals.column_expression import ColumnExpression
Expand All @@ -17,6 +19,19 @@
from splink.internals.duckdb.database_api import DuckDBAPI
from splink.internals.spark.database_api import SparkAPI

if version_info.minor == 8:
warn(
(
"Python 3.8 has reached end-of-life. "
"Future releases of Splink may no longer be compatible with "
"this python version.\n"
"Please consider upgrading your python version if you wish "
"to continue to be able to install the latest version of Splink."
),
category=DeprecationWarning,
stacklevel=2,
)


# Use getarr to make the error appear at the point of use
def __getattr__(name):
Expand Down

0 comments on commit f25bcd3

Please sign in to comment.