summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/Manifest.gzbin259744 -> 259754 bytes
-rw-r--r--dev-python/symengine/Manifest1
-rw-r--r--dev-python/symengine/symengine-0.9.2-r2.ebuild56
-rw-r--r--dev-python/sympy/Manifest2
-rw-r--r--dev-python/sympy/files/sympy-1.11-no-deprecated-threading-event-api.patch54
-rw-r--r--dev-python/sympy/sympy-1.11.1-r1.ebuild70
6 files changed, 183 insertions, 0 deletions
diff --git a/dev-python/Manifest.gz b/dev-python/Manifest.gz
index 8f023fae5732..f05b041541b3 100644
--- a/dev-python/Manifest.gz
+++ b/dev-python/Manifest.gz
Binary files differ
diff --git a/dev-python/symengine/Manifest b/dev-python/symengine/Manifest
index 933c2d1d3cfe..965885839ca5 100644
--- a/dev-python/symengine/Manifest
+++ b/dev-python/symengine/Manifest
@@ -2,4 +2,5 @@ AUX symengine-0.9.2-cmake-setuptools.patch 2629 BLAKE2B 625278ad90c6ed44c1ba99f8
AUX symengine-0.9.2-setuptools-61.patch 566 BLAKE2B 362c880be08c98da85b1ae2a13ca7cc422af5f07730eebc6d9eee6bbcab703df3baf88925e10a417e261eceb83ee36ff6b8e8b824bc1497e1a462b746712c317 SHA512 dc2c85d0a39a58bb0011aee4cc0852815568eb0a310f39ee0aa8b2500a6266ddab2cb03d7bbcf317897c64cf31f3909a40d12cba1c0392291ffdbb7b348b1c98
DIST symengine.py-0.9.2.tar.gz 110856 BLAKE2B 11330acc04970d367fe66787521776dbd803929d91802ea09d1bc54a96c8fd87e85114042f57fc8c007de2dcaa1b0503a8389ac677797cc2efc866d71d76d1db SHA512 ea9e8cb7dd789b551f5372c32b98365ab251bac838204b5c832783f9866c2774f5d411f2f59e5e60f17939a1c341702acfc3e3f7e77246330ab3cb74f5ba7cca
EBUILD symengine-0.9.2-r1.ebuild 1203 BLAKE2B b5b7a45528031359d386d35a5b79f82248027cfa80b4a8c1fbd86145791bafea52ccc1626ba594958f8b0b87cdce95559dc5835f74c85476bbc3a0979cfd6a23 SHA512 dc92dcd46f8b913c6a4d14a725bf1681dff6f595c16ea4845d03cd6cade9a970949a8d82e5a91073c466b8fb8dc84a5edb2a95485a18b002941d602758cbe05b
+EBUILD symengine-0.9.2-r2.ebuild 1205 BLAKE2B 7fe57b8e0d9f098d741ac34450fd05e2a22d6c61c75f24cce48dbdcb04b6d35a8804b68313c0214f5bdb4b02956583122a00bf62393f0f99a7e35af67fbde68b SHA512 672fa8f955ac436cdcde5a7914022aad8a14070a2b753f2297366ae5720577af6ad214f73c2012440fc2ed2ad5bea945c7c82a0629c3178d83219125eb465c72
MISC metadata.xml 505 BLAKE2B 9c9b44455691ec31e5eed2f355dc4633ba05548c6e00fe49e665ad7fd1867bd6a7345f84409ea14049cc01818ef67d7795afff4e01fe88c25b1977f4d6f0fbff SHA512 6a774984cef49d82908bced7cf61bb5550207503335ae09abd9c08cdde5396cbf123d7ed5d49934ccf7dbc5167f0c13f2e6ecf31bca9f5af0a2f7c46f22bf9df
diff --git a/dev-python/symengine/symengine-0.9.2-r2.ebuild b/dev-python/symengine/symengine-0.9.2-r2.ebuild
new file mode 100644
index 000000000000..d0dc5ac3c521
--- /dev/null
+++ b/dev-python/symengine/symengine-0.9.2-r2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit distutils-r1
+
+MY_P=${PN}.py-${PV}
+DESCRIPTION="Python wrappers to the symengine C++ library"
+HOMEPAGE="https://github.com/symengine/symengine.py/"
+SRC_URI="
+ https://github.com/symengine/symengine.py/archive/v${PV}.tar.gz
+ -> ${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
+
+BDEPEND="
+ dev-util/cmake
+ dev-python/cython[${PYTHON_USEDEP}]
+ test? (
+ dev-python/sympy[${PYTHON_USEDEP}]
+ )
+"
+# See bug #786582 for symengine constraint
+# See also https://github.com/symengine/symengine.py/blob/master/symengine_version.txt
+RDEPEND="
+ dev-python/numpy[${PYTHON_USEDEP}]
+ >=sci-libs/symengine-$(ver_cut 1-2):=
+"
+DEPEND="${RDEPEND}"
+
+# the C library installs the same docs
+DOCS=()
+
+PATCHES=(
+ "${FILESDIR}"/${P}-setuptools-61.patch
+ "${FILESDIR}"/${PN}-0.9.2-cmake-setuptools.patch
+)
+
+distutils_enable_tests pytest
+
+python_test() {
+ cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
+ epytest
+}
+
+python_install() {
+ distutils-r1_python_install
+ python_optimize
+}
diff --git a/dev-python/sympy/Manifest b/dev-python/sympy/Manifest
index bb75a9b4230d..457714998a05 100644
--- a/dev-python/sympy/Manifest
+++ b/dev-python/sympy/Manifest
@@ -1,3 +1,5 @@
+AUX sympy-1.11-no-deprecated-threading-event-api.patch 1985 BLAKE2B bed11566b12fb49e7f52d176d536b15872a1b7cf8e570c17a068126f38cdf13f1d94d8f6c2d74e086d9e6c4ecfc6498613318f4e2f9f8a261224f1cc8bb4b908 SHA512 5df7337eb1c4bdc66b30a5a6db9047a9ed590fdcd7fb7cbc82a4c7342c4d2d047cbfd8549748ea3e0e4db8dc6e1ad97984fca87d85489dffe78599f7e2e29745
DIST sympy-1.11.1.gh.tar.gz 13462495 BLAKE2B a45320d087057595d3574490c6dc07bcdf7870543e9adcbaca9abe293d84875c123bbc91a7263a87b0b71568dece4e1304b6bf76f60ae64e353520f0ca686b1f SHA512 6cc720b673cf31a2e8f56a5cae24ec15024ea43dee92196adb0a87f28561b5d2404fbbfd3d55a8414930a31d4d0f4a731d458ad528c8cbb03c37555f5c14ce4a
+EBUILD sympy-1.11.1-r1.ebuild 1808 BLAKE2B 4303cc7acd257733707711ece0886dccf48c73fffb9f953be320b0322f1fd820372f43da89e37ef12cb0854e38e1f522ff8d5c59a971bcf3f87bf345d3981f4b SHA512 c3b279aa371b1751cba7e59a991dadda8306701f2a9d24025a3e04dbf0b31eb314491a1cc58e4f12c525ecc320f783f99d940015b860ad47df10a2290f22774c
EBUILD sympy-1.11.1.ebuild 1686 BLAKE2B a2f2b3bf4de552715033b9e0944a5b5c21b3c2bc35c216a097264b7e60f3b71eaf90eb754be662862d1b91b3f5fa01cc64954cee02a5c94ba61eaeeb75e26d25 SHA512 b239558442e8bb7b41dfd2fde26ccefc2a041fb228e1c89f64e833be222f340066350293d3353c2ea5c63f77fc2a71cd40f073f278f6c6a4762b3449a228eb01
MISC metadata.xml 1722 BLAKE2B 09837a8e4ed0d70cf62a2e5028d480ffd7d15d821220c771dec04380e9707da56625651a49ac656a7de27ee3e8f395091abe763d2d3c59cfe32bf363cdba60cf SHA512 fad83c852dd953709e20056b0da38a0f0504bc70a99d9a9fbf295d98ed462811ee6fcf755d5ad1aeb515fd62fafe35a609f6d2892af2ed921870b6f5c38edc5f
diff --git a/dev-python/sympy/files/sympy-1.11-no-deprecated-threading-event-api.patch b/dev-python/sympy/files/sympy-1.11-no-deprecated-threading-event-api.patch
new file mode 100644
index 000000000000..eaffd3f1fbe1
--- /dev/null
+++ b/dev-python/sympy/files/sympy-1.11-no-deprecated-threading-event-api.patch
@@ -0,0 +1,54 @@
+Patch back-ported from the sympy git repo
+url: https://github.com/sympy/sympy/commit/b89ca436cf25e2a1caf82c9d33221d06698d0ff5
+
+commit b89ca436cf25e2a1caf82c9d33221d06698d0ff5
+Author: Chris Kerr <chris.kerr@mykolab.ch>
+Date: Thu Sep 22 19:32:27 2022 +0300
+
+ Replace deprecated .isSet() method with .is_set()
+
+ Fixes https://github.com/sympy/sympy/issues/24074
+
+diff --git a/sympy/plotting/pygletplot/plot_mode_base.py b/sympy/plotting/pygletplot/plot_mode_base.py
+index c1c2b0a6ec..2c6503650a 100644
+--- a/sympy/plotting/pygletplot/plot_mode_base.py
++++ b/sympy/plotting/pygletplot/plot_mode_base.py
+@@ -269,7 +269,7 @@ def _calculate_all(self):
+ self._calculate_cverts()
+
+ def _calculate_verts(self):
+- if self._calculating_verts.isSet():
++ if self._calculating_verts.is_set():
+ return
+ self._calculating_verts.set()
+ try:
+@@ -280,9 +280,9 @@ def _calculate_verts(self):
+ self.bounds_callback()
+
+ def _calculate_cverts(self):
+- if self._calculating_verts.isSet():
++ if self._calculating_verts.is_set():
+ return
+- while self._calculating_cverts.isSet():
++ while self._calculating_cverts.is_set():
+ sleep(0) # wait for previous calculation
+ self._calculating_cverts.set()
+ try:
+@@ -291,7 +291,7 @@ def _calculate_cverts(self):
+ self._calculating_cverts.clear()
+
+ def _get_calculating_verts(self):
+- return self._calculating_verts.isSet()
++ return self._calculating_verts.is_set()
+
+ def _get_calculating_verts_pos(self):
+ return self._calculating_verts_pos
+@@ -300,7 +300,7 @@ def _get_calculating_verts_len(self):
+ return self._calculating_verts_len
+
+ def _get_calculating_cverts(self):
+- return self._calculating_cverts.isSet()
++ return self._calculating_cverts.is_set()
+
+ def _get_calculating_cverts_pos(self):
+ return self._calculating_cverts_pos
diff --git a/dev-python/sympy/sympy-1.11.1-r1.ebuild b/dev-python/sympy/sympy-1.11.1-r1.ebuild
new file mode 100644
index 000000000000..df5b5e24a757
--- /dev/null
+++ b/dev-python/sympy/sympy-1.11.1-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit distutils-r1 virtualx
+
+DESCRIPTION="Computer Algebra System in pure Python"
+HOMEPAGE="https://www.sympy.org/"
+SRC_URI="https://github.com/sympy/sympy/archive/${P}.tar.gz -> ${P}.gh.tar.gz"
+S="${WORKDIR}/${PN}-${P}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
+IUSE="aesara examples imaging ipython latex mathml opengl pdf png pyglet symengine test texmacs"
+
+RDEPEND="
+ dev-python/mpmath[${PYTHON_USEDEP}]
+ dev-python/pexpect[${PYTHON_USEDEP}]
+ aesara? ( $(python_gen_cond_dep 'dev-python/aesara[${PYTHON_USEDEP}]' python3_{9..10}) )
+ imaging? ( dev-python/pillow[${PYTHON_USEDEP}] )
+ ipython? ( dev-python/ipython[${PYTHON_USEDEP}] )
+ latex? (
+ virtual/latex-base
+ dev-texlive/texlive-fontsextra
+ png? ( app-text/dvipng )
+ pdf? ( app-text/ghostscript-gpl )
+ )
+ mathml? ( dev-libs/libxml2:2[${PYTHON_USEDEP}] )
+ opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )
+ pyglet? ( dev-python/pyglet[${PYTHON_USEDEP}] )
+ symengine? ( dev-python/symengine[${PYTHON_USEDEP}] )
+ texmacs? ( app-office/texmacs )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.11-no-deprecated-threading-event-api.patch"
+)
+
+distutils_enable_tests pytest
+
+src_test() {
+ virtx distutils-r1_src_test
+}
+
+python_test() {
+ esetup.py test
+}
+
+python_install_all() {
+ local DOCS=( AUTHORS README.md )
+
+ if use examples; then
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+
+ distutils-r1_python_install_all
+
+ if use texmacs; then
+ exeinto /usr/libexec/TeXmacs/bin/
+ doexe data/TeXmacs/bin/tm_sympy
+ insinto /usr/share/TeXmacs/plugins/sympy/
+ doins -r data/TeXmacs/progs
+ fi
+}