HyukjinKwon opened a new pull request, #589: URL: https://github.com/apache/spark-connect-rust/pull/589
### 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. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
