From d561218b9e0ef44a51eacda1b8d37695fe2b1de6 Mon Sep 17 00:00:00 2001 From: rileyh Date: Tue, 22 Sep 2026 18:24:58 +0000 Subject: [PATCH 1/3] [#231] Drop support for Python 3.10 Python 3.10 is reaching end-of-life very soon. --- .github/workflows/docker-build.yml | 2 +- Dockerfile | 2 +- README.md | 12 ++++++------ pyproject.toml | 3 +-- sphinx-docs/changelog.md | 7 ++++++- sphinx-docs/installation.md | 2 +- 6 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index e85fb0d..f22e6bc 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - python_version: ["3.10", "3.11", "3.12"] + python_version: ["3.11", "3.12"] hlink_extras: ["dev", "dev,lightgbm,xgboost"] runs-on: ubuntu-latest diff --git a/Dockerfile b/Dockerfile index 6f73a45..eed4f0d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -ARG PYTHON_VERSION=3.10 +ARG PYTHON_VERSION=3.11 FROM python:${PYTHON_VERSION}-bookworm ARG HLINK_EXTRAS=dev diff --git a/README.md b/README.md index 38b54c1..aec113e 100755 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Wellington, J., R. Harper, and K.J. Thompson. 2022. "hlink." https://github.com/ hlink requires -- Python 3.10, 3.11, or 3.12 +- Python 3.11 or 3.12 - Java 8 or greater for integration with PySpark You can install the newest version of the Python package directly from PyPI with pip: @@ -22,9 +22,9 @@ You can install the newest version of the Python package directly from PyPI with pip install hlink ``` -We do our best to make hlink compatible with Python 3.10-3.12. If you have a +We do our best to make hlink compatible with Python 3.11-3.12. If you have a problem using hlink on one of these versions of Python, please open an issue -through GitHub. Versions of Python older than 3.10 are not supported. +through GitHub. Versions of Python older than 3.11 are not supported. Note that PySpark 3.5 does not yet officially support Python 3.12. If you encounter PySpark-related import errors while running hlink on Python 3.12, try @@ -35,9 +35,9 @@ encounter PySpark-related import errors while running hlink on Python 3.12, try should fix some import errors in PySpark. We install setuptools in our development and test dependencies so that our tests work on Python 3.12. -- Downgrading Python to 3.10 or 3.11. PySpark officially supports these - versions of Python. So you should have better chances getting PySpark to work - well on Python 3.10 or 3.11. +- Downgrading Python to 3.11. PySpark officially supports this + version of Python. So you should have better chances getting PySpark to work + well on Python 3.11. ### Additional Machine Learning Algorithms diff --git a/pyproject.toml b/pyproject.toml index f5ca849..807f5c1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,12 +7,11 @@ name = "hlink" version = "4.2.2" description = "Fast supervised pyspark record linkage software" readme = "README.md" -requires-python = ">=3.10" +requires-python = ">=3.11" license = "MPL-2.0-no-copyleft-exception" license-files = ["LICENSE.txt"] classifiers = [ "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", ] diff --git a/sphinx-docs/changelog.md b/sphinx-docs/changelog.md index b87f89b..7841181 100644 --- a/sphinx-docs/changelog.md +++ b/sphinx-docs/changelog.md @@ -1,7 +1,12 @@ # Changelog The format of this changelog is based on [Keep A Changelog][keep-a-changelog]. -Hlink adheres to semantic versioning as much as possible. + +## Unreleased + +### Changed + +* Dropped support for Python 3.10 because it has reached end-of-life. ## v4.2.2 (2026-01-20) diff --git a/sphinx-docs/installation.md b/sphinx-docs/installation.md index 81dc327..68c60fb 100644 --- a/sphinx-docs/installation.md +++ b/sphinx-docs/installation.md @@ -4,7 +4,7 @@ Make sure that you have each of these installed on your system before running hlink. -- Python 3.10, 3.11, or 3.12 +- Python 3.11 or 3.12 - Java 8 or greater, used for integration with [Apache Spark](https://spark.apache.org) via the pyspark package From 9b40891b4fedcac90648e5689441011c2e9a5e58 Mon Sep 17 00:00:00 2001 From: rileyh Date: Tue, 22 Sep 2026 19:01:57 +0000 Subject: [PATCH 2/3] Pin Pandas to < 3 Pandas version 3 is causing some tests to fail. It looks like some pretty straight-forward changes, but should verify that they don't affect any hlink calculations before using version 3. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 807f5c1..134387a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,7 @@ dependencies = [ "ipython>=8.3.0", "Jinja2>=3.1.0", "numpy>=1.22.0", - "pandas>=1.4.0", + "pandas>=1.4.0,<3", "pyspark~=3.5.0", "scikit-learn>=1.1.0", "toml>=0.10.0", From 42daaa59ad1249eac6c9e81439a093fd02c94e69 Mon Sep 17 00:00:00 2001 From: rileyh Date: Tue, 22 Sep 2026 19:24:31 +0000 Subject: [PATCH 3/3] Pin xgboost to < 3.3 Version 3.3 drops support for Python 3.11 and causes the tests to fail on Python 3.12. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 134387a..b028ba5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,7 +45,7 @@ dev = [ ] docs = ["sphinx", "recommonmark"] lightgbm = ["synapseml>=1.0"] -xgboost = ["xgboost>=2.0", "pyarrow>=4.0"] +xgboost = ["xgboost>=2.0,<3.3", "pyarrow>=4.0"] [project.scripts] hlink = "hlink.scripts.main:cli"