Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sage
Path: blob/develop/pkgs/sage-setup/tox.ini
4054 views
1
# First pip-install tox:
2
#
3
# ./sage -pip install tox
4
#
5
# To build and test in the tox environment:
6
#
7
# ./sage -sh -c '(cd pkgs/sage-setup && tox -e sagepython)'
8
#
9
# To test interactively:
10
#
11
# pkgs/sage-setup/.tox/sagepython/bin/python
12
#
13
[tox]
14
15
requires =
16
# Because of https://github.com/tox-dev/tox/issues/3238, need <4.14.1
17
tox<4.14.1
18
19
[testenv]
20
deps = -rrequirements.txt
21
22
setenv =
23
# Sage scripts such as sage-runtests like to use $HOME/.sage
24
HOME={envdir}
25
26
allowlist_externals =
27
bash
28
29
commands =
30
# Beware of the treacherous non-src layout.
31
python -c 'import sys; "" in sys.path and sys.path.remove(""); import sage_setup; import sage_setup.find'
32
33
# TODO: Test importing sage_setup.library_order -- when that can handle missing pkgconfig libraries...
34
# TODO: Test more modules -- when the dependency on sage.env has been removed...
35
36
[testenv:sagepython]
37
passenv =
38
SAGE_VENV
39
40
basepython = {env:SAGE_VENV}/bin/python3
41
42