Skip to content

Commit 1660c51

Browse files
committed
more workflow tweaks for pytz and Python 3.13
1 parent 3ec3c5e commit 1660c51

File tree

3 files changed

+11
-15
lines changed

3 files changed

+11
-15
lines changed

.github/workflows/unit-tests.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ jobs:
257257
. ~/virtualenvs/pandas-dev/bin/activate
258258
python -m pip install --no-cache-dir -U pip wheel setuptools meson[ninja]==1.2.1 meson-python==0.13.1
259259
python -m pip install numpy --config-settings=setup-args="-Dallow-noblas=true"
260-
python -m pip install --no-cache-dir versioneer[toml] cython python-dateutil pytz pytest>=7.3.2 pytest-xdist>=2.2.0 hypothesis>=6.46.1
260+
python -m pip install --no-cache-dir versioneer[toml] cython python-dateutil pytz<2024.2 pytest>=7.3.2 pytest-xdist>=2.2.0 hypothesis>=6.46.1
261261
python -m pip install --no-cache-dir --no-build-isolation -e . --config-settings=setup-args="--werror"
262262
python -m pip list --no-cache-dir
263263
export PANDAS_CI=1
@@ -295,7 +295,7 @@ jobs:
295295
/opt/python/cp311-cp311/bin/python -m venv ~/virtualenvs/pandas-dev
296296
. ~/virtualenvs/pandas-dev/bin/activate
297297
python -m pip install --no-cache-dir -U pip wheel setuptools meson-python==0.13.1 meson[ninja]==1.2.1
298-
python -m pip install --no-cache-dir versioneer[toml] cython numpy python-dateutil pytz pytest>=7.3.2 pytest-xdist>=2.2.0 hypothesis>=6.46.1
298+
python -m pip install --no-cache-dir versioneer[toml] cython numpy python-dateutil pytz<2024.2 pytest>=7.3.2 pytest-xdist>=2.2.0 hypothesis>=6.46.1
299299
python -m pip install --no-cache-dir --no-build-isolation -e . --config-settings=setup-args="--werror"
300300
python -m pip list --no-cache-dir
301301
@@ -369,7 +369,7 @@ jobs:
369369
python -m pip install --upgrade pip setuptools wheel meson[ninja]==1.2.1 meson-python==0.13.1
370370
python -m pip install --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy
371371
python -m pip install versioneer[toml]
372-
python -m pip install python-dateutil pytz tzdata cython hypothesis>=6.46.1 pytest>=7.3.2 pytest-xdist>=2.2.0 pytest-cov
372+
python -m pip install python-dateutil pytz<2024.2 tzdata cython hypothesis>=6.46.1 pytest>=7.3.2 pytest-xdist>=2.2.0 pytest-cov
373373
python -m pip install -ve . --no-build-isolation --no-index --no-deps --config-settings=setup-args="--werror"
374374
python -m pip list
375375

.github/workflows/wheels.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,13 @@ jobs:
170170
shell: pwsh
171171
run: |
172172
$TST_CMD = @"
173-
python -m pip install hypothesis>=6.46.1 pytest>=7.3.2 pytest-xdist>=2.2.0;
173+
python -m pip install hypothesis>=6.46.1 pytest>=7.3.2 pytest-xdist>=2.2.0 pytz<2024.2;
174174
python -m pip install `$(Get-Item pandas\wheelhouse\*.whl);
175175
python -c `'import pandas as pd; pd.test(extra_args=[`\"--no-strict-data-files`\", `\"-m not clipboard and not single_cpu and not slow and not network and not db`\"])`';
176176
"@
177177
# add rc to the end of the image name if the Python version is unreleased
178-
docker pull python:${{ matrix.python[1] == '3.12' && '3.12-rc' || format('{0}-windowsservercore', matrix.python[1]) }}
179-
docker run --env PANDAS_CI='1' -v ${PWD}:C:\pandas python:${{ matrix.python[1] == '3.12' && '3.12-rc' || format('{0}-windowsservercore', matrix.python[1]) }} powershell -Command $TST_CMD
178+
docker pull python:${{ matrix.python[1] == '3.13' && '3.13-rc' || format('{0}-windowsservercore', matrix.python[1]) }}
179+
docker run --env PANDAS_CI='1' -v ${PWD}:C:\pandas python:${{ matrix.python[1] == '3.13' && '3.13-rc' || format('{0}-windowsservercore', matrix.python[1]) }} powershell -Command $TST_CMD
180180
181181
- uses: actions/upload-artifact@v4
182182
with:

pyproject.toml

+5-9
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ requires = [
66
"meson==1.2.1",
77
"wheel",
88
"Cython==3.0.5", # Note: sync with setup.py, environment.yml and asv.conf.json
9-
# Force numpy higher than 2.0rc1, so that built wheels are compatible
9+
# Force numpy higher than 2.0, so that built wheels are compatible
1010
# with both numpy 1 and 2
11-
"numpy>=2.0.0rc1",
11+
"numpy>=2.0",
1212
"versioneer[toml]"
1313
]
1414

@@ -153,20 +153,16 @@ setup = ['--vsenv'] # For Windows
153153
skip = "cp36-* cp37-* cp38-* pp* *_i686 *_ppc64le *_s390x"
154154
build-verbosity = "3"
155155
environment = {LDFLAGS="-Wl,--strip-all"}
156-
# TODO: remove this once numpy 2.0 proper releases
157-
# and specify numpy 2.0 as a dependency in [build-system] requires in pyproject.toml
158-
before-build = "pip install numpy==2.0.0rc1"
159-
test-requires = "hypothesis>=6.46.1 pytest>=7.3.2 pytest-xdist>=2.2.0"
156+
# pytz 2024.2 causing some failures
157+
test-requires = "hypothesis>=6.46.1 pytest>=7.3.2 pytest-xdist>=2.2.0 pytz<2024.2"
160158
test-command = """
161159
PANDAS_CI='1' python -c 'import pandas as pd; \
162160
pd.test(extra_args=["-m not clipboard and not single_cpu and not slow and not network and not db", "-n 2", "--no-strict-data-files"]); \
163161
pd.test(extra_args=["-m not clipboard and single_cpu and not slow and not network and not db", "--no-strict-data-files"]);' \
164162
"""
165163

166164
[tool.cibuildwheel.windows]
167-
# TODO: remove this once numpy 2.0 proper releases
168-
# and specify numpy 2.0 as a dependency in [build-system] requires in pyproject.toml
169-
before-build = "pip install delvewheel numpy==2.0.0rc1"
165+
before-build = "pip install delvewheel"
170166
repair-wheel-command = "delvewheel repair -w {dest_dir} {wheel}"
171167

172168
[[tool.cibuildwheel.overrides]]

0 commit comments

Comments
 (0)