Skip to content

Commit a20b3b5

Browse files
authored
ARROW-122 Wheel repair is not working as expected (#98)
* ARROW-122 Wheel repair is not working as expected * address warnings in workflows
1 parent 6e2bc1d commit a20b3b5

File tree

5 files changed

+20
-111
lines changed

5 files changed

+20
-111
lines changed

.github/workflows/benchmark.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
python-version: ["3.10"]
2222
fail-fast: false
2323
steps:
24-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v3
2525
- name: Setup Python
26-
uses: actions/setup-python@v2
26+
uses: actions/setup-python@v3
2727
with:
2828
python-version: ${{ matrix.python-version }}
2929
cache: 'pip'

.github/workflows/release-python.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Python Wheels
22

33
on:
44
push:
5+
branches: ["main"]
56
pull_request:
67

78
concurrency:
@@ -30,11 +31,11 @@ jobs:
3031

3132
steps:
3233
- name: Checkout pymongoarrow
33-
uses: actions/checkout@v2
34+
uses: actions/checkout@v3
3435
with:
3536
fetch-depth: 0
3637

37-
- uses: actions/setup-python@v2
38+
- uses: actions/setup-python@v3
3839

3940
- name: Install cibuildwheel
4041
run: python -m pip install "cibuildwheel>=2.4,<3"
@@ -53,7 +54,7 @@ jobs:
5354
MACOSX_DEPLOYMENT_TARGET: "10.13"
5455
run: python -m cibuildwheel --output-dir wheelhouse
5556

56-
- uses: actions/upload-artifact@v2
57+
- uses: actions/upload-artifact@v3
5758
with:
5859
name: ${{ matrix.python }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}
5960
path: ./bindings/python/wheelhouse/*.whl
@@ -63,11 +64,11 @@ jobs:
6364
name: Make SDist
6465
runs-on: ubuntu-latest
6566
steps:
66-
- uses: actions/checkout@v2
67+
- uses: actions/checkout@v3
6768
with:
6869
fetch-depth: 0
6970

70-
- uses: actions/setup-python@v2
71+
- uses: actions/setup-python@v3
7172
with:
7273
# Build sdist on lowest supported Python
7374
python-version: '3.7'
@@ -89,7 +90,7 @@ jobs:
8990
cd ..
9091
python -c "from pymongoarrow.lib import process_bson_stream"
9192
92-
- uses: actions/upload-artifact@v2
93+
- uses: actions/upload-artifact@v3
9394
with:
9495
name: "sdist"
9596
path: ./bindings/python/wheelhouse/*.tar.gz
@@ -100,13 +101,13 @@ jobs:
100101
name: Download Wheels
101102
steps:
102103
- name: Download all workflow run artifacts
103-
uses: actions/download-artifact@v2
104+
uses: actions/download-artifact@v3
104105
- name: Flatten directory
105106
working-directory: .
106107
run: |
107108
find . -mindepth 2 -type f -exec mv {} . \;
108109
find . -type d -empty -delete
109-
- uses: actions/upload-artifact@v2
110+
- uses: actions/upload-artifact@v3
110111
with:
111112
name: all-dist
112113
path: "./*"

.github/workflows/test-python.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Python Tests
22

33
on:
44
push:
5+
branches: ["main"]
56
pull_request:
67

78
concurrency:
@@ -20,8 +21,8 @@ jobs:
2021
runs-on: ubuntu-latest
2122

2223
steps:
23-
- uses: actions/checkout@v2
24-
- uses: actions/setup-python@v2
24+
- uses: actions/checkout@v3
25+
- uses: actions/setup-python@v3
2526
- uses: pre-commit/[email protected]
2627
with:
2728
extra_args: --all-files --hook-stage=manual
@@ -36,9 +37,9 @@ jobs:
3637
fail-fast: false
3738
name: CPython ${{ matrix.python-version }}-${{ matrix.os }}
3839
steps:
39-
- uses: actions/checkout@v2
40+
- uses: actions/checkout@v3
4041
- name: Setup Python
41-
uses: actions/setup-python@v2
42+
uses: actions/setup-python@v3
4243
with:
4344
python-version: ${{ matrix.python-version }}
4445
cache: 'pip'
@@ -83,9 +84,9 @@ jobs:
8384
docs:
8485
runs-on: ubuntu-latest
8586
steps:
86-
- uses: actions/checkout@v2
87+
- uses: actions/checkout@v3
8788
- name: Cache conda
88-
uses: actions/cache@v2
89+
uses: actions/cache@v3
8990
env:
9091
# Increase this value to reset cache if environment.yml has not changed
9192
CACHE_NUMBER: 0

bindings/python/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ skip = "pp* *-manylinux_i686 *_ppc64le *_s390x *-musllinux*"
1212
before-build = "bash ./cibw_before_build.sh"
1313
build-frontend = "build"
1414
test-command = "python -c \"from pymongoarrow.lib import process_bson_stream\""
15-
repair-wheel-command = "python repair_wheel.py {dest_dir} {wheel} {delocate_archs}"
15+
# Disable wheel repair, see https://jira.mongodb.org/browse/ARROW-122.
16+
repair-wheel-command = ""
1617

1718
[tool.cibuildwheel.environment]
1819
LIBBSON_INSTALL_DIR = "./libbson"

bindings/python/repair_wheel.py

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

0 commit comments

Comments
 (0)