Skip to content

fix: include header-only files in sdist#2909

Merged
agoose77 merged 3 commits into
mainfrom
agoose77/fix-header-only-inclusion
Dec 20, 2023
Merged

fix: include header-only files in sdist#2909
agoose77 merged 3 commits into
mainfrom
agoose77/fix-header-only-inclusion

Conversation

@agoose77

@agoose77 agoose77 commented Dec 19, 2023

Copy link
Copy Markdown
Collaborator

Fixes #2897 by ensuring that our SDist includes the header-only files. This is necessary both because semantically the SDist should represent a snapshot of the repo (in our case a generated snapshot), and because it's possible to build wheels from SDists, which is not possible if files are missing.

@agoose77
agoose77 requested a review from jpivarski December 19, 2023 22:24
@codecov

codecov Bot commented Dec 19, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1cc22e5) 81.98% compared to head (7f01673) 81.98%.

Additional details and impacted files

@jpivarski jpivarski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, good—this is another way to get header-only code, though I would think that users ordinarily wouldn't get it in a Python package; they'd use the CMakeLists fetch or explicitly download it...

Nope: the motivation for this is to make it possible to compile from the sdist. Full steam ahead!

@agoose77
agoose77 merged commit 1c52490 into main Dec 20, 2023
@agoose77
agoose77 deleted the agoose77/fix-header-only-inclusion branch December 20, 2023 17:46
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.

Header-only libraries are not included in SDist archives

2 participants