Skip to content

Change vendoring script to preserve license files#2952

Merged
abravalheri merged 4 commits intopypa:mainfrom
abravalheri:issue-2950
Jan 7, 2022
Merged

Change vendoring script to preserve license files#2952
abravalheri merged 4 commits intopypa:mainfrom
abravalheri:issue-2950

Conversation

@abravalheri
Copy link
Copy Markdown
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
Copy Markdown
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