-
Notifications
You must be signed in to change notification settings - Fork 343
Add LICENSE and NOTICE files for pyiceberg-core source distribution and wheel #1653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
kevinjqliu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i see in https://pypi.org/project/pyiceberg-core/ the metadata already mentions
License: Apache Software License
am i missing something?
Conda forge recommends LICENSE files to be available as part of sdist for re-distribution as conda packages |
kevinjqliu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch! Having the LICENSE and NOTICE in the artifacts is a requirement for every ASF release, lets fix this asap
https://www.apache.org/legal/release-policy.html#licensing-documentation
Could you also include the NOTICE file in this change?
|
cc @Fokko @liurenjie1024 @Xuanwo |
|
Quick command check for LICENSE and NOTICE file when building sdist and wheel using sdistLICENSE and NOTICE should be in top-level here. wheelNo LICENSE and NOTICE at all |
Done and verified the same in both sdit and whl!
|
kevinjqliu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I verified locally for both sdist and wheel
maturin sdist -o dist
tar -tzf dist/pyiceberg_core-*.tar.gz | grep -E '/(LICENSE|NOTICE)$'
pyiceberg_core-0.6.0/crates/iceberg/LICENSE
pyiceberg_core-0.6.0/crates/iceberg/NOTICE
pyiceberg_core-0.6.0/crates/integrations/datafusion/LICENSE
pyiceberg_core-0.6.0/crates/integrations/datafusion/NOTICE
pyiceberg_core-0.6.0/bindings/python/LICENSE
pyiceberg_core-0.6.0/bindings/python/NOTICE
pyiceberg_core-0.6.0/LICENSE
pyiceberg_core-0.6.0/NOTICE
maturin build --release -o dist
tar -tzf dist/pyiceberg_core-*.whl | grep -E '/(LICENSE|NOTICE)$'
pyiceberg_core-0.6.0.dist-info/licenses/LICENSE
pyiceberg_core-0.6.0.dist-info/licenses/NOTICE
Pasting the ASF policy,
For source packages, LICENSE and NOTICE MUST be located at the root of the distribution. For additional packages, they MUST be located in the distribution format's customary location for licensing materials, such as the META-INF directory of Java "jar" files.
source package is located at the root.
wheel package is in the licenses/ folder
|
CI issue should be resolved by #1654 |
Thanks @kevinjqliu !! |
liurenjie1024
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @sumanth-manchala for adding this!
Co-authored-by: Kevin Liu <[email protected]>
fa6e027
|
Thanks again @sumanth-manchala and thanks for the review @liurenjie1024 |

Which issue does this PR close?
What changes are included in this PR?
This adds LICENSE and NOTICE files to the PyPI sdist which is needed for distributing conda package. Also add those files to the wheel distribution
Are these changes tested?