From 61397990a75ecec0f918f48808a4d91f020747eb Mon Sep 17 00:00:00 2001 From: ankitlade12 Date: Sat, 7 Feb 2026 10:11:27 -0600 Subject: [PATCH 1/5] [MNT] add support for python 3.14 (#890) --- .circleci/config.yml | 15 +++++++++++++++ docs/whats_new/v_190.rst | 2 ++ tox.ini | 5 +++++ 3 files changed, 22 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4df23b66b..ab2f30308 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -145,6 +145,19 @@ jobs: command: | tox -e py313 + test_feature_engine_py314: + docker: + - image: cimg/python:3.14.0 + working_directory: ~/project + steps: + - checkout: + path: ~/project + - *prepare_tox + - run: + name: Run tests (Python 3.14) + command: | + tox -e py314 + # ------------------------ # Quality checks @@ -250,6 +263,7 @@ workflows: - test_feature_engine_py312_pandas230 - test_feature_engine_py312_pandas300 - test_feature_engine_py313 + - test_feature_engine_py314 - test_style - test_docs - test_type @@ -270,6 +284,7 @@ workflows: - test_feature_engine_py312_pandas230 - test_feature_engine_py312_pandas300 - test_feature_engine_py313 + - test_feature_engine_py314 - test_style - test_docs - test_type diff --git a/docs/whats_new/v_190.rst b/docs/whats_new/v_190.rst index 8f2925946..8e4195d64 100644 --- a/docs/whats_new/v_190.rst +++ b/docs/whats_new/v_190.rst @@ -9,6 +9,7 @@ Deployed: 27th Aug 2025 Contributors ~~~~~~~~~~~~ +- `ankitlade12 `_ - `Claudio Salvatore Arcidiacono `_ - `Franz Király `_ - `Sancho Luijten `_ @@ -44,6 +45,7 @@ Code maintenance - Migrated various config files to pyproject.toml. (`Franz Király `_) - Added support for Python 3.13. +- Added support for Python 3.14. Docs ~~~~ diff --git a/tox.ini b/tox.ini index b09a57c6c..c31b3edd1 100644 --- a/tox.ini +++ b/tox.ini @@ -8,6 +8,7 @@ envlist = py312-pandas230 py312-pandas300 py313 + py314 codecov docs stylechecks @@ -43,6 +44,10 @@ deps = deps = .[tests] +[testenv:py314] +deps = + .[tests] + # ------------------------- # scikit-learn matrix From e031ffca1fd8c8ee4dc9c902f62d8ba34ec73206 Mon Sep 17 00:00:00 2001 From: ankitlade12 Date: Sat, 7 Feb 2026 10:22:37 -0600 Subject: [PATCH 2/5] [FIX] relax error message assertion in datetime tests for py314 compatibility --- tests/test_datetime/test_datetime_features.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/test_datetime/test_datetime_features.py b/tests/test_datetime/test_datetime_features.py index 456f41e84..5f9131724 100644 --- a/tests/test_datetime/test_datetime_features.py +++ b/tests/test_datetime/test_datetime_features.py @@ -334,10 +334,7 @@ def test_extract_features_from_different_timezones(): pd.DataFrame({"time_hour": [7, 8, 9, 14, 15, 16]}), check_dtype=False, ) - exp_err_msg = ( - "Tz-aware datetime.datetime cannot be converted to datetime64 " - "unless utc=True" - ) + exp_err_msg = "cannot be converted to datetime64 unless utc=True" with pytest.raises(ValueError) as errinfo: assert DatetimeFeatures( variables="time", features_to_extract=["hour"], utc=False From 7e3a45325052ed031b4c92a9df948b22a43c1e5c Mon Sep 17 00:00:00 2001 From: ankitlade12 Date: Sat, 7 Feb 2026 10:23:43 -0600 Subject: [PATCH 3/5] [FIX] make localized timezone tests more robust --- tests/test_datetime/test_datetime_features.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/test_datetime/test_datetime_features.py b/tests/test_datetime/test_datetime_features.py index 5f9131724..38541cd4a 100644 --- a/tests/test_datetime/test_datetime_features.py +++ b/tests/test_datetime/test_datetime_features.py @@ -370,13 +370,13 @@ def test_extract_features_from_localized_tz_variables(): tz_df = pd.DataFrame( { "date_var": [ - "2018-10-28 01:30:00", - "2018-10-28 02:00:00", - "2018-10-28 02:30:00", - "2018-10-28 02:00:00", - "2018-10-28 02:30:00", - "2018-10-28 03:00:00", - "2018-10-28 03:30:00", + "2018-06-15 01:30:00", + "2018-06-15 02:00:00", + "2018-06-15 02:30:00", + "2018-06-15 02:00:00", + "2018-06-15 02:30:00", + "2018-06-15 03:00:00", + "2018-06-15 03:30:00", ] } ) From f9eca46885e156e414cc462614b38c162767e88b Mon Sep 17 00:00:00 2001 From: ankitlade12 Date: Sat, 7 Feb 2026 10:31:03 -0600 Subject: [PATCH 4/5] [MNT] add tzdata dependency and py314 classifier --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 92df8246a..30efe21e6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,6 +26,7 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", ] dynamic = ["version"] @@ -50,6 +51,7 @@ tests = [ "flake8>=3.9.2", "isort>=5.8.0", "mypy>=0.740", + "tzdata", ] [project.urls] From ae836035f6f70853fe11355efa05ec1c88874ec0 Mon Sep 17 00:00:00 2001 From: Soledad Galli Date: Sun, 8 Feb 2026 08:18:08 -0500 Subject: [PATCH 5/5] revert file to original --- docs/whats_new/v_190.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/whats_new/v_190.rst b/docs/whats_new/v_190.rst index 8e4195d64..8f2925946 100644 --- a/docs/whats_new/v_190.rst +++ b/docs/whats_new/v_190.rst @@ -9,7 +9,6 @@ Deployed: 27th Aug 2025 Contributors ~~~~~~~~~~~~ -- `ankitlade12 `_ - `Claudio Salvatore Arcidiacono `_ - `Franz Király `_ - `Sancho Luijten `_ @@ -45,7 +44,6 @@ Code maintenance - Migrated various config files to pyproject.toml. (`Franz Király `_) - Added support for Python 3.13. -- Added support for Python 3.14. Docs ~~~~