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/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] diff --git a/tests/test_datetime/test_datetime_features.py b/tests/test_datetime/test_datetime_features.py index 456f41e84..38541cd4a 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 @@ -373,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", ] } ) 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