Support publishing GPL sources in workflows#172
Merged
Conversation
Add a custom action for pulling GPL sources which we need to provide access to for certain package builds. The canonical example is NumPy, which we redistribute the gcc source used to build the wheels (and is therefore the default). Since we expect this to be used with manylinux container images (based on RockyLinux), use dnf-based tooling in the action's steps. AI-Generated: Uses Claude Sonnet 5 Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Publish GPL sources alongside our wheels if they're present so we can be license compliant. AI-Generated: Uses Claude Sonnet 5 Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
We need to ensure that the GPL sources used in the NumPy builds are provided to be license compliant. Add a new job to get them and pass them along to the publish step. Use a new MANYLINUX_RISCV64_IMAGE variable at the environment level so that the collect-gpl-sources action pulls the sources from the same container image we used for building. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Add some extra logic to automate linking to any GPL source artifacts we provide along with our builds. AI-Generated: Uses Claude Sonnet 5 Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Contributor
|
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
threexc
force-pushed
the
tgamblin/publish-gpl-sources
branch
from
July 16, 2026 19:32
8446072 to
4075e7a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In the wheel_builder repository we had a specific process for linking to any GPL sources which were used as part of wheel builds (for example, numpy pulled and linked the GCC sources from the container it was built with). Add a custom action (
collect-gpl-sources) to do this and use it alongsidepublish-wheels, then make use of it inbuild-numpy.yml. Also update theupdate_doc.pyscript to support automatically generating notes about these artifacts, and provide a new section to cover this usage indocs/development.md.Trigger: numpy:v2.5.0
Trigger: numpy:v2.5.1