Skip to content

Conversation

@DanielDerefaka
Copy link

Summary

The LICENSE and NOTICE files were referenced in setup.py's package_data but with the wrong key ("" instead of "requests"). This caused them to not be included in wheel builds.

Fixed by:

  1. Copying LICENSE and NOTICE into src/requests/ directory
  2. Updating package_data to use "requests" as the key

This is a minimal fix that doesn't require migrating to a new build system.

Why this matters

The Apache License requires inclusion of the NOTICE file in distributions. Currently, the wheel distribution is missing this file.

Fixes #7034

Contribution by Gittensor, see my contribution statistics at https://gittensor.io/miners/details?githubId=101010297

The LICENSE and NOTICE files were referenced in setup.py's package_data
but with the wrong key ("" instead of "requests"). This caused them to
not be included in wheel builds.

Fixed by:
1. Copying LICENSE and NOTICE into src/requests/ directory
2. Updating package_data to use "requests" as the key

This is required by the Apache License which mandates inclusion of the
NOTICE file in distributions.

Fixes psf#7034
@DanielDerefaka
Copy link
Author

@clee would you review this PR?

@clee
Copy link
Contributor

clee commented Jan 3, 2026

@clee would you review this PR?

Wrong clee, I’m guessing

@sigmavirus24
Copy link
Contributor

Contribution by Gittensor,

Sounds as though you did not actually perform this change yourself or make the contribution in good faith.

This is also the wrong change.

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.

NOTICE file missing in wheel

3 participants