Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sage
Path: blob/develop/pkgs/sage-conf_pypi/tox.ini
4081 views
1
[tox]
2
envlist = py39, py310, py311, py39-user, py310-user, py311-user
3
4
requires =
5
# Because of https://github.com/tox-dev/tox/issues/3238, need <4.14.1
6
tox<4.14.1
7
8
[testenv:.pkg]
9
basepython = py311
10
passenv =
11
MAKE
12
# So that .homebrew-build-env will work
13
HOMEBREW
14
15
setenv =
16
HOME={work_dir}/home
17
# Passed to 'make' instead of 'build'. We test here:
18
# - frobby (standalone program with dependency on gmp; tests that .homebrew-build-env is invoked correctly)
19
# - lrcalc_python (builds a platform wheel, possibly with use of system library)
20
# - coxeter3 (which allows us to build sagemath-coxeter3)
21
SAGE_CONF_TARGETS=frobby lrcalc_python coxeter3
22
23
[testenv:python]
24
package = wheel
25
deps =
26
# For the 'sage' script
27
sagemath-environment
28
setenv =
29
HOME={work_dir}/home
30
allowlist_externals =
31
bash
32
env
33
commands =
34
bash -c 'set -ex; eval $SETENV; \
35
sage-config; \
36
ls $(sage-config SAGE_SPKG_WHEELS); \
37
sage -sh -c "frobby genideal"; \
38
{envpython} -m pip install $(sage-config SAGE_SPKG_WHEELS)/*.whl'
39
40
[testenv:python-user]
41
package = wheel
42
deps =
43
{[testenv:python]deps}
44
setenv =
45
{[testenv:python]setenv}
46
PYTHONUSERBASE={work_dir}/userbase
47
SETENV=export PATH={env:PYTHONUSERBASE}/bin:{env:PATH}
48
system_site_packages = True
49
install_command = env PATH={env:PYTHONUSERBASE}/bin:{env_bin_dir} python -I -m pip install --user {opts} {packages}
50
allowlist_externals =
51
{[testenv:python]allowlist_externals}
52
commands =
53
{[testenv:python]commands}
54
55