Skip to content
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

Change vendoring script to preserve license files #2952

Merged
merged 4 commits into from
Jan 7, 2022

Conversation

abravalheri
Copy link
Contributor

@abravalheri abravalheri commented Dec 21, 2021

Summary of changes

As pointed out by #2950, it is probably a good idea to keep the license
files for the vendored dependencies.

This is done by changing the pavement.py tasks:

  • In the case of vendored packages, the license files are moved to the package folder
  • In the case of vendored modules, the license files are renamed to:
    f"{module.basename()}.{license_file.basename()}"

Closes #2950 (probably? not sure if legally that is enough)

Pull Request Checklist

As pointed out by pypa#2950, it is probably a good idea to keep the license
files for the vendored dependencies.

This is done by changing the `pavement.py` tasks.
I believe that only wheels install licenses in the *.dist-info.
@abravalheri abravalheri marked this pull request as ready for review December 21, 2021 19:55
@abravalheri
Copy link
Contributor Author

abravalheri commented Dec 22, 2021

The error in the CI is related to #2921 and not to the changes in the PR.

The solution for this problem is being discussed in #2922.

@abravalheri abravalheri merged commit 6839fee into pypa:main Jan 7, 2022
@abravalheri abravalheri deleted the issue-2950 branch January 7, 2022 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Legal] Include the license of all libraries in _vendor
1 participant