diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/sympy/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/sympy/files')
-rw-r--r-- | dev-python/sympy/files/sympy-0.7.6-doc-makefile.patch | 10 | ||||
-rw-r--r-- | dev-python/sympy/files/sympy-0.7.6.1-sphinx-1.3.1.patch | 65 | ||||
-rw-r--r-- | dev-python/sympy/files/sympy-0.7.6.1-zeta.patch | 32 | ||||
-rw-r--r-- | dev-python/sympy/files/sympy-1.0-doc-makefile.patch | 10 | ||||
-rw-r--r-- | dev-python/sympy/files/sympy-1.0-zeta.patch | 47 | ||||
-rw-r--r-- | dev-python/sympy/files/sympy-1.1.1-zeta.patch | 29 |
6 files changed, 193 insertions, 0 deletions
diff --git a/dev-python/sympy/files/sympy-0.7.6-doc-makefile.patch b/dev-python/sympy/files/sympy-0.7.6-doc-makefile.patch new file mode 100644 index 000000000000..b4beca8c2a1c --- /dev/null +++ b/dev-python/sympy/files/sympy-0.7.6-doc-makefile.patch @@ -0,0 +1,10 @@ +diff -r -U2 sympy-0.7.6.orig/doc/Makefile sympy-0.7.6/doc/Makefile +--- sympy-0.7.6.orig/doc/Makefile 2014-11-21 02:00:41.000000000 +0600 ++++ sympy-0.7.6/doc/Makefile 2014-12-07 20:49:01.091613474 +0600 +@@ -118,5 +118,5 @@ + pdflatex -output-directory=_build/cheatsheet cheatsheet/cheatsheet.tex + +-_build/cheatsheet/cheatsheet.pdf: cheatsheet/combinatoric_cheatsheet.tex ++_build/cheatsheet/combinatoric_cheatsheet.pdf: cheatsheet/combinatoric_cheatsheet.tex + mkdir -p _build/cheatsheet + pdflatex -output-directory=_build/cheatsheet cheatsheet/combinatoric_cheatsheet.tex diff --git a/dev-python/sympy/files/sympy-0.7.6.1-sphinx-1.3.1.patch b/dev-python/sympy/files/sympy-0.7.6.1-sphinx-1.3.1.patch new file mode 100644 index 000000000000..c3b208270166 --- /dev/null +++ b/dev-python/sympy/files/sympy-0.7.6.1-sphinx-1.3.1.patch @@ -0,0 +1,65 @@ +commit d3d3bd01bc5f625055bfa7247efc1e8cdeef0b33 +Author: Aaditya M Nair <aadityanair6494@gmail.com> +Date: Tue Apr 14 16:30:01 2015 +0530 + + Doc creation now compatible with sphinx 1.3.1. Closes sympy/sympy#9273. + + New version of sphinx renamed the `default` theme to `classic` theme. + Corrected by defining all variables inside the .css file. + +diff --git a/doc/src/_static/default.css_t b/doc/src/_static/default.css_t +index 6165d8b..c2d8489 100644 +--- a/doc/src/_static/default.css_t ++++ b/doc/src/_static/default.css_t +@@ -13,6 +13,23 @@ + + /* -- page layout ----------------------------------------------------------- */ + ++{% set theme_collapsiblesidebar = True %} ++{% set theme_relbarbgcolor = '#2f441e' %} ++{% set theme_sidebarbgcolor = '#3b5526' %} ++{% set theme_sidebarbtncolor = '#4F663C' %} ++{% set theme_sidebarlinkcolor = '#81B953' %} ++{% set theme_linkcolor = '#29A329' %} ++{% set theme_visitedlinkcolor = '#307748' %} ++{% set theme_headtextcolor = '#2f441e' %} ++{% set theme_footerbgcolor = '#293b1b' %} ++{% set theme_headlinkcolor = '#AAAAAA' %} ++{% set theme_sidebartextcolor = '#DDDDDD' %} ++{% set theme_footertextcolor = '#DDDDDD' %} ++{% set theme_relbartextcolor = '#DDDDDD' %} ++{% set theme_relbarlinkcolor = '#81B953' %} ++{% set theme_bgcolor = '#FFFFFF' %} ++ ++ + body { + font-family: {{ theme_bodyfont }}; + font-size: 100%; +diff --git a/doc/src/conf.py b/doc/src/conf.py +index 2c1d302..97837e3 100644 +--- a/doc/src/conf.py ++++ b/doc/src/conf.py +@@ -96,22 +96,7 @@ + html_logo = '_static/sympylogo.png' + html_favicon = '../_build/logo/sympy-notailtext-favicon.ico' + # See http://sphinx-doc.org/theming.html#builtin-themes. +-html_theme_options = { +- 'collapsiblesidebar': True, +- 'relbarbgcolor': '#2f441e', +- 'sidebarbgcolor': '#3b5526', +- 'sidebarbtncolor': '#4F663C', +- 'sidebarlinkcolor': '#81B953', +- 'linkcolor': '#29A329', +- 'visitedlinkcolor': '#307748', +- 'headtextcolor': '#2f441e', +- 'footerbgcolor': '#293b1b', +- 'headlinkcolor': '#AAAAAA', +- 'sidebartextcolor': '#DDDDDD', +- 'footertextcolor': '#DDDDDD', +- 'relbartextcolor': '#DDDDDD', +- 'relbarlinkcolor': '#81B953', +-} ++ + + # If true, SmartyPants will be used to convert quotes and dashes to + # typographically correct entities. diff --git a/dev-python/sympy/files/sympy-0.7.6.1-zeta.patch b/dev-python/sympy/files/sympy-0.7.6.1-zeta.patch new file mode 100644 index 000000000000..ffb85f9feb17 --- /dev/null +++ b/dev-python/sympy/files/sympy-0.7.6.1-zeta.patch @@ -0,0 +1,32 @@ +diff -r -U1 sympy-0.7.6.1.orig/sympy/functions/special/zeta_functions.py sympy-0.7.6.1/sympy/functions/special/zeta_functions.py +--- sympy-0.7.6.1.orig/sympy/functions/special/zeta_functions.py 2015-09-04 02:34:00.000000000 +0600 ++++ sympy-0.7.6.1/sympy/functions/special/zeta_functions.py 2015-12-01 11:27:24.000000000 +0600 +@@ -243,3 +243,3 @@ + >>> polylog(s, -1) +- dirichlet_eta(s) ++ -dirichlet_eta(s) + +@@ -270,2 +270,3 @@ + def eval(cls, s, z): ++ from sympy import unpolarify + if z == 1: +@@ -273,6 +274,12 @@ + 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): +@@ -479,3 +486,3 @@ + +- .. 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}. + diff --git a/dev-python/sympy/files/sympy-1.0-doc-makefile.patch b/dev-python/sympy/files/sympy-1.0-doc-makefile.patch new file mode 100644 index 000000000000..6fe64b853c23 --- /dev/null +++ b/dev-python/sympy/files/sympy-1.0-doc-makefile.patch @@ -0,0 +1,10 @@ +diff -r -U2 sympy-1.0.orig/doc/Makefile sympy-1.0/doc/Makefile +--- sympy-1.0.orig/doc/Makefile 2016-03-08 19:38:39.000000000 +0100 ++++ sympy-1.0/doc/Makefile 2016-03-18 20:04:36.393615499 +0100 +@@ -118,5 +118,5 @@ + pdflatex -output-directory=_build/cheatsheet cheatsheet/cheatsheet.tex + +-_build/cheatsheet/cheatsheet.pdf: cheatsheet/combinatoric_cheatsheet.tex ++_build/cheatsheet/combinatoric_cheatsheet.pdf: cheatsheet/combinatoric_cheatsheet.tex + mkdir -p _build/cheatsheet + pdflatex -output-directory=_build/cheatsheet cheatsheet/combinatoric_cheatsheet.tex 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 000000000000..43f54832c948 --- /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/files/sympy-1.1.1-zeta.patch b/dev-python/sympy/files/sympy-1.1.1-zeta.patch new file mode 100644 index 000000000000..d9bab8096fac --- /dev/null +++ b/dev-python/sympy/files/sympy-1.1.1-zeta.patch @@ -0,0 +1,29 @@ +diff -U2 -r sympy-1.1.1.orig/sympy/functions/special/zeta_functions.py sympy-1.1.1/sympy/functions/special/zeta_functions.py +--- sympy-1.1.1.orig/sympy/functions/special/zeta_functions.py 2017-07-22 05:17:42.000000000 +0700 ++++ sympy-1.1.1/sympy/functions/special/zeta_functions.py 2017-07-28 06:35:28.477927184 +0700 +@@ -272,4 +272,5 @@ + @classmethod + def eval(cls, s, z): ++ from sympy import unpolarify + if z == 1: + return zeta(s) +@@ -277,5 +278,11 @@ + 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): +@@ -483,5 +490,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}`. |