public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrey Grozin" <grozin@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sympy/, dev-python/sympy/files/
Date: Thu, 29 Dec 2016 01:30:26 +0000 (UTC)	[thread overview]
Message-ID: <1482974989.b1754d7ad8e53f7782dc873acaf99f8d2b99d04d.grozin@gentoo> (raw)

commit:     b1754d7ad8e53f7782dc873acaf99f8d2b99d04d
Author:     Andrey Grozin <grozin <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 29 01:29:49 2016 +0000
Commit:     Andrey Grozin <grozin <AT> gentoo <DOT> org>
CommitDate: Thu Dec 29 01:29:49 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1754d7a

dev-python/sympy: fix a wrong test

Bug: 603214

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 dev-python/sympy/files/sympy-1.0-zeta.patch | 47 +++++++++++++++++++++++++++++
 dev-python/sympy/sympy-1.0-r1.ebuild        |  2 +-
 2 files changed, 48 insertions(+), 1 deletion(-)

diff --git a/dev-python/sympy/files/sympy-1.0-zeta.patch b/dev-python/sympy/files/sympy-1.0-zeta.patch
new file mode 100644
index 00000000..43f5483
--- /dev/null
+++ b/dev-python/sympy/files/sympy-1.0-zeta.patch
@@ -0,0 +1,47 @@
+diff -r -U2 sympy-1.0.orig/sympy/functions/special/tests/test_zeta_functions.py sympy-1.0/sympy/functions/special/tests/test_zeta_functions.py
+--- sympy-1.0.orig/sympy/functions/special/tests/test_zeta_functions.py	2016-03-09 00:38:39.000000000 +0600
++++ sympy-1.0/sympy/functions/special/tests/test_zeta_functions.py	2016-12-28 23:25:19.370041561 +0700
+@@ -125,5 +125,5 @@
+     assert polylog(s, 0) == 0
+     assert polylog(s, 1) == zeta(s)
+-    assert polylog(s, -1) == dirichlet_eta(s)
++    assert polylog(s, -1) == -dirichlet_eta(s)
+ 
+     assert myexpand(polylog(1, z), -log(1 + exp_polar(-I*pi)*z))
+diff -r -U2 sympy-1.0.orig/sympy/functions/special/zeta_functions.py sympy-1.0/sympy/functions/special/zeta_functions.py
+--- sympy-1.0.orig/sympy/functions/special/zeta_functions.py	2016-03-09 00:38:39.000000000 +0600
++++ sympy-1.0/sympy/functions/special/zeta_functions.py	2016-12-28 23:23:56.109047180 +0700
+@@ -245,5 +245,5 @@
+     zeta(s)
+     >>> polylog(s, -1)
+-    dirichlet_eta(s)
++    -dirichlet_eta(s)
+ 
+     If :math:`s` is a negative integer, :math:`0` or :math:`1`, the
+@@ -272,10 +272,17 @@
+     @classmethod
+     def eval(cls, s, z):
++        from sympy import unpolarify
+         if z == 1:
+             return zeta(s)
+         elif z == -1:
+-            return dirichlet_eta(s)
++            return -dirichlet_eta(s)
+         elif z == 0:
+-            return 0
++            return S.Zero
++
++        # branch handling
++        if (1 - abs(z)).is_nonnegative:
++            newz = unpolarify(z)
++            if newz != z:
++                return cls(s, newz)
+ 
+     def fdiff(self, argindex=1):
+@@ -486,5 +493,5 @@
+     For `\operatorname{Re}(s) > 0`, this function is defined as
+ 
+-    .. math:: \eta(s) = \sum_{n=1}^\infty \frac{(-1)^n}{n^s}.
++    .. math:: \eta(s) = \sum_{n=1}^\infty \frac{(-1)^{n-1}}{n^s}.
+ 
+     It admits a unique analytic continuation to all of :math:`\mathbb{C}`.

diff --git a/dev-python/sympy/sympy-1.0-r1.ebuild b/dev-python/sympy/sympy-1.0-r1.ebuild
index 88544a9..2015771 100644
--- a/dev-python/sympy/sympy-1.0-r1.ebuild
+++ b/dev-python/sympy/sympy-1.0-r1.ebuild
@@ -51,7 +51,7 @@ pkg_setup() {
 
 python_prepare_all() {
 	epatch "${FILESDIR}"/${P}-doc-makefile.patch
-	epatch "${FILESDIR}"/${PN}-0.7.6.1-zeta.patch
+	epatch "${FILESDIR}"/${P}-zeta.patch
 	distutils-r1_python_prepare_all
 }
 


             reply	other threads:[~2016-12-29  1:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-29  1:30 Andrey Grozin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-03-19 21:56 [gentoo-commits] repo/gentoo:master commit in: dev-python/sympy/, dev-python/sympy/files/ David Seifert
2019-12-04 17:15 Michał Górny
2018-09-19  6:13 Andrey Grozin
2017-07-28  0:07 Andrey Grozin
2016-03-18 20:55 Andrey Grozin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1482974989.b1754d7ad8e53f7782dc873acaf99f8d2b99d04d.grozin@gentoo \
    --to=grozin@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox