From 8cbb0d5345af53154e2566226c3093a2ac4e07f2 Mon Sep 17 00:00:00 2001 From: Faisal Dosani Date: Wed, 11 Sep 2024 11:45:00 -0400 Subject: [PATCH] updating polars version and bumping to 0.13.3 --- datacompy/__init__.py | 2 +- pyproject.toml | 2 +- tests/test_polars.py | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/datacompy/__init__.py b/datacompy/__init__.py index fad85ae6..8dfa816a 100644 --- a/datacompy/__init__.py +++ b/datacompy/__init__.py @@ -18,7 +18,7 @@ Then extended to carry that functionality over to Spark Dataframes. """ -__version__ = "0.13.2" +__version__ = "0.13.3" import platform from warnings import warn diff --git a/pyproject.toml b/pyproject.toml index 633dc018..63a5464e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ maintainers = [ { name="Faisal Dosani", email="faisal.dosani@capitalone.com" } ] license = {text = "Apache Software License"} -dependencies = ["pandas<=2.2.2,>=0.25.0", "numpy<=1.26.4,>=1.22.0", "ordered-set<=4.1.0,>=4.0.2", "fugue<=0.9.1,>=0.8.7", "polars<=1.1.0,>=0.20.4"] +dependencies = ["pandas<=2.2.2,>=0.25.0", "numpy<=1.26.4,>=1.22.0", "ordered-set<=4.1.0,>=4.0.2", "fugue<=0.9.1,>=0.8.7", "polars<=1.7.0,>=0.20.4"] requires-python = ">=3.9.0" classifiers = [ "Intended Audience :: Developers", diff --git a/tests/test_polars.py b/tests/test_polars.py index 7fb487f6..779974b0 100644 --- a/tests/test_polars.py +++ b/tests/test_polars.py @@ -386,7 +386,9 @@ def test_compare_df_setter_bad(): PolarsCompare("a", "a", ["a"]) with raises(ValueError, match="df1 must have all columns from join_columns"): PolarsCompare(df, df.clone(), ["b"]) - with raises(DuplicateError, match="duplicate column names found"): + with raises( + DuplicateError, match="column with name 'a' has more than one occurrences" + ): PolarsCompare(df_same_col_names, df_same_col_names.clone(), ["a"]) assert PolarsCompare(df_dupe, df_dupe.clone(), ["a", "b"]).df1.equals(df_dupe) @@ -416,7 +418,9 @@ def test_compare_df_setter_bad_index(): df = pl.DataFrame([{"a": 1, "A": 2}, {"a": 2, "A": 2}]) with raises(TypeError, match="df1 must be a Polars DataFrame"): PolarsCompare("a", "a", join_columns="a") - with raises(DuplicateError, match="duplicate column names found"): + with raises( + DuplicateError, match="column with name 'a' has more than one occurrences" + ): PolarsCompare(df, df.clone(), join_columns="a")