HyukjinKwon opened a new pull request, #609:
URL: https://github.com/apache/spark-connect-rust/pull/609
### What changes were proposed in this pull request?
Two fixes to the licensing documents of the 4.3.0 artifacts, following #589
(NOTICE).
1. **LICENSE lists the bundled third-party code, with its license texts.**
After the Apache License 2.0 text, LICENSE now has the section that Apache
Spark's LICENSE has: "This product bundles various third-party components under
other open source licenses". It covers the files of this repository that are
not under the Apache License:
- `python/pyspark/loose_version.py`: the Python Software Foundation
License, as in Spark's LICENSE;
- `python/pyspark/cloudpickle/*.py`: BSD 3-Clause, as in Spark's LICENSE;
- `python/pyspark/errors/exceptions/tblib.py`: BSD 2-Clause. It is
adapted from tblib, whose license it carries in its header; Spark's LICENSE
does not list it;
- `crates/spark-connect/src/srs_registry.csv`: the MIT License of PROJ.
It is generated from the data of PROJ 9.8.1, and PROJ's `COPYING` puts its data
files under that license.
The texts follow the summary in LICENSE itself:
- the PSF and cloudpickle texts from Spark's `licenses/`;
- tblib's from the header of `tblib.py`;
- PROJ's `COPYING` at 9.8.1.
So every artifact that ships LICENSE carries them, with no new file to
package. The sdist and the wheel already ship it since #97.
2. **The published crates ship LICENSE and NOTICE.** `cargo package`
packages only the files under a crate's directory, so `apache-spark-connect`,
`-core` and `-proto` shipped neither file: 4.2.0 did not, and 4.3.0 would not
have either. Each of the three crates now has `LICENSE` and `NOTICE` as links
to the root files, as the crates of Apache Arrow do. `cargo package` stores
their contents as regular files.
- The release workflow checks that every published crate packages both
files: in the dry run, and in the finalize job before `cargo publish`.
### Why are the changes needed?
[ASF release
policy](https://www.apache.org/legal/release-policy.html#licensing-documentation)
expects LICENSE and NOTICE in every distributed artifact. LICENSE has to cover
the bundled code that is under other licenses, some of which, like the PSF and
BSD licenses, require their texts to be reproduced.
A LICENSE-binary for the statically linked Rust dependencies of the wheel is
left to a later release.
### Does this PR introduce _any_ user-facing change?
No code change. The release artifacts carry the licensing documents above.
### How was this patch tested?
- `cargo package --list -p <crate>` shows `LICENSE` and `NOTICE` for all
three crates. The packaged `apache-spark-connect-proto` crate contains both as
regular files: `LICENSE` is 31,356 bytes, the whole file.
- The new release-workflow check, run locally, passes. With a crate's
`NOTICE` removed, it fails.
- `maturin sdist`: it declares `License-File: LICENSE` and `NOTICE`, and
both are in the tarball; the License-File check of `release.yml` passes. Its
`LICENSE` has the new section, and `twine check --strict` passes.
- `release.yml` parses as YAML, and LICENSE has no trailing whitespace.
### 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]