Skip to content

Commit

Permalink
Update various python build requirements. (#3641)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghuls committed Jun 9, 2022
1 parent d3a0916 commit ca84d99
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
17 changes: 9 additions & 8 deletions py-polars/build.requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ pytz
types-pytz

# Tooling
maturin==0.12.1
pytest==6.2.5
maturin==0.12.19
pytest==7.1.2
pytest-cov[toml]==3.0.0
black==21.6b0
blackdoc==0.3.4
isort~=5.9.2
mypy==0.910
ghp-import==2.0.1
isort~=5.10.1
mypy==0.961
ghp-import==2.1.0
flake8==4.0.1
sphinx==4.2.0
pydata-sphinx-theme==0.6.3
Expand All @@ -30,12 +30,13 @@ sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
sphinxcontrib-napoleon
commonmark==0.9.1
numpydoc==1.1.0
numpydoc==1.3.1

# Stub files
pandas-stubs==1.2.0.39
pandas-stubs==1.2.0.61


# pinned third rate deps
# to be removed later
click==8.0.4
click==8.0.4

9 changes: 7 additions & 2 deletions py-polars/tests/test_df.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
import polars as pl
from polars import testing

if sys.version_info >= (3, 8):
from typing import Literal
else:
from typing_extensions import Literal # pragma: no cover


def test_version() -> None:
pl.__version__
Expand Down Expand Up @@ -1821,9 +1826,9 @@ def test_shrink_to_fit(in_place: bool) -> None:
df = pl.DataFrame({"foo": [1, 2, 3], "bar": [6, 7, 8], "ham": ["a", "b", "c"]})

if in_place:
assert df.shrink_to_fit(in_place) is None
assert df.shrink_to_fit(typing.cast(Literal[True], in_place)) is None
else:
assert df.shrink_to_fit(in_place).frame_equal(df) # type: ignore
assert df.shrink_to_fit(typing.cast(Literal[False], in_place)).frame_equal(df)


def test_arithmetic() -> None:
Expand Down

0 comments on commit ca84d99

Please sign in to comment.