From 233f6baf8f2d701104232601ad6fb7362fef7071 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 28 Jun 2020 10:39:32 -0700 Subject: [PATCH] build/pkgs/sagelib/src/requirements.txt, tox.ini: New --- build/pkgs/sagelib/src/requirements.txt | 12 ++++++++++ build/pkgs/sagelib/src/tox.ini | 32 +++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 build/pkgs/sagelib/src/requirements.txt create mode 100644 build/pkgs/sagelib/src/tox.ini diff --git a/build/pkgs/sagelib/src/requirements.txt b/build/pkgs/sagelib/src/requirements.txt new file mode 100644 index 00000000000..cd2008a2274 --- /dev/null +++ b/build/pkgs/sagelib/src/requirements.txt @@ -0,0 +1,12 @@ +#sage_conf +sage_setup @ file:///Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/upstream/sage-setup-0.0.0.tar.gz +six # use of six should be removed from sage_setup +Cython==0.29.17 +pkgconfig +cysignals +gmpy2==2.1.0b1 + +numpy # already needed by sage.env +jinja2 # sage_setup.autogen.interpreters + +cypari2 # but building bdist_wheel of cypari2 fails with recent pip... https://github.com/sagemath/cypari2/issues/93 diff --git a/build/pkgs/sagelib/src/tox.ini b/build/pkgs/sagelib/src/tox.ini new file mode 100644 index 00000000000..0a00d2cfdf3 --- /dev/null +++ b/build/pkgs/sagelib/src/tox.ini @@ -0,0 +1,32 @@ +# First pip-install tox: +# +# ./sage -pip install tox +# +# To build and test in the tox environment: +# +# ./sage -sh -c '(cd build/pkgs/sagelib/src && tox)' +# +# To test interactively: +# +# build/pkgs/sagelib/src/.tox/python/bin/python +# +[tox] + +[testenv] +deps = -rrequirements.txt + +## passenv = +## PATH +## CC +## CXX + +setenv = + # Sage scripts such as sage-runtests like to use $HOME/.sage + HOME={envdir} + +whitelist_externals = + bash + +commands = + # Beware of the treacherous non-src layout. "./sage/" shadows the install sage package. + python -c 'import sys; "" in sys.path and sys.path.remove(""); import sage.all'