Skip to content

Commit

Permalink
fixing polars test and bumping versions (#361)
Browse files Browse the repository at this point in the history
* change exception to include SchemaError

* bumping versions

* bumping datacompy version
  • Loading branch information
fdosani authored Dec 17, 2024
1 parent b84a1c9 commit f00d0bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion datacompy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Then extended to carry that functionality over to Spark Dataframes.
"""

__version__ = "0.14.4"
__version__ = "0.15.0"

import platform
from warnings import warn
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ maintainers = [
{ name="Faisal Dosani", email="[email protected]" }
]
license = {text = "Apache Software License"}
dependencies = ["pandas<=2.2.3,>=0.25.0", "numpy<=2.1.3,>=1.22.0", "ordered-set<=4.1.0,>=4.0.2", "polars[pandas]<=1.12.0,>=0.20.4"]
dependencies = ["pandas<=2.2.3,>=0.25.0", "numpy<=2.2.0,>=1.22.0", "ordered-set<=4.1.0,>=4.0.2", "polars[pandas]<=1.17.1,>=0.20.4"]
requires-python = ">=3.9.0"
classifiers = [
"Intended Audience :: Developers",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_polars.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
generate_id_within_group,
temp_column_name,
)
from polars.exceptions import ComputeError, DuplicateError
from polars.exceptions import ComputeError, DuplicateError, SchemaError
from polars.testing import assert_series_equal

logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
Expand Down Expand Up @@ -536,7 +536,7 @@ def test_string_joiner():
def test_float_and_string_with_joins():
df1 = pl.DataFrame([{"a": float("1"), "b": 2}, {"a": float("2"), "b": 2}])
df2 = pl.DataFrame([{"a": 1, "b": 2}, {"a": 2, "b": 2}])
with raises(ComputeError):
with raises((ComputeError, SchemaError)):
PolarsCompare(df1, df2, "a")


Expand Down

0 comments on commit f00d0bd

Please sign in to comment.