Skip to content

fix: include LICENSE file in dirac-common sdist and wheel#8450

Merged
aldbr merged 1 commit intoDIRACGrid:integrationfrom
chrisburr:fix/include-license-in-dirac-common
Feb 9, 2026
Merged

fix: include LICENSE file in dirac-common sdist and wheel#8450
aldbr merged 1 commit intoDIRACGrid:integrationfrom
chrisburr:fix/include-license-in-dirac-common

Conversation

@chrisburr
Copy link
Member

Summary

  • The dirac-common sub-package was missing the LICENSE file in published sdists and wheels because hatchling only auto-discovers license files in the package's own directory, not the monorepo root
  • Added [tool.hatch.build.targets.sdist.force-include] to dirac-common/pyproject.toml to pull the root LICENSE into the sdist
  • The wheel (built from the sdist) then auto-discovers the LICENSE and places it in .dist-info/licenses/

Use hatchling's force-include to pull the root LICENSE into the
dirac-common sdist. The wheel built from the sdist then auto-discovers
the LICENSE and places it in .dist-info/licenses/.
@aldbr
Copy link
Contributor

aldbr commented Feb 9, 2026

Same comment: DIRACGrid/diracx#776 (review)

@chrisburr
Copy link
Member Author

It isn't needed as it's auto-discovered from the sdist while building the wheel.

@aldbr aldbr merged commit 88fb547 into DIRACGrid:integration Feb 9, 2026
24 checks passed
@DIRACGridBot DIRACGridBot added the sweep:ignore Prevent sweeping from being ran for this PR label Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sweep:ignore Prevent sweeping from being ran for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants