Skip to content

Commit

Permalink
Merge branch 'main' into fix/group_by_agg_pyarrow_bool_numpy_same_type
Browse files Browse the repository at this point in the history
  • Loading branch information
rhshadrach authored Oct 6, 2024
2 parents 9c2f9f2 + 05fa958 commit fef315d
Show file tree
Hide file tree
Showing 296 changed files with 5,273 additions and 2,845 deletions.
14 changes: 12 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,13 @@ jobs:
no_output_timeout: 30m # Sometimes the tests won't generate any output, make sure the job doesn't get killed by that
command: |
pip3 install cibuildwheel==2.20.0
cibuildwheel --output-dir wheelhouse
if [[ $CIBW_BUILD == cp313t* ]]; then
# TODO: temporarily run 3.13 free threaded builds without build isolation
# since we need pre-release cython
CIBW_BUILD_FRONTEND="pip; args: --no-build-isolation" cibuildwheel --output-dir wheelhouse
else
cibuildwheel --output-dir wheelhouse
fi
environment:
CIBW_BUILD: << parameters.cibw-build >>
Expand Down Expand Up @@ -141,6 +147,10 @@ workflows:
cibw-build: ["cp310-manylinux_aarch64",
"cp311-manylinux_aarch64",
"cp312-manylinux_aarch64",
"cp313-manylinux_aarch64",
"cp313t-manylinux_aarch64",
"cp310-musllinux_aarch64",
"cp311-musllinux_aarch64",
"cp312-musllinux_aarch64",]
"cp312-musllinux_aarch64",
"cp313-musllinux_aarch64",
"cp313t-musllinux_aarch64"]
2 changes: 2 additions & 0 deletions .github/actions/setup-conda/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ runs:
- name: Install ${{ inputs.environment-file }}
uses: mamba-org/setup-micromamba@v1
with:
# Pinning to avoid 2.0 failures
micromamba-version: '1.5.10-0'
environment-file: ${{ inputs.environment-file }}
environment-name: test
condarc-file: ci/.condarc
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/code-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on:
push:
branches:
- main
- 2.2.x
- 2.3.x
pull_request:
branches:
- main
- 2.2.x
- 2.3.x

env:
ENV_FILE: environment.yml
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docbuild-and-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ on:
push:
branches:
- main
- 2.2.x
- 2.3.x
tags:
- '*'
pull_request:
branches:
- main
- 2.2.x
- 2.3.x

env:
ENV_FILE: environment.yml
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/package-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on:
push:
branches:
- main
- 2.2.x
- 2.3.x
pull_request:
branches:
- main
- 2.2.x
- 2.3.x
types: [ labeled, opened, synchronize, reopened ]

permissions:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on:
push:
branches:
- main
- 2.2.x
- 2.3.x
pull_request:
branches:
- main
- 2.2.x
- 2.3.x
paths-ignore:
- "doc/**"
- "web/**"
Expand Down Expand Up @@ -380,7 +380,7 @@ jobs:
fetch-depth: 0

- name: Set up Python Free-threading Version
uses: deadsnakes/action@v3.1.0
uses: deadsnakes/action@v3.2.0
with:
python-version: 3.13-dev
nogil: true
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ jobs:
python: [["cp310", "3.10"], ["cp311", "3.11"], ["cp312", "3.12"], ["cp313", "3.13"], ["cp313t", "3.13"]]
include:
# TODO: Remove this plus installing build deps in cibw_before_build.sh
# and test deps in cibw_before_test.sh after pandas can be built with a released NumPy/Cython
- python: ["cp313", "3.13"]
cibw_build_frontend: 'pip; args: --no-build-isolation'
# after pandas can be built with a released NumPy/Cython
- python: ["cp313t", "3.13"]
cibw_build_frontend: 'pip; args: --no-build-isolation'
# Build Pyodide wheels and upload them to Anaconda.org
Expand Down Expand Up @@ -187,11 +185,9 @@ jobs:
- name: Test Windows Wheels
if: ${{ matrix.buildplat[1] == 'win_amd64' }}
shell: pwsh
# TODO: Remove NumPy nightly install when there's a 3.13 wheel on PyPI
run: |
$TST_CMD = @"
python -m pip install hypothesis>=6.84.0 pytest>=7.3.2 pytest-xdist>=3.4.0;
${{ matrix.python[1] == '3.13' && 'python -m pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy;' }}
python -m pip install `$(Get-Item pandas\wheelhouse\*.whl);
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`\"])`';
"@
Expand Down
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,3 @@ graft pandas/_libs/include

# Include cibw script in sdist since it's needed for building wheels
include scripts/cibw_before_build.sh
include scripts/cibw_before_test.sh
6 changes: 3 additions & 3 deletions asv_bench/benchmarks/indexing_engines.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def setup(self, engine_and_dtype, index_type, unique, N):
arr = np.array([1, 2, 3], dtype=dtype).repeat(N)

self.data = engine(arr)
# code belows avoids populating the mapping etc. while timing.
# code below avoids populating the mapping etc. while timing.
self.data.get_loc(2)

self.key_middle = arr[len(arr) // 2]
Expand Down Expand Up @@ -140,7 +140,7 @@ def setup(self, engine_and_dtype, index_type, unique, N):
mask[-1] = True

self.data = engine(BaseMaskedArray(arr, mask))
# code belows avoids populating the mapping etc. while timing.
# code below avoids populating the mapping etc. while timing.
self.data.get_loc(2)

self.key_middle = arr[len(arr) // 2]
Expand Down Expand Up @@ -169,7 +169,7 @@ def setup(self, index_type):
}[index_type]

self.data = libindex.ObjectEngine(arr)
# code belows avoids populating the mapping etc. while timing.
# code below avoids populating the mapping etc. while timing.
self.data.get_loc("b")

def time_get_loc(self, index_type):
Expand Down
Loading

0 comments on commit fef315d

Please sign in to comment.