Skip to content

Commit

Permalink
Update Pandas tox envs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Jun 24, 2024
1 parent 7358212 commit b7f699a
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ jobs:
- check-django42
- check-django41
- check-django32
- check-pandas22
- check-pandas21
- check-pandas20
- check-pandas15
- check-pandas14
Expand Down
2 changes: 1 addition & 1 deletion hypothesis-python/docs/numpy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Supported versions
There is quite a lot of variation between pandas versions. We only
commit to supporting the latest version of pandas, but older minor versions are
supported on a "best effort" basis. Hypothesis is currently tested against
and confirmed working with every Pandas minor version from 1.1 through to 2.0.
and confirmed working with every Pandas minor version from 1.1 through to 2.2.

Releases that are not the latest patch release of their minor version are not
tested or officially supported, but will probably also work unless you hit a
Expand Down
29 changes: 27 additions & 2 deletions hypothesis-python/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -70,50 +70,75 @@ commands=

# Note: when adding or removing tested Pandas versions, make sure to update the
# docs in numpy.rst too. To see current download rates of each minor version:
# https://pepy.tech/project/pandas?versions=1.1.*&versions=1.2.*&versions=1.3.*&versions=1.4.*&versions=1.5.*&versions=2.0.*
# https://pepy.tech/project/pandas?versions=1.1.*&versions=1.2.*&versions=1.3.*&versions=1.4.*&versions=1.5.*&versions=2.0.*&versions=2.1.*&versions=2.2.*
[testenv:pandas11]
deps =
-r../requirements/test.txt
numpy~=1.26.4
pandas~=1.1.5
commands =
python -bb -X dev -m pytest tests/pandas -n auto

[testenv:pandas12]
deps =
-r../requirements/test.txt
numpy~=1.26.4
pandas~=1.2.5
commands =
python -bb -X dev -m pytest tests/pandas -n auto

[testenv:pandas13]
deps =
-r../requirements/test.txt
numpy~=1.26.4
pandas~=1.3.5
commands =
python -bb -X dev -m pytest tests/pandas -n auto

[testenv:pandas14]
deps =
-r../requirements/test.txt
numpy~=1.26.4
pandas~=1.4.4
commands =
python -bb -X dev -m pytest tests/pandas -n auto

[testenv:pandas15]
deps =
-r../requirements/test.txt
numpy~=1.26.4
pandas~=1.5.3
commands =
python -bb -X dev -m pytest tests/pandas -n auto

[testenv:pandas20]
deps =
-r../requirements/test.txt
pandas~=2.0.0
numpy~=1.26.4
pandas~=2.0.3
commands =
python -bb -X dev -m pytest tests/pandas -n auto

[testenv:pandas21]
deps =
-r../requirements/test.txt
numpy~=1.26.4
pandas~=2.1.4
setenv=
PYTHONWARNDEFAULTENCODING=1
commands =
python -bb -X dev -m pytest tests/pandas -n auto

[testenv:pandas22]
deps =
-r../requirements/test.txt
pandas~=2.2.2
# https://pandas.pydata.org/docs/whatsnew/v2.2.2.html#pandas-2-2-2-is-now-compatible-with-numpy-2-0
setenv=
PYTHONWARNDEFAULTENCODING=1
commands =
python -bb -X dev -m pytest tests/pandas -n auto

# Adding a new pandas? See comment above!

[testenv:crosshair-{cover,nocover,niche,custom}]
Expand Down
2 changes: 1 addition & 1 deletion tooling/src/hypothesistooling/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ def standard_tox_task(name, py=ci_version):
for n in [32, 41, 42]:
standard_tox_task(f"django{n}")

for n in [11, 12, 13, 14, 15, 20]:
for n in [11, 12, 13, 14, 15, 20, 21, 22]:
standard_tox_task(f"pandas{n}")

for kind in ("cover", "nocover", "niche"):
Expand Down

0 comments on commit b7f699a

Please sign in to comment.