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 8cf6d154 [MINOR][BUILD] Add the NOTICE file, and ship it in the sdist 
and the wheel as ASF releases require
8cf6d154 is described below

commit 8cf6d154dfd794793bafa9edccde114105dfb8cc
Author: Hyukjin Kwon <[email protected]>
AuthorDate: Fri Nov 13 10:21:53 2026 +0900

    [MINOR][BUILD] Add the NOTICE file, and ship it in the sdist and the wheel 
as ASF releases require
    
    ### What changes were proposed in this pull request?
    
    Add the ASF `NOTICE` file at the repository root, and ship it in both 
release artifacts of `pyspark-client-rust`:
    
    ```
    Apache Spark Connect Rust Client
    Copyright 2023 and onwards The Apache Software Foundation.
    
    This product includes software developed at
    The Apache Software Foundation (https://www.apache.org/).
    ```
    
    - **The wheel**: maturin picks `NOTICE` up as a license file. It puts it in 
`dist-info/licenses/NOTICE` and declares `License-File: NOTICE` in the metadata.
    - **The sdist**: the declaration is in its `PKG-INFO` too, but maturin does 
not pull a root-level file into the sdist, since the crate lives under 
`crates/pyspark-rs/`. So `pyproject.toml` includes `NOTICE` for the sdist, next 
to `LICENSE`, the same fix as #97. Without it, PyPI would reject the sdist (PEP 
639), as it did for `LICENSE` in 4.2.0. The release workflow's License-File 
check would also fail the RC first.
    
    ### Why are the changes needed?
    
    [ASF release 
policy](https://www.apache.org/legal/release-policy.html#licensing-documentation)
 expects a `LICENSE` and a `NOTICE` file in every release. The source headers 
already say "See the NOTICE file distributed with this work", but the 
repository had no `NOTICE`. So 4.2.0 shipped without one, and 4.3.0 would have 
too.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No code change. The 4.3.0 wheel and sdist carry `NOTICE` next to `LICENSE`.
    
    ### How was this patch tested?
    
    With maturin 1.x, on this branch:
    - `maturin sdist`: `PKG-INFO` declares `License-File: LICENSE` and 
`NOTICE`, and both are in the tarball. The release workflow's check, that each 
declared License-File is present, passes.
    - `maturin build --release --locked`: the abi3 wheel has 
`dist-info/licenses/LICENSE` and `dist-info/licenses/NOTICE`, and declares both.
    - `twine check --strict` passes on the sdist and the wheel.
    
    ### 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 #589 from HyukjinKwon/MINOR-add-notice-file.
    
    Authored-by: Hyukjin Kwon <[email protected]>
    Signed-off-by: Hyukjin Kwon <[email protected]>
---
 NOTICE         | 5 +++++
 pyproject.toml | 5 +++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/NOTICE b/NOTICE
new file mode 100644
index 00000000..dc1b1f94
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1,5 @@
+Apache Spark Connect Rust Client
+Copyright 2023 and onwards The Apache Software Foundation.
+
+This product includes software developed at
+The Apache Software Foundation (https://www.apache.org/).
diff --git a/pyproject.toml b/pyproject.toml
index 227f8544..83e8a6a4 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -315,8 +315,9 @@ manifest-path = "crates/pyspark-rs/Cargo.toml"
 # crates/pyspark-rs/, so a root-level file outside it is not packaged. The 
metadata
 # still declares `License-File: LICENSE` in both artifacts, so PyPI (PEP 639) 
rejects
 # the sdist with "License-File LICENSE does not exist in distribution file". 
Ship the
-# LICENSE in the sdist so it satisfies the declared metadata.
-include = [{ path = "LICENSE", format = "sdist" }]
+# LICENSE in the sdist so it satisfies the declared metadata. The same holds 
for NOTICE, which
+# ASF releases carry next to LICENSE.
+include = [{ path = "LICENSE", format = "sdist" }, { path = "NOTICE", format = 
"sdist" }]
 # Use abi3 for a stable ABI compatible across Python 3.9+.
 features = ["pyo3/abi3-py39", "pyo3/extension-module"]
 # Keep tests out of the built wheel/sdist: our own offline suite lives outside 
the package


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to