Skip to content

Commit

Permalink
Merge pull request #2520 from moj-analytical-services/maint/deprecate…
Browse files Browse the repository at this point in the history
…-3-8

Deprecation warning for python 3.8
  • Loading branch information
ADBond authored Dec 9, 2024
2 parents 0a859ab + 4935da2 commit b9c34ea
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

### Deprecated

- Deprecated support for python `3.8.x` following end of support for that minor version ([#2520](https://github.com/moj-analytical-services/splink/pull/2520))

## [4.0.6] - 2024-12-05

### Added
Expand Down
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 b9c34ea

Please sign in to comment.