Skip to content

Commit

Permalink
pkgs/sagemath-*/tox.ini: Make sagepython-norequirements actually use …
Browse files Browse the repository at this point in the history
…sage python
  • Loading branch information
mkoeppe committed Jul 26, 2022
1 parent 52e8c41 commit 64b212c
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 18 deletions.
12 changes: 7 additions & 5 deletions pkgs/sagemath-categories/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ setenv =
HOME={envdir}

passenv =
SAGE_NUM_THREADS
SAGE_NUM_THREADS_PARALLEL
# Parallel build
SAGE_NUM_THREADS
SAGE_NUM_THREADS_PARALLEL
# SAGE_VENV only for referring to the basepython
sagepython: SAGE_VENV

whitelist_externals =
bash


commands =
# Beware of the treacherous non-src layout. "./sage/" shadows the install sage package.
{envpython} -c 'import sys; "" in sys.path and sys.path.remove(""); import sage.cpython.builtin_types, sage.cpython.cython_metaclass, sage.cpython.debug, sage.structure.all, sage.categories.all'
Expand All @@ -36,7 +38,7 @@ commands =
bash -c 'cd bin && SAGE_SRC=$(python -c "from sage.env import SAGE_SRC; print(SAGE_SRC)") && sage-runtests --environment=sage.all__sagemath_categories --optional=sage $SAGE_SRC/sage/structure || echo "(lots of doctest failures are expected)"'

[testenv:sagepython]
passenv =
SAGE_VENV
basepython = {env:SAGE_VENV}/bin/python3

[testenv:sagepython-norequirements]
basepython = {env:SAGE_VENV}/bin/python3
11 changes: 7 additions & 4 deletions pkgs/sagemath-environment/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ setenv =
HOME={envdir}

passenv =
SAGE_NUM_THREADS
SAGE_NUM_THREADS_PARALLEL
# Parallel build
SAGE_NUM_THREADS
SAGE_NUM_THREADS_PARALLEL
# SAGE_VENV only for referring to the basepython
sagepython: SAGE_VENV

whitelist_externals =
bash
Expand All @@ -32,7 +35,7 @@ commands =
{envpython} -c 'import sys; "" in sys.path and sys.path.remove(""); from sage.features.all import all_features; print(sorted(all_features(), key=lambda x: x.name)); import sage.misc.package'

[testenv:sagepython]
passenv =
SAGE_VENV
basepython = {env:SAGE_VENV}/bin/python3

[testenv:sagepython-norequirements]
basepython = {env:SAGE_VENV}/bin/python3
11 changes: 7 additions & 4 deletions pkgs/sagemath-objects/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ setenv =
HOME={envdir}

passenv =
SAGE_NUM_THREADS
SAGE_NUM_THREADS_PARALLEL
# Parallel build
SAGE_NUM_THREADS
SAGE_NUM_THREADS_PARALLEL
# SAGE_VENV only for referring to the basepython
sagepython: SAGE_VENV

whitelist_externals =
bash
Expand All @@ -34,7 +37,7 @@ commands =
#bash -c 'cd bin && SAGE_SRC=$(python -c "from sage.env import SAGE_SRC; print(SAGE_SRC)") && sage-runtests --environment=sage.all__sagemath_objects --optional=sage $SAGE_SRC/sage/structure || echo "(lots of doctest failures are expected)"'

[testenv:sagepython]
passenv =
SAGE_VENV
basepython = {env:SAGE_VENV}/bin/python3

[testenv:sagepython-norequirements]
basepython = {env:SAGE_VENV}/bin/python3
11 changes: 7 additions & 4 deletions pkgs/sagemath-repl/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ setenv =
HOME={envdir}

passenv =
SAGE_NUM_THREADS
SAGE_NUM_THREADS_PARALLEL
# Parallel build
SAGE_NUM_THREADS
SAGE_NUM_THREADS_PARALLEL
# SAGE_VENV only for referring to the basepython
sagepython: SAGE_VENV

whitelist_externals =
bash
Expand All @@ -34,7 +37,7 @@ commands =
bash -c 'cd bin && SAGE_SRC=$({envpython} -c "from sage.env import SAGE_SRC; print(SAGE_SRC)") && sage-runtests --environment=sage.all__sagemath_repl --optional=sage $SAGE_SRC/sage/repl $SAGE_SRC/sage/doctest $SAGE_SRC/sage/misc/sage_input.py $SAGE_SRC/sage/misc/sage_eval.py || echo "(lots of doctest failures are expected)"'

[testenv:sagepython]
passenv =
SAGE_VENV
basepython = {env:SAGE_VENV}/bin/python3

[testenv:sagepython-norequirements]
basepython = {env:SAGE_VENV}/bin/python3
2 changes: 1 addition & 1 deletion pkgs/sagemath-standard/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ passenv =
PKG_CONFIG_PATH
# Parallel build
SAGE_NUM_THREADS
# SAGE_VENV only for finding the wheels
# SAGE_VENV only for referring to the basepython or finding the wheels
sagepython, sagewheels: SAGE_VENV
# Location of the wheels (needs to include a PEP 503 compliant
# Simple Repository index, i.e., a subdirectory "simple")
Expand Down

0 comments on commit 64b212c

Please sign in to comment.