diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 4d1b949d2..000000000 Binary files a/.DS_Store and /dev/null differ diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 49b518fda..cf9ee389d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -113,6 +113,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 f4f73bbf6..4617613cd 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