Skip to content

ensure data folder included in wheel/sdist#556

Merged
larsoner merged 4 commits intoLABSN:mainfrom
drammock:ruff
Feb 10, 2026
Merged

ensure data folder included in wheel/sdist#556
larsoner merged 4 commits intoLABSN:mainfrom
drammock:ruff

Conversation

@drammock
Copy link
Copy Markdown
Member

@drammock drammock commented Feb 10, 2026

closes #554

@drammock drammock requested a review from larsoner February 10, 2026 17:05
if isinstance(obj, (Rectangle | Circle | Diamond | Triangle)):
return self._point_in_tris(pos, obj)
elif isinstance(obj, (ConcentricCircles, FixationDot)):
elif isinstance(obj, (ConcentricCircles | FixationDot)):
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.

If you want and you're bored (hah!), you could enable the ruff rule and let it autofix. No need to do it now but next time one of us is poking around might be a quick fix

source = "vcs"

[tool.hatch.build.targets.sdist.force-include]
"expyfun/data" = "expyfun/data"
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.

I wonder why we don't have to do this for MNE-Python and why it differs per platform... but not enough to investigate 😄

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

FWIW, before this PR python -m build -w on linux yields a wheel with no data folder. So probably what's going on is that it's not a platform-specific bug, and somehow I ended up with an editable install on my linux system.

Why you don't have to do it for mne is because mne/data/__init__.py exists

@larsoner larsoner merged commit e38f507 into LABSN:main Feb 10, 2026
12 checks passed
@drammock drammock deleted the ruff branch February 10, 2026 18:01
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.

manifest problem?

2 participants