This is an automated email from the ASF dual-hosted git repository.
HyukjinKwon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark-connect-rust.git
The following commit(s) were added to refs/heads/master by this push:
new c7926e08 [MINOR][BUILD] List NumPy's _NoValueType in LICENSE, and
check the crates' LICENSE and NOTICE before the PyPI upload
c7926e08 is described below
commit c7926e082a30ac7f792dca2ef5341db93e671d6c
Author: Hyukjin Kwon <[email protected]>
AuthorDate: Fri Nov 13 15:06:15 2026 +0900
[MINOR][BUILD] List NumPy's _NoValueType in LICENSE, and check the crates'
LICENSE and NOTICE before the PyPI upload
### What changes were proposed in this pull request?
A follow-up of the post-merge review of #609:
- LICENSE lists `python/pyspark/_globals.py` under BSD 3-Clause, with
NumPy's copyright notice and license text. The file's `_NoValueType` class is
copied from NumPy. The text is NumPy's `LICENSE.txt`.
- In `.github/workflows/release.yml`'s `finalize` job, the check that the
published crates ship LICENSE and NOTICE moves above "Publish wheels + sdist to
PyPI", together with the "Install Rust toolchain" and "Install protoc" steps
that it needs. The step bodies are unchanged.
### Why are the changes needed?
#609's LICENSE says it lists every file that is not under the Apache
License, and `_globals.py` was missing. In `finalize`, the crate check ran
after the PyPI upload, which can't be undone, so a missing LICENSE or NOTICE
would be found only after the wheels were already published. The
`dryrun-crates` job runs the same check, but it isn't a `needs:` of `finalize`
(which needs only `resolve`), so nothing checked the crates before the upload.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
`release.yml` parses as YAML, and the step order was checked by parsing it.
The LICENSE block was compared with NumPy's `LICENSE.txt`. No code changed.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Opus 5.5
This pull request and its description were written by Isaac.
Closes #618 from HyukjinKwon/MINOR-license-numpy-release-order.
Authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
---
.github/workflows/release.yml | 18 +++++++++---------
LICENSE | 36 ++++++++++++++++++++++++++++++++++++
2 files changed, 45 insertions(+), 9 deletions(-)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index c19ad158..4f84efdd 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -486,15 +486,6 @@ jobs:
mkdir -p dist
gh release download "${TAG}" --repo "${UPSTREAM_REPO}" --dir dist
--pattern '*'
ls -l dist
- - name: Publish wheels + sdist to PyPI
- env:
- TWINE_USERNAME: __token__
- TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
- run: |
- set -euo pipefail
- python -m pip install --upgrade twine
- # --skip-existing makes a re-run after a partial upload safe.
- twine upload --skip-existing dist/*
- name: Install Rust toolchain
run: |
rustup toolchain install stable --profile minimal
@@ -517,6 +508,15 @@ jobs:
done
done
echo "Every crate packages LICENSE and NOTICE."
+ - name: Publish wheels + sdist to PyPI
+ env:
+ TWINE_USERNAME: __token__
+ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
+ run: |
+ set -euo pipefail
+ python -m pip install --upgrade twine
+ # --skip-existing makes a re-run after a partial upload safe.
+ twine upload --skip-existing dist/*
- name: Publish crates to crates.io (from the identical RC source)
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
diff --git a/LICENSE b/LICENSE
index 604523d4..48394f80 100644
--- a/LICENSE
+++ b/LICENSE
@@ -216,6 +216,7 @@ BSD 3-Clause
------------
python/pyspark/cloudpickle/*.py
+python/pyspark/_globals.py
BSD 2-Clause
@@ -548,6 +549,41 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+------------------------------------------------------------------------------------
+The license of python/pyspark/_globals.py, copied from NumPy
(https://numpy.org):
+
+Copyright (c) 2005-2025, NumPy Developers.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials provided
+ with the distribution.
+
+ * Neither the name of the NumPy Developers nor the names of any
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
------------------------------------------------------------------------------------
The license of python/pyspark/errors/exceptions/tblib.py, adapted from
https://github.com/ionelmc/python-tblib:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]