Skip to content

Commit f455e92

Browse files
Merge remote-tracking branch 'upstream/main' into string-dtype-isdigit
2 parents 7cd79a5 + 98c9c7f commit f455e92

File tree

365 files changed

+5910
-8032
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

365 files changed

+5910
-8032
lines changed

.github/workflows/broken-linkcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v5
2121
with:
2222
fetch-depth: 0
2323

.github/workflows/code-checks.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
steps:
3535
- name: Checkout
36-
uses: actions/checkout@v4
36+
uses: actions/checkout@v5
3737
with:
3838
fetch-depth: 0
3939

@@ -114,7 +114,7 @@ jobs:
114114

115115
steps:
116116
- name: Checkout
117-
uses: actions/checkout@v4
117+
uses: actions/checkout@v5
118118
with:
119119
fetch-depth: 0
120120

@@ -148,7 +148,7 @@ jobs:
148148
run: docker image prune -f
149149

150150
- name: Checkout
151-
uses: actions/checkout@v4
151+
uses: actions/checkout@v5
152152
with:
153153
fetch-depth: 0
154154

@@ -169,13 +169,13 @@ jobs:
169169

170170
steps:
171171
- name: Checkout
172-
uses: actions/checkout@v4
172+
uses: actions/checkout@v5
173173
with:
174174
fetch-depth: 0
175175

176176
- name: Setup Python
177177
id: setup_python
178-
uses: actions/setup-python@v5
178+
uses: actions/setup-python@v6
179179
with:
180180
python-version: '3.11'
181181
cache: 'pip'

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- python
2828

2929
steps:
30-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@v5
3131
- uses: github/codeql-action/init@v3
3232
with:
3333
languages: ${{ matrix.language }}

.github/workflows/comment-commands.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949

5050
steps:
5151
- name: Checkout
52-
uses: actions/checkout@v4
52+
uses: actions/checkout@v5
5353
with:
5454
fetch-depth: 0
5555

@@ -75,7 +75,7 @@ jobs:
7575
echo 'EOF' >> $GITHUB_ENV
7676
echo "REGEX=$REGEX" >> $GITHUB_ENV
7777
78-
- uses: actions/github-script@v7
78+
- uses: actions/github-script@v8
7979
env:
8080
BENCH_OUTPUT: ${{env.BENCH_OUTPUT}}
8181
REGEX: ${{env.REGEX}}

.github/workflows/deprecation-tracking-bot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
env:
2222
DEPRECATION_TRACKER_ISSUE: 56596
2323
steps:
24-
- uses: actions/github-script@v7
24+
- uses: actions/github-script@v8
2525
id: update-deprecation-issue
2626
with:
2727
script: |

.github/workflows/docbuild-and-upload.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
steps:
3838
- name: Checkout
39-
uses: actions/checkout@v4
39+
uses: actions/checkout@v5
4040
with:
4141
fetch-depth: 0
4242

.github/workflows/package-checks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ jobs:
3434

3535
steps:
3636
- name: Checkout
37-
uses: actions/checkout@v4
37+
uses: actions/checkout@v5
3838
with:
3939
fetch-depth: 0
4040

4141
- name: Setup Python
4242
id: setup_python
43-
uses: actions/setup-python@v5
43+
uses: actions/setup-python@v6
4444
with:
4545
python-version: '3.11'
4646

@@ -58,7 +58,7 @@ jobs:
5858
cancel-in-progress: true
5959
steps:
6060
- name: Checkout
61-
uses: actions/checkout@v4
61+
uses: actions/checkout@v5
6262
with:
6363
fetch-depth: 0
6464

.github/workflows/stale-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
if: github.repository_owner == 'pandas-dev'
1515
runs-on: ubuntu-24.04
1616
steps:
17-
- uses: actions/stale@v9
17+
- uses: actions/stale@v10
1818
with:
1919
repo-token: ${{ secrets.GITHUB_TOKEN }}
2020
stale-pr-message: "This pull request is stale because it has been open for thirty days with no activity. Please [update](https://pandas.pydata.org/pandas-docs/stable/development/contributing.html#updating-your-pull-request) and respond to this comment if you're still interested in working on this."

.github/workflows/unit-tests.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ jobs:
139139

140140
steps:
141141
- name: Checkout
142-
uses: actions/checkout@v4
142+
uses: actions/checkout@v5
143143
with:
144144
fetch-depth: 0
145145

@@ -199,7 +199,7 @@ jobs:
199199

200200
steps:
201201
- name: Checkout
202-
uses: actions/checkout@v4
202+
uses: actions/checkout@v5
203203
with:
204204
fetch-depth: 0
205205

@@ -243,7 +243,7 @@ jobs:
243243
. ~/virtualenvs/pandas-dev/bin/activate
244244
python -m pip install --no-cache-dir -U pip wheel setuptools meson[ninja]==1.2.1 meson-python==0.13.1
245245
python -m pip install numpy -Csetup-args="-Dallow-noblas=true"
246-
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.84.0
246+
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
247247
python -m pip install --no-cache-dir --no-build-isolation -e . -Csetup-args="--werror"
248248
python -m pip list --no-cache-dir
249249
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:
280280
/opt/python/cp313-cp313/bin/python -m venv ~/virtualenvs/pandas-dev
281281
. ~/virtualenvs/pandas-dev/bin/activate
282282
python -m pip install --no-cache-dir -U pip wheel setuptools meson-python==0.13.1 meson[ninja]==1.2.1
283-
python -m pip install --no-cache-dir versioneer[toml] cython numpy python-dateutil pytest>=7.3.2 pytest-xdist>=3.4.0 hypothesis>=6.84.0
283+
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
284284
python -m pip install --no-cache-dir --no-build-isolation -e . -Csetup-args="--werror"
285285
python -m pip list --no-cache-dir
286286
@@ -313,7 +313,7 @@ jobs:
313313
# To freeze this file, uncomment out the ``if: false`` condition, and migrate the jobs
314314
# to the corresponding posix/windows-macos/sdist etc. workflows.
315315
# Feel free to modify this comment as necessary.
316-
if: false
316+
# if: false
317317
defaults:
318318
run:
319319
shell: bash -eou pipefail {0}
@@ -338,21 +338,21 @@ jobs:
338338
PYTEST_TARGET: pandas
339339

340340
steps:
341-
- uses: actions/checkout@v4
341+
- uses: actions/checkout@v5
342342
with:
343343
fetch-depth: 0
344344

345345
- name: Set up Python Dev Version
346-
uses: actions/setup-python@v5
346+
uses: actions/setup-python@v6
347347
with:
348-
python-version: '3.13-dev'
348+
python-version: '3.14-dev'
349349

350350
- name: Build Environment
351351
run: |
352352
python --version
353353
python -m pip install --upgrade pip setuptools wheel meson[ninja]==1.2.1 meson-python==0.13.1
354354
python -m pip install --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy
355-
python -m pip install versioneer[toml] python-dateutil tzdata cython hypothesis>=6.84.0 pytest>=7.3.2 pytest-xdist>=3.4.0 pytest-cov
355+
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
356356
python -m pip install -ve . --no-build-isolation --no-index --no-deps -Csetup-args="--werror"
357357
python -m pip list
358358
@@ -375,13 +375,13 @@ jobs:
375375
cancel-in-progress: true
376376
steps:
377377
- name: Checkout pandas Repo
378-
uses: actions/checkout@v4
378+
uses: actions/checkout@v5
379379
with:
380380
fetch-depth: 0
381381

382382
- name: Set up Python for pyodide-build
383383
id: setup-python
384-
uses: actions/setup-python@v5
384+
uses: actions/setup-python@v6
385385
with:
386386
python-version: '3.12'
387387

@@ -399,7 +399,7 @@ jobs:
399399
pyodide build
400400
401401
- name: Set up Node.js
402-
uses: actions/setup-node@v4
402+
uses: actions/setup-node@v5
403403
with:
404404
node-version: '20'
405405

.github/workflows/wheels.yml

Lines changed: 46 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
name: Wheel builder
1414

1515
on:
16+
release:
17+
types: [published]
1618
schedule:
1719
# 3:27 UTC every day
1820
- cron: "27 3 * * *"
@@ -48,12 +50,12 @@ jobs:
4850
sdist_file: ${{ steps.save-path.outputs.sdist_name }}
4951
steps:
5052
- name: Checkout pandas
51-
uses: actions/checkout@v4
53+
uses: actions/checkout@v5
5254
with:
5355
fetch-depth: 0
5456

5557
- name: Set up Python
56-
uses: actions/setup-python@v5
58+
uses: actions/setup-python@v6
5759
with:
5860
python-version: '3.11'
5961

@@ -101,7 +103,7 @@ jobs:
101103
- [macos-14, macosx_arm64]
102104
- [windows-2022, win_amd64]
103105
- [windows-11-arm, win_arm64]
104-
python: [["cp311", "3.11"], ["cp312", "3.12"], ["cp313", "3.13"], ["cp313t", "3.13"]]
106+
python: [["cp311", "3.11"], ["cp312", "3.12"], ["cp313", "3.13"], ["cp313t", "3.13"], ["cp314", "3.14"], ["cp314t", "3.14"]]
105107
include:
106108
# Build Pyodide wheels and upload them to Anaconda.org
107109
# NOTE: this job is similar to the one in unit-tests.yml except for the fact
@@ -119,7 +121,7 @@ jobs:
119121
IS_SCHEDULE_DISPATCH: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
120122
steps:
121123
- name: Checkout pandas
122-
uses: actions/checkout@v4
124+
uses: actions/checkout@v5
123125
with:
124126
fetch-depth: 0
125127

@@ -137,7 +139,7 @@ jobs:
137139
# removes unnecessary files from the release
138140
- name: Download sdist (not macOS)
139141
#if: ${{ matrix.buildplat[1] != 'macosx_*' }}
140-
uses: actions/download-artifact@v4
142+
uses: actions/download-artifact@v5
141143
with:
142144
name: sdist
143145
path: ./dist
@@ -160,7 +162,7 @@ jobs:
160162
run: echo "sdist_name=$(cd ./dist && ls -d */)" >> "$GITHUB_ENV"
161163

162164
- name: Build wheels
163-
uses: pypa/[email protected].3
165+
uses: pypa/[email protected].4
164166
with:
165167
package-dir: ./dist/${{ startsWith(matrix.buildplat[1], 'macosx') && env.sdist_name || needs.build_sdist.outputs.sdist_file }}
166168
env:
@@ -216,3 +218,41 @@ jobs:
216218
source ci/upload_wheels.sh
217219
set_upload_vars
218220
upload_wheels
221+
222+
publish:
223+
if: >
224+
github.repository == 'pandas-dev/pandas' &&
225+
github.event_name == 'release' &&
226+
startsWith(github.ref, 'refs/tags/v')
227+
228+
needs:
229+
- build_sdist
230+
- build_wheels
231+
232+
runs-on: ubuntu-latest
233+
234+
environment:
235+
name: pypi
236+
permissions:
237+
id-token: write # OIDC for Trusted Publishing
238+
contents: read
239+
240+
steps:
241+
- name: Download all artefacts
242+
uses: actions/download-artifact@v5
243+
with:
244+
path: dist # everything lands in ./dist/**
245+
246+
- name: Collect files
247+
run: |
248+
mkdir -p upload
249+
# skip any wheel that contains 'pyodide'
250+
find dist -name '*pyodide*.whl' -prune -o \
251+
-name '*.whl' -exec mv {} upload/ \;
252+
find dist -name '*.tar.gz' -exec mv {} upload/ \;
253+
254+
- name: Publish to **PyPI** (Trusted Publishing)
255+
uses: pypa/gh-action-pypi-publish@release/v1
256+
with:
257+
packages-dir: upload
258+
skip-existing: true

0 commit comments

Comments
 (0)