You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ag...@apache.org on 2022/12/01 23:09:21 UTC
[arrow-datafusion-python] branch master updated: Fixes #81 - Add CI workflow for source distribution (#93)
This is an automated email from the ASF dual-hosted git repository.
agrove pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion-python.git
The following commit(s) were added to refs/heads/master by this push:
new 1180321 Fixes #81 - Add CI workflow for source distribution (#93)
1180321 is described below
commit 11803219ac256dcb02f0e624e5e56b1960baeda0
Author: Martin Grigorov <ma...@users.noreply.github.com>
AuthorDate: Fri Dec 2 01:09:18 2022 +0200
Fixes #81 - Add CI workflow for source distribution (#93)
Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
---
.DS_Store | Bin 6148 -> 0 bytes
.github/workflows/build.yml | 26 ++++++++++++++++++++++++++
pyproject.toml | 7 ++++++-
3 files changed, 32 insertions(+), 1 deletion(-)
diff --git a/.DS_Store b/.DS_Store
deleted file mode 100644
index 4d1b949..0000000
Binary files a/.DS_Store and /dev/null differ
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index e37c956..868fd89 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -115,6 +115,32 @@ jobs:
name: dist
path: target/wheels/*
+ build-sdist:
+ needs: [generate-license]
+ name: Source distribution
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - run: rm LICENSE.txt
+ - name: Download LICENSE.txt
+ uses: actions/download-artifact@v2
+ with:
+ name: python-wheel-license
+ path: .
+ - run: cat LICENSE.txt
+ - name: Build sdist
+ run: |
+ docker run --rm -v $(pwd):/io \
+ --workdir /io \
+ ghcr.io/pyo3/maturin:v0.14.2 \
+ build --release --sdist --locked
+ find target/wheels/
+ - name: Archive wheels
+ uses: actions/upload-artifact@v2
+ with:
+ name: dist
+ path: target/wheels/*
+
# NOTE: PyPI publish needs to be done manually for now after release passed the vote
# release:
# name: Publish in PyPI
diff --git a/pyproject.toml b/pyproject.toml
index f4f73bb..4617613 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -55,4 +55,9 @@ repository = "https://github.com/apache/arrow-datafusion-python"
profile = "black"
[tool.maturin]
-sdist-include = ["Cargo.lock"]
+include = [
+ { path = "Cargo.lock", format = "sdist" }
+]
+exclude = [".github/**", "ci/**", ".asf.yaml"]
+# Require Cargo.lock is up to date
+locked = true