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

Find license files for hatch-built python dependencies #547

Merged
merged 1 commit into from
Oct 7, 2022

Conversation

jonabc
Copy link
Contributor

@jonabc jonabc commented Oct 6, 2022

Python wheels built using hatch installs files in a "licenses" folder under dist-info, which was not previously being looked at. Longer term it might be better to examine all files under dist-info for license contents but this is an ok option in the short term to fix the immediate issue where license files aren't found.

hatch puts files in .dist-info/licenses
@jonabc
Copy link
Contributor Author

jonabc commented Oct 7, 2022

the licenses CI job didn't create a PR to update the out of date dependency metadata because this branch name ends in -licenses 🤦 . going to merge this and handle the metadata update when the check runs against the default branch

@jonabc jonabc merged commit d434a76 into master Oct 7, 2022
@jonabc jonabc deleted the handle-hatch-pip-licenses branch October 7, 2022 00:26
jonabc added a commit that referenced this pull request Oct 7, 2022
## 3.7.4

### Fixed

- Licenses for Python dependencies built with Hatchling are correctly found (#547)
@jonabc jonabc mentioned this pull request Oct 7, 2022
@ofek
Copy link

ofek commented Oct 7, 2022

fyi that directory will be the new standard https://peps.python.org/pep-0639/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants