Skip to content

Commit 8519ca6

Browse files
[backport 3.1.x] CI: temporary pin dateutil to <3 (#71461) (#71464)
1 parent 2126193 commit 8519ca6

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎.github/workflows/unit-tests.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ jobs:
289289
. ~/virtualenvs/pandas-dev/bin/activate
290290
python -m pip install --no-cache-dir -U pip wheel meson[ninja] meson-python
291291
python -m pip install numpy -Csetup-args="-Dallow-noblas=true"
292-
python -m pip install --no-cache-dir versioneer[toml] cython python-dateutil "pytest>=8.3.4" pytest-xdist>=3.6.1 pytest-cov
292+
python -m pip install --no-cache-dir versioneer[toml] cython "python-dateutil<3" "pytest>=8.3.4" pytest-xdist>=3.6.1 pytest-cov
293293
python -m pip install --no-cache-dir --no-build-isolation -e . -Csetup-args="--werror" -Csetup-args=-Dc_args="-Wno-overflow -Wno-type-limits -Wno-shift-count-overflow -Wno-sign-compare"
294294
python -m pip list --no-cache-dir
295295
@@ -332,7 +332,7 @@ jobs:
332332
/opt/python/cp313-cp313/bin/python -m venv ~/virtualenvs/pandas-dev
333333
. ~/virtualenvs/pandas-dev/bin/activate
334334
python -m pip install --no-cache-dir -U pip wheel meson-python meson[ninja]
335-
python -m pip install --no-cache-dir versioneer[toml] cython numpy python-dateutil "pytest>=8.3.4" pytest-xdist>=3.6.1 pytest-cov
335+
python -m pip install --no-cache-dir versioneer[toml] cython numpy "python-dateutil<3" "pytest>=8.3.4" pytest-xdist>=3.6.1 pytest-cov
336336
python -m pip install --no-cache-dir --no-build-isolation -e . -Csetup-args="--werror"
337337
python -m pip list --no-cache-dir
338338
- name: Run Tests
@@ -480,7 +480,7 @@ jobs:
480480
python --version
481481
python -m pip install --upgrade pip wheel meson[ninja] meson-python
482482
python -m pip install --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy
483-
python -m pip install versioneer[toml] python-dateutil tzdata cython "pytest>=8.3.4" pytest-xdist>=3.6.1 pytest-cov
483+
python -m pip install versioneer[toml] "python-dateutil<3" tzdata cython "pytest>=8.3.4" pytest-xdist>=3.6.1 pytest-cov
484484
python -m pip install -ve . --no-build-isolation --no-index --no-deps \
485485
-Csetup-args="--werror" \
486486
${{ matrix.os != 'windows-2025' && '-Csetup-args=-Dcpp_args="-Wno-missing-field-initializers"' || '' }} \
@@ -548,7 +548,7 @@ jobs:
548548
- name: Test pandas for Pyodide
549549
run: |
550550
source .venv-pyodide/bin/activate
551-
python -m pip install "pytest>=8.3.4" pytest-cov
551+
python -m pip install "python-dateutil<3" "pytest>=8.3.4" pytest-cov
552552
# do not import pandas from the checked out repo
553553
cd ../..
554554
pytest -m 'not slow and not network and not clipboard and not single_cpu' --pyargs pandas

‎pyproject.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ build-verbosity = 1
167167
config-settings = { compile-args = ["-v"] }
168168
environment = {LDFLAGS="-Wl,--strip-all"}
169169
test-extras = "test"
170+
test-requires = ["python-dateutil<3"]
170171
test-command = """
171172
python -c 'import pandas as pd; \
172173
pd.test(extra_args=["-m not clipboard and not single_cpu and not slow and not network and not db", "--numprocesses=2", "--dist=worksteal", "--no-strict-data-files"]); \

0 commit comments

Comments
 (0)