You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ho...@apache.org on 2021/08/23 19:24:44 UTC
[arrow-datafusion] branch master updated: build python wheels for
release rc tags (#927)
This is an automated email from the ASF dual-hosted git repository.
houqp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git
The following commit(s) were added to refs/heads/master by this push:
new 1fa6a7e build python wheels for release rc tags (#927)
1fa6a7e is described below
commit 1fa6a7e5d6f0b4eabaa890cfa76d5ce535a0d31f
Author: QP Hou <qp...@scribd.com>
AuthorDate: Mon Aug 23 12:24:36 2021 -0700
build python wheels for release rc tags (#927)
---
.github/workflows/python_build.yml | 50 ++++++++++++++++++++++----------------
python/Cargo.toml | 2 +-
2 files changed, 30 insertions(+), 22 deletions(-)
diff --git a/.github/workflows/python_build.yml b/.github/workflows/python_build.yml
index 1f083de..c010b96 100644
--- a/.github/workflows/python_build.yml
+++ b/.github/workflows/python_build.yml
@@ -15,11 +15,15 @@
# specific language governing permissions and limitations
# under the License.
-name: Build
+name: Python Release Build
on:
push:
tags:
- - v*
+ - '*-rc*'
+
+defaults:
+ run:
+ working-directory: ./python
jobs:
build-python-mac-win:
@@ -28,7 +32,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- python-version: ["3.6", "3.7", "3.8", "3.9"]
+ python-version: ["3.6"]
os: [macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
@@ -44,18 +48,18 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- pip install maturin
+ pip install maturin==0.11.2
- name: Build Python package
- run: cd python && maturin build --release --no-sdist --strip --interpreter python${{matrix.python_version}}
+ run: maturin build --release --no-sdist --strip
- - name: List wheels
+ - name: List Windows wheels
if: matrix.os == 'windows-latest'
- run: dir python/target\wheels\
+ run: dir target\wheels\
- - name: List wheels
+ - name: List Mac wheels
if: matrix.os != 'windows-latest'
- run: find ./python/target/wheels/
+ run: find target/wheels/
- name: Archive wheels
uses: actions/upload-artifact@v2
@@ -69,21 +73,25 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Build wheels
- run: docker run --rm -v $(pwd):/io konstin2/maturin build --release --manylinux
+ run: |
+ docker run --rm -v $(pwd):/io \
+ konstin2/maturin:v0.11.2 \
+ build --release --manylinux 2010
- name: Archive wheels
uses: actions/upload-artifact@v2
with:
name: dist
path: python/target/wheels/*
- release:
- name: Publish in PyPI
- needs: [build-manylinux, build-python-mac-win]
- runs-on: ubuntu-latest
- steps:
- - uses: actions/download-artifact@v2
- - name: Publish to PyPI
- uses: pypa/gh-action-pypi-publish@master
- with:
- user: __token__
- password: ${{ secrets.pypi_password }}
+ # NOTE: PyPI publish needs to be done manually for now after release passed the vote
+ # release:
+ # name: Publish in PyPI
+ # needs: [build-manylinux, build-python-mac-win]
+ # runs-on: ubuntu-latest
+ # steps:
+ # - uses: actions/download-artifact@v2
+ # - name: Publish to PyPI
+ # uses: pypa/gh-action-pypi-publish@master
+ # with:
+ # user: __token__
+ # password: ${{ secrets.pypi_password }}
diff --git a/python/Cargo.toml b/python/Cargo.toml
index 60cc74d..8dba538 100644
--- a/python/Cargo.toml
+++ b/python/Cargo.toml
@@ -30,7 +30,7 @@ edition = "2018"
libc = "0.2"
tokio = { version = "1.0", features = ["macros", "rt", "rt-multi-thread", "sync"] }
rand = "0.7"
-pyo3 = { version = "0.14.1", features = ["extension-module"] }
+pyo3 = { version = "0.14.1", features = ["extension-module", "abi3", "abi3-py36"] }
datafusion = { git = "https://github.com/apache/arrow-datafusion.git", rev = "4d61196dee8526998aee7e7bb10ea88422e5f9e1" }
[lib]