sage: 9.6 -> 9.7

+38 -49
+13 -12
pkgs/applications/science/math/sage/patches/sphinx-docbuild-subprocesses.patch
··· 1 - diff --git a/src/sage_docbuild/__init__.py b/src/sage_docbuild/__init__.py 2 - index b12d56a3c9..df9d949ed1 100644 3 - --- a/src/sage_docbuild/__init__.py 4 - +++ b/src/sage_docbuild/__init__.py 5 - @@ -88,30 +88,6 @@ def builder_helper(type): 1 + diff --git a/src/sage_docbuild/builders.py b/src/sage_docbuild/builders.py 2 + index c5be38600a..e1d15f62d3 100644 3 + --- a/src/sage_docbuild/builders.py 4 + +++ b/src/sage_docbuild/builders.py 5 + @@ -105,31 +105,6 @@ def builder_helper(type): 6 6 """ 7 7 Return a function which builds the documentation for 8 8 output type ``type``. ··· 11 11 - 12 12 - Check that :trac:`25161` has been resolved:: 13 13 - 14 - - sage: from sage_docbuild import DocBuilder, setup_parser 14 + - sage: from sage_docbuild.builders import DocBuilder 15 + - sage: from sage_docbuild.__main__ import setup_parser 15 16 - sage: DocBuilder._options = setup_parser().parse_args([]) # builder_helper needs _options to be set 16 17 - 17 18 - sage: import sage_docbuild.sphinxbuild ··· 22 23 - sage: from sage.misc.temporary_file import tmp_dir 23 24 - sage: os.environ['SAGE_DOC'] = tmp_dir() 24 25 - sage: sage.env.var('SAGE_DOC') # random 25 - - sage: from sage_docbuild import builder_helper, build_ref_doc 26 - - sage: from sage_docbuild import _build_many as build_many 26 + - sage: from sage_docbuild.builders import builder_helper, build_ref_doc 27 + - sage: from sage_docbuild.builders import _build_many as build_many 27 28 - sage: helper = builder_helper("html") 28 29 - sage: try: # optional - sagemath_doc_html 29 30 - ....: build_many(build_ref_doc, [("docname", "en", "html", {})]) ··· 33 34 """ 34 35 def f(self, *args, **kwds): 35 36 output_dir = self._output_dir(type) 36 - @@ -139,10 +115,9 @@ def builder_helper(type): 37 + @@ -157,10 +132,9 @@ def builder_helper(type): 37 38 logger.debug(build_command) 38 39 39 40 # Run Sphinx with Sage's special logger ··· 44 45 - runsphinx() 45 46 + subprocess.check_call(args) 46 47 except Exception: 47 - if ABORT_ON_ERROR: 48 + if build_options.ABORT_ON_ERROR: 48 49 raise 49 50 diff --git a/src/sage_docbuild/sphinxbuild.py b/src/sage_docbuild/sphinxbuild.py 50 - index a39c99ffe9..73be823684 100644 51 + index 07c584de55..b83283a9ee 100644 51 52 --- a/src/sage_docbuild/sphinxbuild.py 52 53 +++ b/src/sage_docbuild/sphinxbuild.py 53 - @@ -330,3 +330,8 @@ def runsphinx(): 54 + @@ -331,3 +331,8 @@ def runsphinx(): 54 55 sys.stderr = saved_stderr 55 56 sys.stdout.flush() 56 57 sys.stderr.flush()
+18 -17
pkgs/applications/science/math/sage/patches/tachyon-renamed-focallength.patch
··· 1 1 diff --git a/src/sage/interfaces/tachyon.py b/src/sage/interfaces/tachyon.py 2 - index 3f1dcdb538..b6fa8d1fbd 100644 2 + index 23671e5089..a5604a643c 100644 3 3 --- a/src/sage/interfaces/tachyon.py 4 4 +++ b/src/sage/interfaces/tachyon.py 5 - @@ -261,13 +261,13 @@ written in the sequence they are listed in the examples in this section. 6 - The {\bf PROJECTION} keyword must be followed by one of the supported 7 - camera projection mode identifiers {\bf PERSPECTIVE}, {\bf PERSPECTIVE_DOF}, 8 - {\bf ORTHOGRAPHIC}, or {\bf FISHEYE}. The {\bf FISHEYE} projection mode 9 - -requires two extra parameters {\bf FOCALLENGTH} and {\bf APERTURE} 10 - +requires two extra parameters {\bf FOCALDIST} and {\bf APERTURE} 11 - which precede the regular camera options. 5 + @@ -74,14 +74,14 @@ Camera projection modes 6 + The ``PROJECTION`` keyword must be followed by one of the supported 7 + camera projection mode identifiers ``PERSPECTIVE``, ``PERSPECTIVE_DOF``, 8 + ``ORTHOGRAPHIC``, or ``FISHEYE``. The ``FISHEYE`` projection mode 9 + -requires two extra parameters ``FOCALLENGTH`` and ``APERTURE`` which 10 + +requires two extra parameters ``FOCALDIST`` and ``APERTURE`` which 11 + precede the regular camera options. 12 + 13 + :: 12 14 13 - \begin{verbatim} 14 - Camera 15 - projection perspective_dof 16 - - focallength 0.75 17 - + focaldist 0.75 18 - aperture 0.02 19 - Zoom 0.666667 20 - Aspectratio 1.000000 15 + Camera 16 + projection perspective_dof 17 + - focallength 0.75 18 + + focaldist 0.75 19 + aperture 0.02 20 + Zoom 0.666667 21 + Aspectratio 1.000000 21 22 diff --git a/src/sage/plot/plot3d/tachyon.py b/src/sage/plot/plot3d/tachyon.py 22 - index 08caf38d67..3e827411ce 100644 23 + index 88c8eba2d5..c4427dd484 100644 23 24 --- a/src/sage/plot/plot3d/tachyon.py 24 25 +++ b/src/sage/plot/plot3d/tachyon.py 25 26 @@ -92,7 +92,7 @@ angle, right angle)::
+5 -3
pkgs/applications/science/math/sage/python-modules/sage-setup.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , sage-src 4 + , cython 5 + , jinja2 4 6 , pkgconfig # the python module, not the pkg-config alias 5 7 }: 6 8 ··· 9 11 pname = "sage-setup"; 10 12 src = sage-src; 11 13 12 - buildInputs = [ 13 - pkgconfig 14 - ]; 14 + nativeBuildInputs = [ cython ]; 15 + buildInputs = [ pkgconfig ]; 16 + propagatedBuildInputs = [ jinja2 ]; 15 17 16 18 preBuild = '' 17 19 cd pkgs/sage-setup
+2 -17
pkgs/applications/science/math/sage/sage-src.nix
··· 58 58 ); 59 59 in 60 60 stdenv.mkDerivation rec { 61 - version = "9.6"; 61 + version = "9.7"; 62 62 pname = "sage-src"; 63 63 64 64 src = fetchFromGitHub { 65 65 owner = "sagemath"; 66 66 repo = "sage"; 67 67 rev = version; 68 - sha256 = "sha256-QY8Yga3hD1WhSCtA2/PVry8hHlMmC31J8jCBFtWgIU0="; 68 + sha256 = "sha256-MYpCp18wqKwCa+tcJ7He14p1FXDlVm1vubQqQS9g3LY="; 69 69 }; 70 70 71 71 # Patches needed because of particularities of nix or the way this is packaged. ··· 115 115 116 116 # adapted from https://trac.sagemath.org/ticket/23712#comment:22 117 117 ./patches/tachyon-renamed-focallength.patch 118 - 119 - (fetchSageDiff { 120 - name = "eclib-20220621-update.patch"; 121 - base = "9.7.beta4"; 122 - rev = "9b65d73399b33043777ba628a4d318638aec6e0e"; 123 - sha256 = "sha256-pcb9Q9a0ROCZTyfT7TRMtgEqCom8SgrtAaZ8ATgeqVI="; 124 - }) 125 - 126 - # https://trac.sagemath.org/ticket/34149 127 - (fetchSageDiff { 128 - name = "sphinx-5-update.patch"; 129 - base = "9.7.beta6"; 130 - rev = "6f9ceb7883376a1cacda51d84ec7870121860482"; 131 - sha256 = "sha256-prTCwBfl/wNXIkdjKLiMSe/B64wCXOjOTr4AVNiFruw="; 132 - }) 133 118 ]; 134 119 135 120 patches = nixPatches ++ bugfixPatches ++ packageUpgradePatches;