From d645d024244949a36713d1a8c401145a905e3130 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Thu, 2 Jan 2025 18:41:01 -0800 Subject: [PATCH 1/2] setup.py: Declare extra 'passagemath' --- setup.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/setup.py b/setup.py index 536994d..b63227f 100644 --- a/setup.py +++ b/setup.py @@ -38,4 +38,12 @@ def readfile(filename): setup_requires=['sage-package'], install_requires=['sage-package', 'networkx~=2.2'], python_requires='>=2.7', + extras_require={ + 'passagemath': [ + 'passagemath-combinat', + 'passagemath-graphs', + 'passagemath-modules', + 'passagemath-repl', + ], + }, ) From 2891bcc4ef5d095e108770c3446fc74b3f3ebbf3 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Thu, 2 Jan 2025 18:41:07 -0800 Subject: [PATCH 2/2] tox.ini, _doctest_environment.py: New --- _doctest_environment.py | 3 +++ tox.ini | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 _doctest_environment.py create mode 100644 tox.ini diff --git a/_doctest_environment.py b/_doctest_environment.py new file mode 100644 index 0000000..6971085 --- /dev/null +++ b/_doctest_environment.py @@ -0,0 +1,3 @@ +# Toplevel for doctesting with passagemath + +from sage.all__sagemath_modules import * diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..3821b8c --- /dev/null +++ b/tox.ini @@ -0,0 +1,23 @@ +[tox] +envlist = passagemath + +[testenv:.pkg] +passenv = + CPATH + LIBRARY_PATH + +[testenv:passagemath] +usedevelop = True +extras = passagemath + +passenv = + CPATH + LIBRARY_PATH + +setenv = + # For access to _doctest_environment.py + PYTHONPATH=. + +commands = + python -c 'import arithmat' + sage -tp --force-lib --environment=_doctest_environment arithmat