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..b028ba5 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", ] @@ -21,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", @@ -46,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" 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