Skip to content

Commit

Permalink
Use constraints file form
Browse files Browse the repository at this point in the history
  • Loading branch information
oerc0122 committed Dec 20, 2024
1 parent 15fd97d commit b24953d
Showing 1 changed file with 12 additions and 39 deletions.
51 changes: 12 additions & 39 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ extras =
phonopy-reader
brille
commands =
{[testenv]test_command} --cov -m multiple_extras
{[testenv]test_command} --cov -m "multiple_extras"

[testenv:py310-no-c]
install_command = {[testenv]install_command} -Csetup-args="-Dpython_only=true"
Expand All @@ -71,42 +71,15 @@ extras =
matplotlib
phonopy-reader
brille
commands = {[testenv]test_command} -m 'not c_extension'
commands = {[testenv]test_command} -m "not c_extension"

[testenv:py310-minrequirements-linux]
skip_install = True
allowlist_externals = rm
install_command =
python -m pip install --force-reinstall {opts} {packages}
platform = linux
deps =
numpy==1.24.0
-r{toxinidir}/tests_and_analysis/tox_requirements.txt
commands_pre =
python -m pip install --force-reinstall \
-r{toxinidir}/tests_and_analysis/minimum_euphonic_requirements.txt
python -m pip install --force-reinstall \
-r{toxinidir}/tests_and_analysis/tox_requirements.txt
# Force rebuild of euphonic extension to avoid Numpy clash
rm -rf {toxinidir}/build
python -m pip install '{toxinidir}[matplotlib,phonopy-reader,brille]'
commands = {[testenv]test_command}

[testenv:py310-minrequirements-mac]
skip_install = True
allowlist_externals = rm
install_command =
python -m pip install --force-reinstall {opts} {packages}
platform = darwin
deps =
numpy==1.24.0
-r{toxinidir}/tests_and_analysis/tox_requirements.txt
commands_pre =
python -m pip install --force-reinstall \
-r{toxinidir}/tests_and_analysis/minimum_euphonic_requirements_mac.txt
python -m pip install --force-reinstall \
-r{toxinidir}/tests_and_analysis/tox_requirements.txt
# Force rebuild of euphonic extension to avoid Numpy clash
rm -rf {toxinidir}/build
python -m pip install '{toxinidir}[matplotlib,phonopy-reader,brille]'
commands = {[testenv]test_command}
[testenv:py310-minrequirements-{linux,mac}]
set_env =
linux: PIP_CONSTRAINT={toxinidir}/tests_and_analysis/minimum_euphonic_requirements.txt
mac: PIP_CONSTRAINT={toxinidir}/tests_and_analysis/minimum_euphonic_requirements_mac.txt
extras =
{[testenv]extras}
matplotlib
phonopy-reader
brille
commands = {[testenv]test_command} -m "multiple_extras"

0 comments on commit b24953d

Please sign in to comment.