Skip to content

Commit

Permalink
Release test against Numpy < 2
Browse files Browse the repository at this point in the history
Troubleshooting test failures here... I *think* the wheels are all
built against pre-v2 numpy and so this test is failing due to the ABI
change when test runner uses a newer version.

In this case we can go ahead and make a new release that builds
against the newer Numpy ABI, which requires the min version to be
increased to 1.25.

One issue will be that Mantid is still on 1.24.
  • Loading branch information
ajjackson committed Jul 17, 2024
1 parent 8dd48f3 commit 5e23cf9
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions release_tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,28 @@ commands_pre =
commands = {[testenv]test_command}


[testenv:pypi-{py38,py39,py310,py311}]
[testenv:pypi-{py38}]
install_command = python -m pip install {opts} {packages}
deps =
-r{toxinidir}/tests_and_analysis/tox_requirements.txt
commands_pre =
python -m pip install \
--force-reinstall \
'euphonic[matplotlib,phonopy_reader,brille]=={env:EUPHONIC_VERSION}' \
--only-binary 'euphonic'
python -m pip install numpy==1.24
commands = {[testenv]test_command}

[testenv:pypi-{py39,py310,py311}]
install_command = python -m pip install {opts} {packages}
deps =
numpy
-r{toxinidir}/tests_and_analysis/tox_requirements.txt
commands_pre =
python -m pip install \
--force-reinstall \
'euphonic[matplotlib,phonopy_reader,brille]=={env:EUPHONIC_VERSION}' \
--only-binary 'euphonic'
python -m pip install numpy==1.26
commands = {[testenv]test_command}

[testenv:pypi-py38-min]
Expand Down

0 comments on commit 5e23cf9

Please sign in to comment.