Skip to content

Commit 5007ce2

Browse files
committed
Merge branch 'main' into bug-inconsistent-types-groupby-group-names
2 parents eab37ca + dd87dd3 commit 5007ce2

File tree

157 files changed

+2674
-1731
lines changed

Some content is hidden

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

157 files changed

+2674
-1731
lines changed

.circleci/config.yml

Lines changed: 45 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,64 @@
11
version: 2.1
22

33
jobs:
4-
test-arm:
4+
test-linux-arm:
55
machine:
66
image: default
77
resource_class: arm.large
88
environment:
9-
ENV_FILE: ci/deps/circle-310-arm64.yaml
9+
ENV_FILE: ci/deps/circle-311-arm64.yaml
1010
PYTEST_WORKERS: auto
1111
PATTERN: "not single_cpu and not slow and not network and not clipboard and not arm_slow and not db"
1212
PYTEST_TARGET: "pandas"
1313
PANDAS_CI: "1"
1414
steps:
1515
- checkout
16-
- run: .circleci/setup_env.sh
17-
- run: >
18-
PATH=$HOME/miniconda3/envs/pandas-dev/bin:$HOME/miniconda3/condabin:$PATH
19-
LD_PRELOAD=$HOME/miniconda3/envs/pandas-dev/lib/libgomp.so.1:$LD_PRELOAD
20-
ci/run_tests.sh
21-
linux-musl:
16+
- run:
17+
name: Install Environment and Run Tests
18+
shell: /bin/bash -exuo pipefail
19+
command: |
20+
MAMBA_URL="https://github.com/conda-forge/miniforge/releases/download/24.3.0-0/Mambaforge-24.3.0-0-Linux-aarch64.sh"
21+
wget -q $MAMBA_URL -O minimamba.sh
22+
chmod +x minimamba.sh
23+
MAMBA_DIR="$HOME/miniconda3"
24+
rm -rf $MAMBA_DIR
25+
./minimamba.sh -b -p $MAMBA_DIR
26+
export PATH=$MAMBA_DIR/bin:$PATH
27+
conda info -a
28+
conda env create -q -n pandas-dev -f $ENV_FILE
29+
conda list -n pandas-dev
30+
source activate pandas-dev
31+
if pip show pandas 1>/dev/null; then
32+
pip uninstall -y pandas
33+
fi
34+
python -m pip install --no-build-isolation -ve . --config-settings=setup-args="--werror"
35+
PATH=$HOME/miniconda3/envs/pandas-dev/bin:$HOME/miniconda3/condabin:$PATH
36+
ci/run_tests.sh
37+
test-linux-musl:
2238
docker:
2339
- image: quay.io/pypa/musllinux_1_1_aarch64
2440
resource_class: arm.large
2541
steps:
2642
# Install pkgs first to have git in the image
2743
# (needed for checkout)
28-
- run: |
29-
apk update
30-
apk add git
31-
apk add musl-locales
44+
- run:
45+
name: Install System Packages
46+
command: |
47+
apk update
48+
apk add git
49+
apk add musl-locales
3250
- checkout
33-
- run: |
34-
/opt/python/cp311-cp311/bin/python -m venv ~/virtualenvs/pandas-dev
35-
. ~/virtualenvs/pandas-dev/bin/activate
36-
python -m pip install --no-cache-dir -U pip wheel setuptools meson-python==0.13.1 meson[ninja]==1.2.1
37-
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
38-
python -m pip install --no-cache-dir --no-build-isolation -e . --config-settings=setup-args="--werror"
39-
python -m pip list --no-cache-dir
40-
- run: |
41-
. ~/virtualenvs/pandas-dev/bin/activate
42-
export PANDAS_CI=1
43-
python -m pytest -m 'not slow and not network and not clipboard and not single_cpu' pandas --junitxml=test-data.xml
51+
- run:
52+
name: Install Environment and Run Tests
53+
command: |
54+
/opt/python/cp311-cp311/bin/python -m venv ~/virtualenvs/pandas-dev
55+
. ~/virtualenvs/pandas-dev/bin/activate
56+
python -m pip install --no-cache-dir -U pip wheel setuptools meson-python==0.13.1 meson[ninja]==1.2.1
57+
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
58+
python -m pip install --no-cache-dir --no-build-isolation -e . --config-settings=setup-args="--werror"
59+
python -m pip list --no-cache-dir
60+
export PANDAS_CI=1
61+
python -m pytest -m 'not slow and not network and not clipboard and not single_cpu' pandas --junitxml=test-data.xml
4462
build-aarch64:
4563
parameters:
4664
cibw-build:
@@ -71,7 +89,7 @@ jobs:
7189
name: Build aarch64 wheels
7290
no_output_timeout: 30m # Sometimes the tests won't generate any output, make sure the job doesn't get killed by that
7391
command: |
74-
pip3 install cibuildwheel==2.15.0
92+
pip3 install cibuildwheel==2.18.1
7593
cibuildwheel --prerelease-pythons --output-dir wheelhouse
7694
7795
environment:
@@ -81,7 +99,7 @@ jobs:
8199
name: Install Anaconda Client & Upload Wheels
82100
command: |
83101
echo "Install Mambaforge"
84-
MAMBA_URL="https://github.com/conda-forge/miniforge/releases/download/23.1.0-0/Mambaforge-23.1.0-0-Linux-aarch64.sh"
102+
MAMBA_URL="https://github.com/conda-forge/miniforge/releases/download/24.3.0-0/Mambaforge-24.3.0-0-Linux-aarch64.sh"
85103
echo "Downloading $MAMBA_URL"
86104
wget -q $MAMBA_URL -O minimamba.sh
87105
chmod +x minimamba.sh
@@ -107,14 +125,14 @@ workflows:
107125
not:
108126
equal: [ scheduled_pipeline, << pipeline.trigger_source >> ]
109127
jobs:
110-
- test-arm
128+
- test-linux-arm
111129
test-musl:
112130
# Don't run trigger this one when scheduled pipeline runs
113131
when:
114132
not:
115133
equal: [ scheduled_pipeline, << pipeline.trigger_source >> ]
116134
jobs:
117-
- linux-musl
135+
- test-linux-musl
118136
build-wheels:
119137
jobs:
120138
- build-aarch64:

.circleci/setup_env.sh

Lines changed: 0 additions & 60 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ci:
1919
skip: [pyright, mypy]
2020
repos:
2121
- repo: https://github.com/astral-sh/ruff-pre-commit
22-
rev: v0.4.3
22+
rev: v0.4.7
2323
hooks:
2424
- id: ruff
2525
args: [--exit-non-zero-on-fix]
@@ -40,7 +40,7 @@ repos:
4040
pass_filenames: true
4141
require_serial: false
4242
- repo: https://github.com/codespell-project/codespell
43-
rev: v2.2.6
43+
rev: v2.3.0
4444
hooks:
4545
- id: codespell
4646
types_or: [python, rst, markdown, cython, c]
@@ -92,7 +92,7 @@ repos:
9292
- id: sphinx-lint
9393
args: ["--enable", "all", "--disable", "line-too-long"]
9494
- repo: https://github.com/pre-commit/mirrors-clang-format
95-
rev: v18.1.4
95+
rev: v18.1.5
9696
hooks:
9797
- id: clang-format
9898
files: ^pandas/_libs/src|^pandas/_libs/include

ci/code_checks.sh

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
7171
-i ES01 `# For now it is ok if docstrings are missing the extended summary` \
7272
-i "pandas.Series.dt PR01" `# Accessors are implemented as classes, but we do not document the Parameters section` \
7373
-i "pandas.DataFrame.max RT03" \
74-
-i "pandas.DataFrame.mean RT03,SA01" \
75-
-i "pandas.DataFrame.median RT03,SA01" \
74+
-i "pandas.DataFrame.mean RT03" \
75+
-i "pandas.DataFrame.median RT03" \
7676
-i "pandas.DataFrame.min RT03" \
7777
-i "pandas.DataFrame.plot PR02" \
7878
-i "pandas.Grouper PR02" \
@@ -84,7 +84,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
8484
-i "pandas.MultiIndex.get_loc_level PR07" \
8585
-i "pandas.MultiIndex.levshape SA01" \
8686
-i "pandas.MultiIndex.names SA01" \
87-
-i "pandas.MultiIndex.nlevels SA01" \
8887
-i "pandas.MultiIndex.remove_unused_levels RT03,SA01" \
8988
-i "pandas.MultiIndex.reorder_levels RT03,SA01" \
9089
-i "pandas.MultiIndex.set_levels RT03,SA01" \
@@ -343,7 +342,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
343342
-i "pandas.arrays.NumpyExtensionArray SA01" \
344343
-i "pandas.arrays.SparseArray PR07,SA01" \
345344
-i "pandas.arrays.TimedeltaArray PR07,SA01" \
346-
-i "pandas.bdate_range RT03,SA01" \
347345
-i "pandas.core.groupby.DataFrameGroupBy.__iter__ RT03,SA01" \
348346
-i "pandas.core.groupby.DataFrameGroupBy.agg RT03" \
349347
-i "pandas.core.groupby.DataFrameGroupBy.aggregate RT03" \
@@ -404,7 +402,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
404402
-i "pandas.core.window.rolling.Window.std PR01" \
405403
-i "pandas.core.window.rolling.Window.var PR01" \
406404
-i "pandas.date_range RT03" \
407-
-i "pandas.describe_option SA01" \
408405
-i "pandas.errors.AbstractMethodError PR01,SA01" \
409406
-i "pandas.errors.AttributeConflictWarning SA01" \
410407
-i "pandas.errors.CSSWarning SA01" \
@@ -467,27 +464,13 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
467464
-i "pandas.io.stata.StataReader.variable_labels RT03,SA01" \
468465
-i "pandas.io.stata.StataWriter.write_file SA01" \
469466
-i "pandas.json_normalize RT03,SA01" \
470-
-i "pandas.merge PR07" \
471467
-i "pandas.merge_asof PR07,RT03" \
472-
-i "pandas.merge_ordered PR07" \
473-
-i "pandas.option_context SA01" \
474468
-i "pandas.period_range RT03,SA01" \
475-
-i "pandas.pivot PR07" \
476-
-i "pandas.pivot_table PR07" \
477469
-i "pandas.plotting.andrews_curves RT03,SA01" \
478-
-i "pandas.plotting.autocorrelation_plot RT03,SA01" \
479470
-i "pandas.plotting.lag_plot RT03,SA01" \
480-
-i "pandas.plotting.parallel_coordinates PR07,RT03,SA01" \
481471
-i "pandas.plotting.scatter_matrix PR07,SA01" \
482-
-i "pandas.plotting.table PR07,RT03,SA01" \
483-
-i "pandas.qcut PR07,SA01" \
484-
-i "pandas.read_orc SA01" \
485-
-i "pandas.read_spss SA01" \
486-
-i "pandas.reset_option SA01" \
487472
-i "pandas.set_eng_float_format RT03,SA01" \
488-
-i "pandas.show_versions SA01" \
489473
-i "pandas.testing.assert_extension_array_equal SA01" \
490-
-i "pandas.testing.assert_series_equal PR07,SA01" \
491474
-i "pandas.tseries.offsets.BDay PR02,SA01" \
492475
-i "pandas.tseries.offsets.BQuarterBegin PR02" \
493476
-i "pandas.tseries.offsets.BQuarterBegin.freqstr SA01" \
@@ -779,7 +762,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
779762
-i "pandas.tseries.offsets.YearEnd.nanos GL08" \
780763
-i "pandas.tseries.offsets.YearEnd.normalize GL08" \
781764
-i "pandas.tseries.offsets.YearEnd.rule_code GL08" \
782-
-i "pandas.unique PR07" \
783765
-i "pandas.util.hash_pandas_object PR07,SA01" # There should be no backslash in the final line, please keep this comment in the last ignored function
784766

785767
RET=$(($RET + $?)) ; echo $MSG "DONE"

ci/deps/circle-310-arm64.yaml renamed to ci/deps/circle-311-arm64.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: pandas-dev
22
channels:
33
- conda-forge
44
dependencies:
5-
- python=3.10
5+
- python=3.11
66

77
# build dependencies
88
- versioneer[toml]

0 commit comments

Comments
 (0)