[gentoo-commits] repo/gentoo:master commit in: dev-python/pytables/files/, dev-python/pytables/

2022-02-03 Thread Michał Górny
commit: 6ada0d6fa619b68b826130574ab9aafc71eaf5c2
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Feb  3 07:51:54 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Feb  3 08:27:48 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ada0d6f

dev-python/pytables: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pytables/Manifest   |   1 -
 ...tables-3.6.1-big-endian-tests-skip-subset.patch |  36 -
 .../files/pytables-3.6.1-numpy-float.patch | 176 -
 .../pytables/files/pytables-3.6.1-py310.patch  |  49 --
 dev-python/pytables/pytables-3.6.1-r2.ebuild   |  89 ---
 5 files changed, 351 deletions(-)

diff --git a/dev-python/pytables/Manifest b/dev-python/pytables/Manifest
index 0ef697796364..c456f554b2d0 100644
--- a/dev-python/pytables/Manifest
+++ b/dev-python/pytables/Manifest
@@ -1,2 +1 @@
-DIST tables-3.6.1.tar.gz 4641089 BLAKE2B 
4ef44b1263f40babe6719bac911ab191e9cb0c58c377705b755fa83f1fba5af1d0fab10b0b45bd6af619a9dce4842a80afad8d8fbab64c3be4f35a1b3f117ee3
 SHA512 
7f018b70251095049bce9075be4e19f72efba9d39121a35c4521f634b1dd5b81ab6de47df3bb44ad6b8b2dbdbff4e6d0985ad1a7b2f13b44f920c0935e5830ff
 DIST tables-3.7.0.tar.gz 8227955 BLAKE2B 
0d5b7b765375c4787f1210138e5fd02e3c0ce429ef209a3a8d4fd3bc094f68486ab6f4d0a960ce86efea6991ed691ef2a3e9e8f37a49fe91cb8d6372cadea80e
 SHA512 
eaa368d063b5fad87e6d0f9ab6f02da0b2a3542740a52fe8c2bb58e41121495d07b6d2710ad402a28891294aa61a11238c6a7e2cf2933a1bb11391b79cf4fd13

diff --git 
a/dev-python/pytables/files/pytables-3.6.1-big-endian-tests-skip-subset.patch 
b/dev-python/pytables/files/pytables-3.6.1-big-endian-tests-skip-subset.patch
deleted file mode 100644
index 6a492a1a581f..
--- 
a/dev-python/pytables/files/pytables-3.6.1-big-endian-tests-skip-subset.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-https://bugs.gentoo.org/805995
-https://github.com/PyTables/PyTables/issues/735
-https://sources.debian.org/src/pytables/3.6.1-5/debian/patches/0005-Skip-index-backcompat-tests-on-bingendian.patch/
-
-From: Antonio Valentino 
-Date: Sat, 3 Aug 2019 16:22:13 +
-Subject: Skip index backcompat tests on bingendian
-
-Forwarded: not-needed
 a/tables/tests/test_index_backcompat.py
-+++ b/tables/tests/test_index_backcompat.py
-@@ -6,8 +6,10 @@ from tables.tests.common import verbose
- from tables.tests.common import unittest, test_filename
- from tables.tests.common import PyTablesTestCase as TestCase
- 
-+import sys
- 
- # Check indexes from PyTables version 2.0
-+@unittest.skipIf(sys.byteorder != 'little', 'broken on big-endian')
- class IndexesTestCase(common.TestFileMixin, TestCase):
- 
- def setUp(self):
-@@ -145,11 +147,13 @@ class IndexesTestCase(common.TestFileMixin, TestCase):
- 
- 
- # Check indexes from PyTables version 2.0
-+@unittest.skipIf(sys.byteorder != 'little', 'broken on big-endian')
- class Indexes2_0TestCase(IndexesTestCase):
- h5fname = test_filename("indexes_2_0.h5")
- 
- 
- # Check indexes from PyTables version 2.1
-+@unittest.skipIf(sys.byteorder != 'little', 'broken on big-endian')
- class Indexes2_1TestCase(IndexesTestCase):
- h5fname = test_filename("indexes_2_1.h5")
- 

diff --git a/dev-python/pytables/files/pytables-3.6.1-numpy-float.patch 
b/dev-python/pytables/files/pytables-3.6.1-numpy-float.patch
deleted file mode 100644
index 71fa3b85dacf..
--- a/dev-python/pytables/files/pytables-3.6.1-numpy-float.patch
+++ /dev/null
@@ -1,176 +0,0 @@
-From d2a480d14f29fb1d2baee292bc6a2cca4817dcbd Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= 
-Date: Sun, 24 Jan 2021 16:36:21 +0100
-Subject: [PATCH] Use lowercase float/int as numpy dtype
-
-Float64 is gone with numpy 1.20, which causes doctests to fail
-(https://bugzilla.redhat.com/show_bug.cgi?id=1914335).
-
-Similarly all uses of Float32, Int32 should be replaced by float32 and int32.
-
->>> numpy.__version__
-'1.19.4'
->>> [k for k in numpy.sctypeDict.keys() if str(k).lower().startswith('float')]
-['float16', 'Float16', 'float32', 'Float32', 'float64', 'Float64', 'float128', 
'Float128', 'float_', 'float']
-
->>> numpy.__version__
-'1.20.0rc2'
->>> [k for k in numpy.sctypeDict.keys() if str(k).lower().startswith('float')]
-['float16', 'float32', 'float64', 'float128', 'float_', 'float']

- bench/bsddb-table-bench.py | 10 +-
- bench/postgres-search-bench.py |  4 ++--
- bench/pytables-search-bench.py |  6 +++---
- bench/recarray2-test.py|  2 +-
- bench/shelve-bench.py  | 10 +-
- bench/sqlite-search-bench.py   |  4 ++--
- tables/atom.py |  2 +-
- 7 files changed, 19 insertions(+), 19 deletions(-)
-
-diff --git a/bench/bsddb-table-bench.py b/bench/bsddb-table-bench.py
-index dd9f875b..a2e02361 100644
 a/bench/bsddb-table-bench.py
-+++ b/bench/bsddb-table-bench.py
-@@ -83,11 +83,11 @@ def createFile(filename, totalrows, recsize, verbose):
- # Get the 

[gentoo-commits] repo/gentoo:master commit in: dev-python/pytables/files/, dev-python/pytables/

2021-06-20 Thread Michał Górny
commit: 73150fbf0a09f34520a7721298a07c81dacae77a
Author: Michał Górny  gentoo  org>
AuthorDate: Sun Jun 20 18:34:53 2021 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Jun 20 18:34:53 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73150fbf

dev-python/pytables: Enable py3.10

Signed-off-by: Michał Górny  gentoo.org>

 .../pytables/files/pytables-3.6.1-py310.patch  | 49 ++
 dev-python/pytables/pytables-3.6.1.ebuild  |  5 ++-
 2 files changed, 52 insertions(+), 2 deletions(-)

diff --git a/dev-python/pytables/files/pytables-3.6.1-py310.patch 
b/dev-python/pytables/files/pytables-3.6.1-py310.patch
new file mode 100644
index 000..600516d1639
--- /dev/null
+++ b/dev-python/pytables/files/pytables-3.6.1-py310.patch
@@ -0,0 +1,49 @@
+From 2431150d691f5ccdb3da204a46e346c156ea2523 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= 
+Date: Mon, 16 Nov 2020 10:53:05 +0100
+Subject: [PATCH] doctest: adjust __init__ TypeError formatting
+
+Python3.10 includes the class name in the TypeError string for
+__init__(), so the literal match does not work anymore.
+---
+ tables/atom.py| 4 ++--
+ tables/filters.py | 4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/tables/atom.py b/tables/atom.py
+index 81d37c54..9cfd8609 100644
+--- a/tables/atom.py
 b/tables/atom.py
+@@ -569,10 +569,10 @@ class Atom(metaclass=MetaAtom):
+ >>> atom3 = atom1.copy(shape=(2, 2))
+ >>> print(atom3)
+ Int32Atom(shape=(2, 2), dflt=0)
+->>> atom1.copy(foobar=42)
++>>> atom1.copy(foobar=42) #doctest: +ELLIPSIS
+ Traceback (most recent call last):
+ ...
+-TypeError: __init__() got an unexpected keyword argument 'foobar'
++TypeError: ...__init__() got an unexpected keyword argument 
'foobar'
+ 
+ """
+ newargs = self._get_init_args()
+diff --git a/tables/filters.py b/tables/filters.py
+index f809ce77..7cb9b02d 100644
+--- a/tables/filters.py
 b/tables/filters.py
+@@ -432,10 +432,10 @@ class Filters:
+ Filters(complevel=0, shuffle=False, bitshuffle=False, 
fletcher32=False, least_significant_digit=None)
+ >>> print(filters3)
+ Filters(complevel=1, complib='zlib', shuffle=False, 
bitshuffle=False, fletcher32=False, least_significant_digit=None)
+->>> filters1.copy(foobar=42)
++>>> filters1.copy(foobar=42) #doctest: +ELLIPSIS
+ Traceback (most recent call last):
+ ...
+-TypeError: __init__() got an unexpected keyword argument 'foobar'
++TypeError: ...__init__() got an unexpected keyword argument 
'foobar'
+ 
+ """
+ 
+-- 
+2.32.0
+

diff --git a/dev-python/pytables/pytables-3.6.1.ebuild 
b/dev-python/pytables/pytables-3.6.1.ebuild
index b504eaf8f32..67448098a5b 100644
--- a/dev-python/pytables/pytables-3.6.1.ebuild
+++ b/dev-python/pytables/pytables-3.6.1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{8..9} )
+PYTHON_COMPAT=( python3_{8..10} )
 PYTHON_REQ_USE="threads(+)"
 
 MY_PN=tables
@@ -46,6 +46,7 @@ DOCS=( RELEASE_NOTES.txt THANKS )
 
 PATCHES=(
"${FILESDIR}"/${P}-numpy-float.patch
+   "${FILESDIR}"/${P}-py310.patch
 )
 
 python_prepare_all() {
@@ -64,7 +65,7 @@ python_compile() {
 
 python_test() {
cd "${BUILD_DIR}"/lib* || die
-   ${EPYTHON} tables/tests/test_all.py || die
+   "${EPYTHON}" tables/tests/test_all.py -v || die
 }
 
 python_install_all() {



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytables/files/, dev-python/pytables/

2017-05-02 Thread Michał Górny
commit: 667b0f9ed66f0e45d7193a5279181a5811e9495c
Author: Michał Górny  gentoo  org>
AuthorDate: Tue May  2 11:16:55 2017 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue May  2 11:58:15 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=667b0f9e

dev-python/pytables: Clean old versions up

 dev-python/pytables/Manifest   |  4 --
 .../pytables/files/pytables-3.2.0-blosc.patch  | 16 -
 dev-python/pytables/pytables-3.2.0.ebuild  | 73 -
 dev-python/pytables/pytables-3.2.1.1.ebuild| 74 --
 dev-python/pytables/pytables-3.2.1.ebuild  | 73 -
 dev-python/pytables/pytables-3.2.2.ebuild  | 74 --
 6 files changed, 314 deletions(-)

diff --git a/dev-python/pytables/Manifest b/dev-python/pytables/Manifest
index c2eedfa8885..54a8082397e 100644
--- a/dev-python/pytables/Manifest
+++ b/dev-python/pytables/Manifest
@@ -1,6 +1,2 @@
 DIST tables-3.1.1.tar.gz 6715786 SHA256 
39b9036376f1185599771c19276f13b5b9119d98f9108f58595745ded3fe2da3 SHA512 
b5b2052dd81c4748c5e26c1f61f9f92891f48335b0a553f7602ab11c9029dd673d27b91e24cac0da21a81df0c26dbcd9a438214fa58af1ae831c5f04dfa212a6
 WHIRLPOOL 
86fd6dc9e12503fdbd23013b75f33a41eadbbac0e6dd5ac9a91476d073195077fc6b3d5ad24b1dd4b4c18ae7ed8abc8ea1708262e52240f4c2c3b1153f8c9e91
-DIST tables-3.2.0.tar.gz 7039718 SHA256 
60980e44676bfe463cdd2582ecdacc0b0763b259477015e866f8af72b4cdba44 SHA512 
6ef7925bafbec04a3f581d13e9cc266b9b68b11dce27cf28c501dbbc538d74ddcfa15cbe97fa69fb793911cc6dbf3112f503b29c6e4e3e7631a6761cc1303253
 WHIRLPOOL 
412ada055b81fd7409b67288bc2bcf9ed527c9c42dbdd75c52ce7287f53ed12322b8b4423c9fab0aba98e0f12a8764a45316104567c193b469a84fdda3cbfc30
-DIST tables-3.2.1.1.tar.gz 7006881 SHA256 
21e9749a60c6acc8a9755a52d95b414bc4f4b2c72a9175af360225883a775358 SHA512 
ca70645c9885ae54a74c162ce37ee0a7e605f60757743f9015f184aaae71c8da95c5b443793aee2667ced208be02608ee2ab898403d19a3ec367bb85f3afdbbb
 WHIRLPOOL 
284c847944f46f20efa0b9bc1f69839257528ab8c281456abb864ba475fc24f33ae2be608c50313010ea68f8d037c14c3c27db9aa45ede84fbaa827c27560284
-DIST tables-3.2.1.tar.gz 6988695 SHA256 
212d4f32899a9a0a6b3f865262c20c6ff864fb60e1b8be70f0bbc80137456e31 SHA512 
5c6ad8a2e07c45a0aa53d98e81192b2cc2f2e0a91b5956ddb84f98523bb7849f5ea0a5cd21047a970d41ecd9a2a2b942e491738c1381ac754ed549eef62170dd
 WHIRLPOOL 
219fec1367e7ddf7ecb1b1080c70576f7be9aaa059fd32d6744f9a661c210b26fc6d72604dad33ed97bc9fbe8febf130b0367fb00099709a0fbbd23b524c3f9e
-DIST tables-3.2.2.tar.gz 7008045 SHA256 
3564b351a71ec1737b503b001eb7ceae1f65d5d6e3ffe1ea75aafba10f37fa84 SHA512 
7e21be2629bdf4c31e015f45c1bd3ba2156124c540f46cdca07fa31bfc45b37decabd9b3f70f7f2c664806d905aed98d168de46f32dcac935065f2201107f357
 WHIRLPOOL 
da2834b9c50d73c3aa6628b36a5c0d76ab7e528a437b5690fff9b0a989a2819048f157fa833f7dea76009ea02abd3c459b854adb3b0acaba5c6bbecefc6c85ad
 DIST tables-3.3.0.tar.gz 7004337 SHA256 
8383ccf02e041a5d55494a09fc5514140b4653055a2732c981b5fd0f7408822c SHA512 
e19445f0f5f2530d49ce55f258931babb7b05df2366637ddbc306323a1f75b7f7dcf91d70a8cc1f41b182d4cdd9c83872873168592bdcce7bd5acae9f3274f36
 WHIRLPOOL 
f270f741d6886775cc730fbcb79de215fbbe2d9b7b2b6efc6b5b3fa7d141046e7c69daad140ad7cc533b439bfae801ea0e1567939dc4258e5c3b6a88f27cd86c

diff --git a/dev-python/pytables/files/pytables-3.2.0-blosc.patch 
b/dev-python/pytables/files/pytables-3.2.0-blosc.patch
deleted file mode 100644
index 24c58c1a921..000
--- a/dev-python/pytables/files/pytables-3.2.0-blosc.patch
+++ /dev/null
@@ -1,16 +0,0 @@
- setup.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/setup.py b/setup.py
-index 2c0c126..1448eb1 100755
 a/setup.py
-+++ b/setup.py
-@@ -768,7 +768,7 @@ if 'BLOSC' not in optional_libs:
- CFLAGS.append(ff)
- break
- else:
--ADDLIBS += ['blosc']
-+ADDLIBS += ['blosc', 'blosc_filter']
- 
- 
- utilsExtension_libs = LIBS + ADDLIBS

diff --git a/dev-python/pytables/pytables-3.2.0.ebuild 
b/dev-python/pytables/pytables-3.2.0.ebuild
deleted file mode 100644
index 597054bc2ab..000
--- a/dev-python/pytables/pytables-3.2.0.ebuild
+++ /dev/null
@@ -1,73 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
-PYTHON_REQ_USE="threads(+)"
-
-MY_PN=tables
-MY_P=${MY_PN}-${PV}
-
-inherit distutils-r1
-
-DESCRIPTION="Hierarchical datasets for Python"
-HOMEPAGE="http://www.pytables.org/;
-SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
-
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-LICENSE="BSD"
-IUSE="doc examples"
-
-RDEPEND="
-   app-arch/bzip2:0=
-   dev-libs/c-blosc:0=[hdf5]
-   dev-libs/lzo:2=
-   >=dev-python/numpy-1.7.1[${PYTHON_USEDEP}]
-   >=dev-python/numexpr-2.4[${PYTHON_USEDEP}]
-   >=sci-libs/hdf5-1.8.4:0="
-DEPEND="${RDEPEND}
-