Skip to content

Conversation

@hoechenberger
Copy link
Member

@hoechenberger hoechenberger commented Dec 8, 2023

Fixes packaging bug introduced in #12269

Addresses the issues raised in:
mne-tools/mne-bids-pipeline#825 (comment)

mne-tools/mne-bids#1206 (comment)

Ultimately, we should start testing the installed package(s), not simply
fire up the tests from the root of the checked-out repo.

cc @cbrnr @sappelhoff

Fixes packaging bug introduced in mne-tools#12269

Addresses the issues raised in:
mne-tools/mne-bids-pipeline#825 (comment)

mne-tools/mne-bids#1206 (comment)

Ultimately, we should start testing the installed package(s), not simply
fire up the tests from the root of the checked-out repo.
@hoechenberger
Copy link
Member Author

hoechenberger commented Dec 8, 2023

@larsoner I have tried one possible approach following your comment. WDYT?

@larsoner
Copy link
Member

larsoner commented Dec 8, 2023

Okay with my test commit locally I get:

E           FileNotFoundError: [Errno 2] No such file or directory: '/home/larsoner/python/virtualenvs/base/lib/python3.11/site-packages/mne/forward/../data/coil_def.dat'

Hopefully GHA conda/mamba CIs fail the same way here, then we'll know we're testing properly

@hoechenberger
Copy link
Member Author

Great, thanks!

@larsoner
Copy link
Member

larsoner commented Dec 8, 2023

Okay it's successfully failing:

...
  File "/home/runner/miniconda3/envs/mne/lib/python3.10/site-packages/mne/forward/_make_forward.py", line 96, in _read_coil_def_file
    with open(fname, "r") as fid:
FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/miniconda3/envs/mne/lib/python3.10/site-packages/mne/forward/../data/coil_def.dat'
FAILED [ 20%]

on to some fixes...

@hoechenberger
Copy link
Member Author

@larsoner I think we're good here! I managed to simplify the inclusion list

@larsoner larsoner merged commit 8af33df into mne-tools:main Dec 8, 2023
@larsoner
Copy link
Member

larsoner commented Dec 8, 2023

Thanks @hoechenberger !

@hoechenberger hoechenberger deleted the hatchling-fixup branch December 8, 2023 22:05
snwnde pushed a commit to snwnde/mne-python that referenced this pull request Mar 20, 2024
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
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.

2 participants