diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index a9220ab53cbb0..51901919e4adb 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -243,7 +243,7 @@ jobs: . ~/virtualenvs/pandas-dev/bin/activate python -m pip install --no-cache-dir -U pip wheel setuptools meson[ninja]==1.2.1 meson-python==0.13.1 python -m pip install numpy -Csetup-args="-Dallow-noblas=true" - python -m pip install --no-cache-dir versioneer[toml] cython==3.0.10 python-dateutil pytest>=7.3.2 pytest-xdist>=3.4.0 hypothesis>=6.116.0 + python -m pip install --no-cache-dir versioneer[toml] cython==3.0.10 python-dateutil pytest>=8.3.4 pytest-xdist>=3.6.1 hypothesis>=6.116.0 python -m pip install --no-cache-dir --no-build-isolation -e . -Csetup-args="--werror" python -m pip list --no-cache-dir PANDAS_CI=1 python -m pytest -m 'not slow and not network and not clipboard and not single_cpu' pandas --junitxml=test-data.xml @@ -280,7 +280,7 @@ jobs: /opt/python/cp313-cp313/bin/python -m venv ~/virtualenvs/pandas-dev . ~/virtualenvs/pandas-dev/bin/activate python -m pip install --no-cache-dir -U pip wheel setuptools meson-python==0.13.1 meson[ninja]==1.2.1 - python -m pip install --no-cache-dir versioneer[toml] cython numpy python-dateutil pytest>=7.3.2 pytest-xdist>=3.4.0 hypothesis>=6.116.0 + python -m pip install --no-cache-dir versioneer[toml] cython numpy python-dateutil pytest>=8.3.4 pytest-xdist>=3.6.1 hypothesis>=6.116.0 python -m pip install --no-cache-dir --no-build-isolation -e . -Csetup-args="--werror" python -m pip list --no-cache-dir @@ -352,7 +352,7 @@ jobs: python --version python -m pip install --upgrade pip setuptools wheel meson[ninja]==1.2.1 meson-python==0.13.1 python -m pip install --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy - python -m pip install versioneer[toml] python-dateutil tzdata cython hypothesis>=6.116.0 pytest>=7.3.2 pytest-xdist>=3.4.0 pytest-cov + python -m pip install versioneer[toml] python-dateutil tzdata cython hypothesis>=6.116.0 pytest>=8.3.4 pytest-xdist>=3.6.1 pytest-cov python -m pip install -ve . --no-build-isolation --no-index --no-deps -Csetup-args="--werror" python -m pip list diff --git a/ci/deps/actions-311-minimum_versions.yaml b/ci/deps/actions-311-minimum_versions.yaml index da760bceb49ca..70d1363bb2fed 100644 --- a/ci/deps/actions-311-minimum_versions.yaml +++ b/ci/deps/actions-311-minimum_versions.yaml @@ -13,10 +13,10 @@ dependencies: - meson-python=0.13.1 # test dependencies - - pytest>=7.3.2 + - pytest>=8.3.4 - pytest-cov - - pytest-xdist>=3.4.0 - - pytest-localserver>=0.8.1 + - pytest-xdist>=3.6.1 + - pytest-localserver>=0.9.0 - pytest-qt>=4.4.0 - boto3=1.37.3 diff --git a/ci/deps/actions-311.yaml b/ci/deps/actions-311.yaml index 9e6601854a86b..9178d17d24ae5 100644 --- a/ci/deps/actions-311.yaml +++ b/ci/deps/actions-311.yaml @@ -11,10 +11,10 @@ dependencies: - meson-python=0.13.1 # test dependencies - - pytest>=7.3.2 + - pytest>=8.3.4 - pytest-cov - - pytest-xdist>=3.4.0 - - pytest-localserver>=0.8.1 + - pytest-xdist>=3.6.1 + - pytest-localserver>=0.9.0 - pytest-qt>=4.4.0 - boto3=1.37.3 diff --git a/ci/deps/actions-312.yaml b/ci/deps/actions-312.yaml index 03e3b5d451477..068a39d5e8021 100644 --- a/ci/deps/actions-312.yaml +++ b/ci/deps/actions-312.yaml @@ -11,10 +11,10 @@ dependencies: - meson-python=0.13.1 # test dependencies - - pytest>=7.3.2 + - pytest>=8.3.4 - pytest-cov - - pytest-xdist>=3.4.0 - - pytest-localserver>=0.8.1 + - pytest-xdist>=3.6.1 + - pytest-localserver>=0.9.0 - pytest-qt>=4.4.0 - boto3=1.37.3 diff --git a/ci/deps/actions-313-downstream_compat.yaml b/ci/deps/actions-313-downstream_compat.yaml index 335ae1b121174..ac12811bbdfbd 100644 --- a/ci/deps/actions-313-downstream_compat.yaml +++ b/ci/deps/actions-313-downstream_compat.yaml @@ -12,10 +12,10 @@ dependencies: - meson-python=0.13.1 # test dependencies - - pytest>=7.3.2 + - pytest>=8.3.4 - pytest-cov - - pytest-xdist>=3.4.0 - - pytest-localserver>=0.8.1 + - pytest-xdist>=3.6.1 + - pytest-localserver>=0.9.0 - pytest-qt>=4.4.0 - boto3=1.37.3 diff --git a/ci/deps/actions-313-freethreading.yaml b/ci/deps/actions-313-freethreading.yaml index 0f4c198061049..0d5bc859f4702 100644 --- a/ci/deps/actions-313-freethreading.yaml +++ b/ci/deps/actions-313-freethreading.yaml @@ -12,8 +12,8 @@ dependencies: - meson-python=0.18.0 # test dependencies - - pytest>=7.3.2 - - pytest-xdist>=3.4.0 + - pytest>=8.3.4 + - pytest-xdist>=3.6.1 # required dependencies - python-dateutil diff --git a/ci/deps/actions-313-numpydev.yaml b/ci/deps/actions-313-numpydev.yaml index d16cae7f50fcd..7810ef3f3540b 100644 --- a/ci/deps/actions-313-numpydev.yaml +++ b/ci/deps/actions-313-numpydev.yaml @@ -11,9 +11,9 @@ dependencies: - cython<4.0.0a0 # test dependencies - - pytest>=7.3.2 + - pytest>=8.3.4 - pytest-cov - - pytest-xdist>=3.4.0 + - pytest-xdist>=3.6.1 - hypothesis>=6.116.0 # pandas dependencies diff --git a/ci/deps/actions-313-pyarrownightly.yaml b/ci/deps/actions-313-pyarrownightly.yaml index 911146004d492..be7fade7f3900 100644 --- a/ci/deps/actions-313-pyarrownightly.yaml +++ b/ci/deps/actions-313-pyarrownightly.yaml @@ -11,9 +11,9 @@ dependencies: - meson-python=0.13.1 # test dependencies - - pytest>=7.3.2 + - pytest>=8.3.4 - pytest-cov - - pytest-xdist>=3.4.0 + - pytest-xdist>=3.6.1 - hypothesis>=6.116.0 # required dependencies diff --git a/ci/deps/actions-313.yaml b/ci/deps/actions-313.yaml index 12deb4ed9b783..414b11aacdfc2 100644 --- a/ci/deps/actions-313.yaml +++ b/ci/deps/actions-313.yaml @@ -11,10 +11,10 @@ dependencies: - meson-python=0.13.1 # test dependencies - - pytest>=7.3.2 + - pytest>=8.3.4 - pytest-cov - - pytest-xdist>=3.4.0 - - pytest-localserver>=0.8.1 + - pytest-xdist>=3.6.1 + - pytest-localserver>=0.9.0 - pytest-qt>=4.4.0 - boto3=1.37.3 diff --git a/ci/meta.yaml b/ci/meta.yaml index d7508a44f223d..e90575b1992a3 100644 --- a/ci/meta.yaml +++ b/ci/meta.yaml @@ -61,8 +61,8 @@ test: - python -c "import pandas; pandas.test(extra_args={{ extra_args }})" # [python_impl == "cpython"] requires: - pip - - pytest >=7.3.2 - - pytest-xdist >=3.4.0 + - pytest >=8.3.4 + - pytest-xdist >=3.6.1 - pytest-cov - hypothesis >=6.116.0 diff --git a/environment.yml b/environment.yml index 3e5b73d2cca0b..0d917be67e0c5 100644 --- a/environment.yml +++ b/environment.yml @@ -13,9 +13,9 @@ dependencies: - meson-python=0.13.1 # test dependencies - - pytest>=7.3.2 + - pytest>=8.3.4 - pytest-cov - - pytest-xdist>=3.4.0 + - pytest-xdist>=3.6.1 - pytest-qt>=4.4.0 - pytest-localserver - pyqt>=5.15.9 diff --git a/pandas/compat/_optional.py b/pandas/compat/_optional.py index 6b04b4dd3a141..42bd965e88c86 100644 --- a/pandas/compat/_optional.py +++ b/pandas/compat/_optional.py @@ -41,7 +41,7 @@ "pyarrow": "13.0.0", "pyiceberg": "0.8.1", "pyreadstat": "1.2.8", - "pytest": "7.3.2", + "pytest": "8.3.4", "python-calamine": "0.3.0", "pytz": "2024.2", "pyxlsb": "1.0.10", diff --git a/pyproject.toml b/pyproject.toml index a00d6e71b14e3..5e11f6472ac44 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,7 +56,7 @@ repository = 'https://github.com/pandas-dev/pandas' matplotlib = "pandas:plotting._matplotlib" [project.optional-dependencies] -test = ['hypothesis>=6.116.0', 'pytest>=7.3.2', 'pytest-xdist>=3.4.0'] +test = ['hypothesis>=6.116.0', 'pytest>=8.3.4', 'pytest-xdist>=3.6.1'] pyarrow = ['pyarrow>=13.0.0'] performance = ['bottleneck>=1.4.2', 'numba>=0.60.0', 'numexpr>=2.10.2'] computation = ['scipy>=1.14.1', 'xarray>=2024.10.0'] @@ -101,8 +101,8 @@ all = ['adbc-driver-postgresql>=1.2.0', 'pymysql>=1.1.1', 'PyQt5>=5.15.9', 'pyreadstat>=1.2.8', - 'pytest>=7.3.2', - 'pytest-xdist>=3.4.0', + 'pytest>=8.3.4', + 'pytest-xdist>=3.6.1', 'python-calamine>=0.3.0', 'pytz>=2024.2', 'pyxlsb>=1.0.10', @@ -186,7 +186,7 @@ environment = {CFLAGS="-g0"} [[tool.cibuildwheel.overrides]] select = "*pyodide*" -test-requires = "pytest>=7.3.2 hypothesis>=6.116.0" +test-requires = "pytest>=8.3.4 hypothesis>=6.116.0" # Pyodide repairs wheels on its own, using auditwheel-emscripten repair-wheel-command = "" # https://github.com/pyodide/pyodide/issues/5805 @@ -442,7 +442,7 @@ docstring-code-format = true [tool.pytest.ini_options] # sync minversion with pyproject.toml & install.rst -minversion = "7.3.2" +minversion = "8.3.4" addopts = "--strict-markers --strict-config --capture=no --durations=30 --junitxml=test-data.xml" empty_parameter_set_mark = "fail_at_collect" xfail_strict = true diff --git a/requirements-dev.txt b/requirements-dev.txt index c799fe3d2f076..87384ee738cf3 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -6,9 +6,9 @@ versioneer[toml] cython<4.0.0a0 meson[ninja]==1.2.1 meson-python==0.13.1 -pytest>=7.3.2 +pytest>=8.3.4 pytest-cov -pytest-xdist>=3.4.0 +pytest-xdist>=3.6.1 pytest-qt>=4.4.0 pytest-localserver PyQt5>=5.15.9