Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] python3-sympy: update to 1.12.1.
@ 2024-05-31  1:41 tornaria
  2024-06-07  1:15 ` [PR PATCH] [Merged]: " cinerea0
  0 siblings, 1 reply; 2+ messages in thread
From: tornaria @ 2024-05-31  1:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1225 bytes --]

There is a new pull request by tornaria against master on the void-packages repository

https://github.com/tornaria/void-packages sympy
https://github.com/void-linux/void-packages/pull/50623

python3-sympy: update to 1.12.1.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/50623.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sympy-50623.patch --]
[-- Type: text/x-diff, Size: 10390 bytes --]

From 86fb86a77b90dd85ca39983c2fe1bdeb85d42b4f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Fri, 29 Mar 2024 16:03:47 -0300
Subject: [PATCH] python3-sympy: update to 1.12.1.

---
 .../python3-sympy/patches/00.python3.12.patch | 140 ------------------
 .../python3-sympy/patches/01.python3.12.patch |  27 ----
 srcpkgs/python3-sympy/template                |  17 ++-
 3 files changed, 11 insertions(+), 173 deletions(-)
 delete mode 100644 srcpkgs/python3-sympy/patches/00.python3.12.patch
 delete mode 100644 srcpkgs/python3-sympy/patches/01.python3.12.patch

diff --git a/srcpkgs/python3-sympy/patches/00.python3.12.patch b/srcpkgs/python3-sympy/patches/00.python3.12.patch
deleted file mode 100644
index 092f7dcab2fed5..00000000000000
--- a/srcpkgs/python3-sympy/patches/00.python3.12.patch
+++ /dev/null
@@ -1,140 +0,0 @@
-From f517c26fe421f03ea2aa20d7babb4df422753c5f Mon Sep 17 00:00:00 2001
-From: Sangyub Lee <sylee957@gmail.com>
-Date: Tue, 30 May 2023 10:38:29 +0900
-Subject: [PATCH 1/3] Fix deprecation issues with python 3.12 ast lib
-
----
- sympy/parsing/sympy_parser.py | 12 ++++++------
- 1 file changed, 6 insertions(+), 6 deletions(-)
-
-diff --git a/sympy/parsing/sympy_parser.py b/sympy/parsing/sympy_parser.py
-index 7e3a0e8067ce..5cda6b61ad69 100644
---- a/sympy/parsing/sympy_parser.py
-+++ b/sympy/parsing/sympy_parser.py
-@@ -1135,7 +1135,7 @@ def visit_Compare(self, node):
-             new_node = ast.Call(
-                 func=ast.Name(id=sympy_class, ctx=ast.Load()),
-                 args=[left, right],
--                keywords=[ast.keyword(arg='evaluate', value=ast.NameConstant(value=False, ctx=ast.Load()))],
-+                keywords=[ast.keyword(arg='evaluate', value=ast.Constant(value=False, ctx=ast.Load()))],
-                 starargs=None,
-                 kwargs=None
-             )
-@@ -1168,7 +1168,7 @@ def visit_BinOp(self, node):
-                 right = ast.Call(
-                     func=ast.Name(id='Mul', ctx=ast.Load()),
-                     args=[ast.UnaryOp(op=ast.USub(), operand=ast.Num(1)), right],
--                    keywords=[ast.keyword(arg='evaluate', value=ast.NameConstant(value=False, ctx=ast.Load()))],
-+                    keywords=[ast.keyword(arg='evaluate', value=ast.Constant(value=False, ctx=ast.Load()))],
-                     starargs=None,
-                     kwargs=None
-                 )
-@@ -1179,7 +1179,7 @@ def visit_BinOp(self, node):
-                     left = ast.Call(
-                     func=ast.Name(id='Pow', ctx=ast.Load()),
-                     args=[left, ast.UnaryOp(op=ast.USub(), operand=ast.Num(1))],
--                    keywords=[ast.keyword(arg='evaluate', value=ast.NameConstant(value=False, ctx=ast.Load()))],
-+                    keywords=[ast.keyword(arg='evaluate', value=ast.Constant(value=False, ctx=ast.Load()))],
-                     starargs=None,
-                     kwargs=None
-                 )
-@@ -1187,7 +1187,7 @@ def visit_BinOp(self, node):
-                     right = ast.Call(
-                     func=ast.Name(id='Pow', ctx=ast.Load()),
-                     args=[right, ast.UnaryOp(op=ast.USub(), operand=ast.Num(1))],
--                    keywords=[ast.keyword(arg='evaluate', value=ast.NameConstant(value=False, ctx=ast.Load()))],
-+                    keywords=[ast.keyword(arg='evaluate', value=ast.Constant(value=False, ctx=ast.Load()))],
-                     starargs=None,
-                     kwargs=None
-                 )
-@@ -1197,7 +1197,7 @@ def visit_BinOp(self, node):
-             new_node = ast.Call(
-                 func=ast.Name(id=sympy_class, ctx=ast.Load()),
-                 args=[left, right],
--                keywords=[ast.keyword(arg='evaluate', value=ast.NameConstant(value=False, ctx=ast.Load()))],
-+                keywords=[ast.keyword(arg='evaluate', value=ast.Constant(value=False, ctx=ast.Load()))],
-                 starargs=None,
-                 kwargs=None
-             )
-@@ -1212,7 +1212,7 @@ def visit_BinOp(self, node):
-     def visit_Call(self, node):
-         new_node = self.generic_visit(node)
-         if isinstance(node.func, ast.Name) and node.func.id in self.functions:
--            new_node.keywords.append(ast.keyword(arg='evaluate', value=ast.NameConstant(value=False, ctx=ast.Load())))
-+            new_node.keywords.append(ast.keyword(arg='evaluate', value=ast.Constant(value=False, ctx=ast.Load())))
-         return new_node
- 
- 
-
-From 34de3853a9486e23294d28b932d5978e237bc19c Mon Sep 17 00:00:00 2001
-From: Sangyub Lee <sylee957@gmail.com>
-Date: Tue, 30 May 2023 13:17:17 +0900
-Subject: [PATCH 2/3] Replace ast.Num
-
----
- sympy/parsing/sympy_parser.py | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/sympy/parsing/sympy_parser.py b/sympy/parsing/sympy_parser.py
-index 5cda6b61ad69..4a45a9d5bff8 100644
---- a/sympy/parsing/sympy_parser.py
-+++ b/sympy/parsing/sympy_parser.py
-@@ -1167,7 +1167,7 @@ def visit_BinOp(self, node):
-             if isinstance(node.op, ast.Sub):
-                 right = ast.Call(
-                     func=ast.Name(id='Mul', ctx=ast.Load()),
--                    args=[ast.UnaryOp(op=ast.USub(), operand=ast.Num(1)), right],
-+                    args=[ast.UnaryOp(op=ast.USub(), operand=ast.Constant(1)), right],
-                     keywords=[ast.keyword(arg='evaluate', value=ast.Constant(value=False, ctx=ast.Load()))],
-                     starargs=None,
-                     kwargs=None
-@@ -1178,7 +1178,7 @@ def visit_BinOp(self, node):
-                     rev = True
-                     left = ast.Call(
-                     func=ast.Name(id='Pow', ctx=ast.Load()),
--                    args=[left, ast.UnaryOp(op=ast.USub(), operand=ast.Num(1))],
-+                    args=[left, ast.UnaryOp(op=ast.USub(), operand=ast.Constant(1))],
-                     keywords=[ast.keyword(arg='evaluate', value=ast.Constant(value=False, ctx=ast.Load()))],
-                     starargs=None,
-                     kwargs=None
-@@ -1186,7 +1186,7 @@ def visit_BinOp(self, node):
-                 else:
-                     right = ast.Call(
-                     func=ast.Name(id='Pow', ctx=ast.Load()),
--                    args=[right, ast.UnaryOp(op=ast.USub(), operand=ast.Num(1))],
-+                    args=[right, ast.UnaryOp(op=ast.USub(), operand=ast.Constant(1))],
-                     keywords=[ast.keyword(arg='evaluate', value=ast.Constant(value=False, ctx=ast.Load()))],
-                     starargs=None,
-                     kwargs=None
-
-From eae2a0810829682417ba17e30812faa949121cc2 Mon Sep 17 00:00:00 2001
-From: Sangyub Lee <sylee957@gmail.com>
-Date: Tue, 30 May 2023 13:53:44 +0900
-Subject: [PATCH 3/3] Fix additional deprecation warnings
-
----
- sympy/parsing/ast_parser.py | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/sympy/parsing/ast_parser.py b/sympy/parsing/ast_parser.py
-index c828ed31a19b..95a773d5bec6 100644
---- a/sympy/parsing/ast_parser.py
-+++ b/sympy/parsing/ast_parser.py
-@@ -23,7 +23,7 @@
- from sympy.core.sympify import SympifyError
- 
- from ast import parse, NodeTransformer, Call, Name, Load, \
--    fix_missing_locations, Str, Tuple
-+    fix_missing_locations, Constant, Tuple
- 
- class Transform(NodeTransformer):
- 
-@@ -52,7 +52,7 @@ def visit_Name(self, node):
-         elif node.id in ['True', 'False']:
-             return node
-         return fix_missing_locations(Call(func=Name('Symbol', Load()),
--                args=[Str(node.id)], keywords=[]))
-+                args=[Constant(node.id)], keywords=[]))
- 
-     def visit_Lambda(self, node):
-         args = [self.visit(arg) for arg in node.args.args]
diff --git a/srcpkgs/python3-sympy/patches/01.python3.12.patch b/srcpkgs/python3-sympy/patches/01.python3.12.patch
deleted file mode 100644
index 6e1df83e8db26d..00000000000000
--- a/srcpkgs/python3-sympy/patches/01.python3.12.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From 4b82eae46164afb468bb8995d87cbc643dc9e7a6 Mon Sep 17 00:00:00 2001
-From: Pablo Galindo <pablogsal@gmail.com>
-Date: Fri, 9 Jun 2023 11:22:20 +0100
-Subject: [PATCH 1/4] Fix factorial parsing for Python 3.12
-
-Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
----
- .mailmap                      | 1 +
- sympy/parsing/sympy_parser.py | 5 ++++-
- 2 files changed, 5 insertions(+), 1 deletion(-)
-
-diff --git a/sympy/parsing/sympy_parser.py b/sympy/parsing/sympy_parser.py
-index 7e3a0e8067ce..1c89f0d25b9a 100644
---- a/sympy/parsing/sympy_parser.py
-+++ b/sympy/parsing/sympy_parser.py
-@@ -627,7 +627,10 @@ def factorial_notation(tokens: List[TOKEN], local_dict: DICT, global_dict: DICT)
-     result: List[TOKEN] = []
-     nfactorial = 0
-     for toknum, tokval in tokens:
--        if toknum == ERRORTOKEN:
-+        if toknum == OP and tokval == "!":
-+            # In Python 3.12 "!" are OP instead of ERRORTOKEN
-+            nfactorial += 1
-+        elif toknum == ERRORTOKEN:
-             op = tokval
-             if op == '!':
-                 nfactorial += 1
diff --git a/srcpkgs/python3-sympy/template b/srcpkgs/python3-sympy/template
index e767f7543c3be3..13e43ec60589fa 100644
--- a/srcpkgs/python3-sympy/template
+++ b/srcpkgs/python3-sympy/template
@@ -1,18 +1,23 @@
 # Template file for 'python3-sympy'
 pkgname=python3-sympy
-version=1.12
-revision=2
-build_style=python3-module
-hostmakedepends="python3-setuptools"
+version=1.12.1
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-setuptools python3-wheel"
 depends="python3-mpmath"
-checkdepends="python3-mpmath"
+checkdepends="$depends python3-pytest python3-pytest-xdist gcc-fortran
+ python3-Cython python3-devel python3-ipython python3-lxml python3-matplotlib
+ python3-numexpr python3-numpy python3-scipy"
 short_desc="Computer algebra system for Python3"
 maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
 license="BSD-3-Clause"
 homepage="https://sympy.org/"
 changelog="https://github.com/sympy/sympy/wiki/Release-Notes"
 distfiles="${PYPI_SITE}/s/sympy/sympy-${version}.tar.gz"
-checksum=ebf595c8dac3e0fdc4152c51878b498396ec7f30e7a914d6071e674d49420fb8
+checksum=2877b03f998cd8c08f07cd0de5b767119cd3ef40d09f41c30d722f6686b0fb88
+
+# slow tests are broken
+make_check_args="-m not(slow)"
 
 post_install() {
 	vman doc/man/isympy.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: python3-sympy: update to 1.12.1.
  2024-05-31  1:41 [PR PATCH] python3-sympy: update to 1.12.1 tornaria
@ 2024-06-07  1:15 ` cinerea0
  0 siblings, 0 replies; 2+ messages in thread
From: cinerea0 @ 2024-06-07  1:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1074 bytes --]

There's a merged pull request on the void-packages repository

python3-sympy: update to 1.12.1.
https://github.com/void-linux/void-packages/pull/50623

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-06-07  1:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-31  1:41 [PR PATCH] python3-sympy: update to 1.12.1 tornaria
2024-06-07  1:15 ` [PR PATCH] [Merged]: " cinerea0

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).