Skip to content

Commit

Permalink
sagemathgh-36641: build/pkgs/sympy: Upgrade to 1.13.2
Browse files Browse the repository at this point in the history
    
<!-- ^^^^^
Please provide a concise, informative and self-explanatory title.
Don't put issue numbers in there, do this in the PR body below.
For example, instead of "Fixes sagemath#1234" use "Introduce new method to
calculate 1+1"
-->

See https://groups.google.com/g/sage-devel/c/fOTkNoU02Oo/m/j116LUouBwAJ

This upgrade includes doctest changes needed for compatibility with
SymPy 1.13.

This PR is also used by SymPy CI to keep track of compatibility between
SymPy and Sage:
https://github.com/sympy/sympy/blob/master/.github/workflows/ci-sage.yml
https://github.com/sympy/sympy/actions/runs/6724078875/job/18275557828
    
URL: sagemath#36641
Reported by: Oscar Benjamin
Reviewer(s): Oscar Benjamin
  • Loading branch information
Release Manager committed Aug 26, 2024
2 parents a02f8f5 + 6fb81c3 commit 5474607
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 14 deletions.
4 changes: 2 additions & 2 deletions build/pkgs/sympy/checksums.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tarball=sympy-VERSION-py3-none-any.whl
sha1=80fa00ab605295d61992ca3faa76771a62944527
sha256=9b2cbc7f1a640289430e13d2a56f02f867a1da0190f2f99d8968c2f74da0e515
sha1=e34c28a2aa2b677efe2f1b7cefe275e20d2e652c
sha256=c51d75517712f1aed280d4ce58506a4a88d635d6b5dd48b39102a7ae1f3fcfe9
upstream_url=https://pypi.io/packages/py3/s/sympy/sympy-VERSION-py3-none-any.whl
2 changes: 1 addition & 1 deletion build/pkgs/sympy/package-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.12.1
1.13.2
13 changes: 7 additions & 6 deletions src/sage/doctest/forker.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,15 @@ def init_sage(controller=None):
sage: from sympy.printing.pretty.pretty import PrettyPrinter
sage: s = sympify('+x^'.join(str(i) for i in range(30)))
sage: print(PrettyPrinter(settings={'wrap_line': True}).doprint(s))
29 28 27 26 25 24 23 22 21 20 19 18 17
x + x + x + x + x + x + x + x + x + x + x + x + x +
29 28 27 26 25 24 23 22 21 20 19 18 17
x + x + x + x + x + x + x + x + x + x + x + x + x +
<BLANKLINE>
16 15 14 13 12 11 10 9 8 7 6 5 4 3
x + x + x + x + x + x + x + x + x + x + x + x + x + x + x
16 15 14 13 12 11 10 9 8 7 6 5 4 3
x + x + x + x + x + x + x + x + x + x + x + x + x + x +
<BLANKLINE>
2
+ x
↪ 2
↪ x + x
The displayhook sorts dictionary keys to simplify doctesting of
dictionary output::
Expand Down
2 changes: 1 addition & 1 deletion src/sage/functions/hypergeometric.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
sage: maxima(hypergeometric([1, 1, 1], [3, 3, 3], x)) # needs sage.symbolic
hypergeometric([1,1,1],[3,3,3],_SAGE_VAR_x)
sage: hypergeometric((5, 4), (4, 4), 3)._sympy_() # needs sympy sage.symbolic
hyper((5, 4), (4, 4), 3)
hyper((5,), (4,), 3)
sage: hypergeometric((5, 4), (4, 4), 3)._mathematica_init_() # needs sage.symbolic
'HypergeometricPFQ[{5,4},{4,4},3]'
Expand Down
9 changes: 5 additions & 4 deletions src/sage/typeset/ascii_art.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@
sage: shell.run_cell('%display ascii_art')
sage: shell.run_cell("i = var('i')") # needs sage.symbolic
sage: shell.run_cell('sum(factorial(i)*x^i, i, 0, 10)') # needs sage.symbolic
10 9 8 7 6 5 4 3
3628800*x + 362880*x + 40320*x + 5040*x + 720*x + 120*x + 24*x + 6*x
10 9 8 7 6 5 4 3 >
3628800*x + 362880*x + 40320*x + 5040*x + 720*x + 120*x + 24*x + 6*x >
<BLANKLINE>
2
+ 2*x + x + 1
> 2
> + 2*x + x + 1
sage: shell.run_cell('3/(7*x)') # needs sage.symbolic
3
---
Expand Down

0 comments on commit 5474607

Please sign in to comment.