diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-12-30 22:24:46 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-12-30 22:24:46 +0100 |
commit | a0b602306294417e740fb196237166ed9ecb0e0a (patch) | |
tree | 884986d6e1b4e6cd6bb37059c4ac6fd2556ec157 /dev-python/symengine | |
parent | dev-python/sympy: Remove old (diff) | |
download | gentoo-a0b602306294417e740fb196237166ed9ecb0e0a.tar.gz gentoo-a0b602306294417e740fb196237166ed9ecb0e0a.tar.bz2 gentoo-a0b602306294417e740fb196237166ed9ecb0e0a.zip |
dev-python/symengine: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/symengine')
-rw-r--r-- | dev-python/symengine/Manifest | 1 | ||||
-rw-r--r-- | dev-python/symengine/files/symengine-0.7.2-metadata.patch | 68 | ||||
-rw-r--r-- | dev-python/symengine/symengine-0.7.2-r2.ebuild | 59 |
3 files changed, 0 insertions, 128 deletions
diff --git a/dev-python/symengine/Manifest b/dev-python/symengine/Manifest index 376b7f28db12..283b375f1542 100644 --- a/dev-python/symengine/Manifest +++ b/dev-python/symengine/Manifest @@ -1,2 +1 @@ -DIST symengine.py-0.7.2.tar.gz 107747 BLAKE2B cacd11f316df5132b6bbee356fd7a4c2d3fa30e80b144c5d8982fec1b6856ca3c839ef7a6f8daf4e70a27462fc43870d05fa76ece085e5577a1672b8e9910127 SHA512 afde47e5f6274a02c6ca138a6316bf0f7ec1c7585acaf4ab19ba849280dfee9ba937c3f8f5117e70f2a6377224f6dab9757958272f4facbafdc11d7965ee7a84 DIST symengine.py-0.8.1.tar.gz 108857 BLAKE2B ff721982af3448d63074e599d56d38eef3002b4e8073fc22740ae61b288b863ed856d849675cbb1286f1b9bdd2263aa1e531635a0b074a7de6909a604e6b57e9 SHA512 73af12f686dcb495aef06964c76e6f31ef242bbba2e3b2fd545594fbf1902487edd021cc25b0a8324a7ac014e90ee85f64e388e092d36e8796db4c1ed53e75c7 diff --git a/dev-python/symengine/files/symengine-0.7.2-metadata.patch b/dev-python/symengine/files/symengine-0.7.2-metadata.patch deleted file mode 100644 index 965751a41e7a..000000000000 --- a/dev-python/symengine/files/symengine-0.7.2-metadata.patch +++ /dev/null @@ -1,68 +0,0 @@ -From 01b2f6255e05a808b14a9541b7a762277e409edb Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> -Date: Sat, 29 May 2021 19:37:04 +0200 -Subject: [PATCH] Fix python_requires to unbreak installed package metadata - -The '>=3.6.*' entry in python_requires is invalid and results in broken -metadata being installed. This in turn causes distlib to break. -To reproduce: - - $ pip install distlib symengine - $ python -c "import distlib.database; \ - distlib.database.DistributionPath().get_distribution('symengine')" - Traceback (most recent call last): - File "/tmp/venv3/lib/python3.9/site-packages/distlib/metadata.py", line 677, in __init__ - self._data = json.loads(data) - File "/usr/lib/python3.9/json/__init__.py", line 346, in loads - return _default_decoder.decode(s) - File "/usr/lib/python3.9/json/decoder.py", line 337, in decode - obj, end = self.raw_decode(s, idx=_w(s, 0).end()) - File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode - raise JSONDecodeError("Expecting value", s, err.value) from None - json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) - - During handling of the above exception, another exception occurred: - - Traceback (most recent call last): - File "<string>", line 1, in <module> - File "/tmp/venv3/lib/python3.9/site-packages/distlib/database.py", line 240, in get_distribution - self._generate_cache() - File "/tmp/venv3/lib/python3.9/site-packages/distlib/database.py", line 167, in _generate_cache - for dist in self._yield_distributions(): - File "/tmp/venv3/lib/python3.9/site-packages/distlib/database.py", line 148, in _yield_distributions - metadata = Metadata(fileobj=stream, scheme='legacy') - File "/tmp/venv3/lib/python3.9/site-packages/distlib/metadata.py", line 686, in __init__ - self._legacy = LegacyMetadata(fileobj=StringIO(data), - File "/tmp/venv3/lib/python3.9/site-packages/distlib/metadata.py", line 261, in __init__ - self.read_file(fileobj) - File "/tmp/venv3/lib/python3.9/site-packages/distlib/metadata.py", line 359, in read_file - self.set(field, value) - File "/tmp/venv3/lib/python3.9/site-packages/distlib/metadata.py", line 459, in set - if not scheme.is_valid_constraint_list(value): - File "/tmp/venv3/lib/python3.9/site-packages/distlib/version.py", line 716, in is_valid_constraint_list - return self.is_valid_matcher('dummy_name (%s)' % s) - File "/tmp/venv3/lib/python3.9/site-packages/distlib/version.py", line 703, in is_valid_matcher - self.matcher(s) - File "/tmp/venv3/lib/python3.9/site-packages/distlib/version.py", line 115, in __init__ - raise ValueError('\'.*\' not allowed for ' - ValueError: '.*' not allowed for '>=' constraints ---- - setup.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/setup.py b/setup.py -index 8e64d93..7b2a2d7 100644 ---- a/setup.py -+++ b/setup.py -@@ -222,7 +222,7 @@ setup(name="symengine", - author_email="symengine@googlegroups.com", - license="MIT", - url="https://github.com/symengine/symengine.py", -- python_requires='>=3.6.*,<4', -+ python_requires='>=3.6,<4', - zip_safe=False, - cmdclass = cmdclass, - classifiers=[ --- -2.31.1 - diff --git a/dev-python/symengine/symengine-0.7.2-r2.ebuild b/dev-python/symengine/symengine-0.7.2-r2.ebuild deleted file mode 100644 index d1aa5889ef88..000000000000 --- a/dev-python/symengine/symengine-0.7.2-r2.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7..9} ) - -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 ~amd64-linux ~x86-linux" - -BDEPEND=" - dev-util/cmake - dev-python/cython[${PYTHON_USEDEP}] - test? ( - dev-python/sympy[${PYTHON_USEDEP}] - ) -" -# See bug #786582 for symengine constraint -RDEPEND=" - dev-python/numpy[${PYTHON_USEDEP}] - >=sci-libs/symengine-$(ver_cut 1-2) -" - -distutils_enable_tests pytest - -# the C library installs the same docs -DOCS=() - -PATCHES=( - "${FILESDIR}"/${P}-metadata.patch -) - -src_prepare() { - default - - # Don't install tests - > "${S}/symengine/tests/CMakeLists.txt" || die -} - -python_test() { - cd "${BUILD_DIR}" || die - epytest -} - -python_install() { - distutils-r1_python_install - python_optimize -} |