Skip to content

Add missing DNAD.fpp test sample - #377

Open
krystophny wants to merge 2 commits into
jameskermode:masterfrom
krystophny:add-missing-dnad-sample
Open

Add missing DNAD.fpp test sample#377
krystophny wants to merge 2 commits into
jameskermode:masterfrom
krystophny:add-missing-dnad-sample

Conversation

@krystophny

Copy link
Copy Markdown
Contributor

test_parser.py::TestParser::test_parse_dnad and test_transform.py::TestTransform::test_parse_dnad reference test/samples/DNAD.fpp, which was never committed because .gitignore excludes *.fpp globally. Both tests fail with FileNotFoundError on a clean checkout. This un-ignores .fpp files under test/samples and adds the sample from the DNAD project (https://github.com/joddlehod/dnad, dnad.F90), whose structure matches the assertions in both tests. The file's license permits redistribution, and an older DNAD version already ships in examples/cylinder/DNAD.f90.

Verification

Test fails on main

$ cd test && python -m pytest test_parser.py test_transform.py --import-mode=importlib -q
FAILED test_parser.py::TestParser::test_parse_dnad - FileNotFoundError: ...
FAILED test_transform.py::TestTransform::test_parse_dnad - FileNotFoundError: ...
2 failed, 8 passed

Test passes after fix

$ cd test && python -m pytest test_parser.py test_transform.py --import-mode=importlib -q
..........                                                               [100%]
10 passed in 0.21s

@jameskermode ready for review.

test_parser.py and test_transform.py reference test/samples/DNAD.fpp,
which was never committed because .gitignore excludes *.fpp globally,
so both test_parse_dnad cases fail with FileNotFoundError on a clean
checkout. Un-ignore .fpp files under test/samples and add the sample
from the DNAD project (github.com/joddlehod/dnad, dnad.F90), whose
structure matches the assertions in both tests.
numpy 2.5 ships only manylinux_2_28 wheels, so the cp312 and cp313
Linux wheel builds fall back to compiling numpy from source inside the
default manylinux2014 container, where gcc 10.2.1 fails numpy's
'requires GCC >= 10.3' check. Build in the manylinux_2_28 image, whose
toolchain is new enough and where numpy wheels install directly.
@krystophny

Copy link
Copy Markdown
Contributor Author

Wheel CI failed for cp312/cp313 on Linux: numpy 2.5 ships only manylinux_2_28 wheels, so the default manylinux2014 container built numpy from source and failed its gcc >= 10.3 check. Included a one-line workflow fix building Linux wheels in the manylinux_2_28 image.

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.

1 participant