commit 1afef6d1dff0690ede863e41d6ad1d80e28592d3 Author: tigro Date: Sun Jan 5 21:08:37 2025 +0300 import python-tables-3.10.1-1.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c90bc6b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/python-tables-3.10.1.tar.gz diff --git a/.python-tables.metadata b/.python-tables.metadata new file mode 100644 index 0000000..ab1a06f --- /dev/null +++ b/.python-tables.metadata @@ -0,0 +1 @@ +6ddc05496ab3415872d8c8513a4fc716a0b69396 SOURCES/python-tables-3.10.1.tar.gz diff --git a/SOURCES/0001-Skip-failing-test.patch b/SOURCES/0001-Skip-failing-test.patch new file mode 100644 index 0000000..b0031d1 --- /dev/null +++ b/SOURCES/0001-Skip-failing-test.patch @@ -0,0 +1,30 @@ +From 05ea02c366f5ffb2166f1582c947898662b05f40 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= +Date: Sat, 17 Aug 2024 14:06:07 +0200 +Subject: [PATCH] Skip failing test + +====================================================================== +FAIL: None (tables.tests.test_direct_chunk.EArrayDirectChunkingTestCase.None) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/builddir/build/BUILD/python-tables-3.10.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/tables/tests/test_direct_chunk.py", line 181, in test_write_chunk_filtermask + self.assertEqual(chunk_info.filter_mask, no_shuffle_mask) + ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +AssertionError: 0 != 4 +--- + tables/tests/test_direct_chunk.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tables/tests/test_direct_chunk.py b/tables/tests/test_direct_chunk.py +index ed290d7e6e..494b371ca9 100644 +--- a/tables/tests/test_direct_chunk.py ++++ b/tables/tests/test_direct_chunk.py +@@ -178,7 +178,7 @@ class DirectChunkingTestCase(common.TempFileMixin, common.PyTablesTestCase): + self.assertTrue(common.areArraysEqual(arr_obj, new_obj)) + + chunk_info = self.array.chunk_info(chunk_start) +- self.assertEqual(chunk_info.filter_mask, no_shuffle_mask) ++ # self.assertEqual(chunk_info.filter_mask, no_shuffle_mask) + + def test_write_chunk_unaligned(self): + self.assertRaises(tb.NotChunkAlignedError, diff --git a/SOURCES/0001-Skip-tests-that-fail-on-s390x.patch b/SOURCES/0001-Skip-tests-that-fail-on-s390x.patch new file mode 100644 index 0000000..a7c13f8 --- /dev/null +++ b/SOURCES/0001-Skip-tests-that-fail-on-s390x.patch @@ -0,0 +1,46 @@ +From 7d99960508f5158863b7d31894cefa999cb1afe5 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= +Date: Mon, 3 Jun 2024 20:19:41 +0200 +Subject: [PATCH] Skip tests that fail on s390x + +--- + tables/tests/test_index_backcompat.py | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/tables/tests/test_index_backcompat.py b/tables/tests/test_index_backcompat.py +index d921baa..d17a278 100644 +--- a/tables/tests/test_index_backcompat.py ++++ b/tables/tests/test_index_backcompat.py +@@ -2,6 +2,7 @@ from tables.tests import common + + + # Check indexes from PyTables version 2.0 ++@common.unittest.skipIf(common.platform.machine() == 's390x', 'GH#735') + class IndexesTestCase(common.TestFileMixin, common.PyTablesTestCase): + + def setUp(self): +@@ -139,17 +140,21 @@ class IndexesTestCase(common.TestFileMixin, common.PyTablesTestCase): + + + # Check indexes from PyTables version 2.0 ++@common.unittest.skipIf(common.platform.machine() == 's390x', 'GH#735') + class Indexes2_0TestCase(IndexesTestCase): + h5fname = common.test_filename("indexes_2_0.h5") + + + # Check indexes from PyTables version 2.1 ++@common.unittest.skipIf(common.platform.machine() == 's390x', 'GH#735') + class Indexes2_1TestCase(IndexesTestCase): + h5fname = common.test_filename("indexes_2_1.h5") + + + def suite(): + theSuite = common.unittest.TestSuite() ++ if common.platform.machine() == 's390x': ++ return theSuite + niter = 1 + + for n in range(niter): +-- +2.45.0 + diff --git a/SOURCES/pytablesmanual-3.3.0.pdf b/SOURCES/pytablesmanual-3.3.0.pdf new file mode 100644 index 0000000..dc67407 Binary files /dev/null and b/SOURCES/pytablesmanual-3.3.0.pdf differ diff --git a/SPECS/python-tables.spec b/SPECS/python-tables.spec new file mode 100644 index 0000000..cbf1c26 --- /dev/null +++ b/SPECS/python-tables.spec @@ -0,0 +1,428 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.1) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +#global commit 16191801a53eddae8ca9380a28988c3b5b263c5e +%{?gitcommit:%global gitcommitshort %(c=%{gitcommit}; echo ${c:0:7})} + +# Use the same directory of the main package for subpackage licence and docs +%global _docdir_fmt %{name} + +Summary: HDF5 support in Python +Name: python-tables +Version: 3.10.1 +Release: %autorelease +#Source0: https://github.com/PyTables/PyTables/archive/%{commit}/PyTables-%{commit}.tar.gz +Source0: https://github.com/PyTables/PyTables/archive/v%{version}/python-tables-%{version}.tar.gz + +# sometimes it doesn't get updated +%global manual_version 3.3.0 + +%bcond tests 1 + +Source1: https://github.com/PyTables/PyTables/releases/download/v%{manual_version}/pytablesmanual-%{manual_version}.pdf + +# https://github.com/PyTables/PyTables/issues/735 +Patch1: 0001-Skip-tests-that-fail-on-s390x.patch + +Patch3: 0001-Skip-failing-test.patch + +# Automatically converted from old format: BSD - review is highly recommended. +License: LicenseRef-Callaway-BSD +URL: https://www.pytables.org + +BuildRequires: hdf5-devel >= 1.8 +BuildRequires: bzip2-devel +BuildRequires: lzo-devel +BuildRequires: blosc-devel +BuildRequires: blosc2-devel +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-blosc2 +BuildRequires: python%{python3_pkgversion}-Cython >= 0.13 +BuildRequires: python%{python3_pkgversion}-numpy +BuildRequires: python%{python3_pkgversion}-numexpr >= 2.4 +BuildRequires: python%{python3_pkgversion}-six +BuildRequires: python%{python3_pkgversion}-typing-extensions + +ExcludeArch: %{ix86} + +%global _description %{expand: +PyTables is a package for managing hierarchical datasets and designed +to efficiently and easily cope with extremely large amounts of data.} + +%description %_description + +%package -n python%{python3_pkgversion}-tables +Summary: %{summary} + +Requires: python%{python3_pkgversion}-numpy +Requires: python%{python3_pkgversion}-six +Requires: python%{python3_pkgversion}-numexpr >= 2.4 +%{?python_provide:%python_provide python%{python3_pkgversion}-tables} + +%description -n python%{python3_pkgversion}-tables %_description + +%package doc +Summary: Documentation for PyTables +BuildArch: noarch + +%description doc +The %{name}-doc package contains the documentation for %{name}. + +%prep +%autosetup -p1 -n PyTables-%{version} +cp -a %{SOURCE1} pytablesmanual.pdf + +# Make sure we are not using anything from the bundled blosc by mistake +find c-blosc -mindepth 1 -maxdepth 1 -name hdf5 -prune -o -exec rm -r {} + + +# circumvent the broken attempt to detect library location +sed -r -i \ + '/def get_blosc2_directories\(\):/a \ \ \ \ return Path("%{_includedir}"),Path("%{_libdir}"),None' \ + setup.py + +%build +%py3_build + +%install +chmod -x examples/check_examples.sh +sed -i 's|bin/env |bin/|' utils/* + +%py3_install + +%check +%if %{with tests} +%ifarch %{ix86} s390x +skip=true +%else +skip=false +%endif + +cd / +PYTHONPATH=%{buildroot}%{python3_sitearch} %{python3} -m tables.tests.test_all -v || $skip +%endif + +%files -n python%{python3_pkgversion}-tables +%license LICENSE.txt LICENSES +%{_bindir}/ptdump +%{_bindir}/ptrepack +%{_bindir}/pt2to3 +%{_bindir}/pttree +%{python3_sitearch}/tables/ +%{python3_sitearch}/tables-%{version}*.egg-info/ + +%files doc +%license LICENSE.txt LICENSES +%doc pytablesmanual.pdf +%doc [A-KM-Za-z]*.txt +%doc examples/ + +%changelog +* Sun Jan 05 2025 Arkady L. Shane - 3.10.1-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Tue Sep 10 2024 Zbigniew Jędrzejewski-Szmek - 3.10.1-1 +- Version 3.10.1 (rhbz#2307416) + +* Wed Sep 04 2024 Miroslav Suchý - 3.10.0-3 +- convert license to SPDX + +* Sat Aug 17 2024 Zbigniew Jędrzejewski-Szmek - 3.10.0-2 +- Add patches for failing test_direct_chunk.py + +* Sat Aug 17 2024 Zbigniew Jędrzejewski-Szmek - 3.10.0-1 +- Version 3.10.0 (rhbz#2305077) + +* Fri Jul 19 2024 Fedora Release Engineering - 3.9.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jun 08 2024 Python Maint - 3.9.2-8 +- Rebuilt for Python 3.13 + +* Mon Jun 03 2024 Karolina Surma - 3.9.2-7 +- Fix the test suite run with Python 3.13 + +* Mon Jun 03 2024 Miro Hrončok - 3.9.2-6 +- Make the s390x patch unconditional + +* Sun Apr 21 2024 Zbigniew Jędrzejewski-Szmek - 3.9.2-5 +- Rebuild for blosc2-2.14.4 + +* Fri Jan 26 2024 Fedora Release Engineering - 3.9.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 3.9.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Dec 13 2023 jonathanspw - 3.9.2-2 +- fix sources + +* Thu Dec 07 2023 jonathanspw - 3.9.2-1 +- update to 3.9.2 rhbz#2251711 + +* Sun Nov 26 2023 Zbigniew Jędrzejewski-Szmek - 3.9.1-1 +- Version 3.9.1 (rhbz#2242285) + +* Wed Aug 16 2023 Zbigniew Jędrzejewski-Szmek - 3.8.0-5 +- Add patch to skip broken import check (rhbz#2231686) + +* Tue Jul 25 2023 Zbigniew Jędrzejewski-Szmek - 3.8.0-4 +- Stop building on i686 + +* Tue Jul 25 2023 Zbigniew Jędrzejewski-Szmek - 3.8.0-3 +- Skip tests on s390x and i668 + +* Tue Jul 25 2023 Zbigniew Jędrzejewski-Szmek - 3.8.0-2 +- Add patches for compat with latest cython and numpy + +* Tue Jul 25 2023 Zbigniew Jędrzejewski-Szmek - 3.8.0-1 +- Version 3.8.0 (rhbz#2156171) +- See https://github.com/PyTables/PyTables/releases/tag/v3.8.0 + +* Fri Jul 21 2023 Fedora Release Engineering - 3.7.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jul 18 2023 Zbigniew Jędrzejewski-Szmek - 3.7.0-9 +- Fix build with Python 3.12 (rhbz#2220528) + +* Tue Jun 13 2023 Python Maint - 3.7.0-8 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 3.7.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Mon Jan 02 2023 jonathanspw - 3.7.0-6 +- remove BR on python-mock + +* Fri Jul 22 2022 Fedora Release Engineering - 3.7.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 3.7.0-4 +- Rebuilt for Python 3.11 + +* Sat Mar 26 2022 Zbigniew Jędrzejewski-Szmek - 3.7.0-3 +- Force tests to pass + +* Sat Mar 26 2022 Zbigniew Jędrzejewski-Szmek - 3.7.0-2 +- Use the invocation of tests recommended by upstream + +* Fri Mar 25 2022 Zbigniew Jędrzejewski-Szmek - 3.7.0-1 +- Version 3.7.0 (rhbz#2036116) + +* Fri Mar 25 2022 Zbigniew Jędrzejewski-Szmek - 3.6.1-15 +- Rebuild in rawhide (rhbz#2050097) + +* Fri Jan 21 2022 Fedora Release Engineering - 3.6.1-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Mon Nov 22 2021 Orion Poplawski - 3.6.1-13 +- Rebuild for hdf5 1.12.1 + +* Fri Sep 24 2021 Zbigniew Jędrzejewski-Szmek - 3.6.1-12 +- Add patch to fix tests with hdf5-1.10.7 (#1994181) + +* Tue Aug 10 2021 Orion Poplawski - 3.6.1-5 +- Rebuild for hdf5 1.10.7 + +* Fri Jul 23 2021 Fedora Release Engineering - 3.6.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 3.6.1-3 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 3.6.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Nov 12 2020 Zbigniew Jędrzejewski-Szmek - 3.6.1-1 +- Update to latest version (#1761990) + +* Wed Jul 29 2020 Fedora Release Engineering - 3.5.2-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jun 25 2020 Orion Poplawski - 3.5.2-9 +- Rebuild for hdf5 1.10.6 + +* Mon May 25 2020 Miro Hrončok - 3.5.2-8 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 3.5.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 3.5.2-6 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 3.5.2-5 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 3.5.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Jul 12 2019 Zbigniew Jędrzejewski-Szmek - 3.5.2-3 +- Add patch to fix build on python3.8 (#1718246) + +* Fri Jun 28 2019 Miro Hrončok - 3.5.2-2 +- Subpackage python2-tables has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Sat Jun 1 2019 Zbigniew Jędrzejewski-Szmek - 3.5.2-1 +- Update to latest version (#1715694) + +* Wed May 22 2019 Miro Hrončok - 3.5.1-1 +- Update to 3.5.1 (#1687831) +- Fix build under python3.8 (#1712818) + +* Sat Mar 16 2019 Orion Poplawski - 3.4.4-5 +- Rebuild for hdf5 1.10.5 + +* Sun Mar 3 2019 Zbigniew Jędrzejewski-Szmek - 3.4.4-4 +- Backport patch from upstream for numpy 1.16 compatibility (#1675793) + +* Sat Feb 02 2019 Fedora Release Engineering - 3.4.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek - 3.4.4-3 +- Drop explicit locale setting + See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot + +* Sat Jul 14 2018 Fedora Release Engineering - 3.4.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sun Jun 24 2018 Miro Hrončok - 3.4.4-1 +- Update to 3.4.4 (#1570227) + +* Tue Jun 19 2018 Miro Hrončok - 3.4.2-3 +- Rebuilt for Python 3.7 + +* Wed Feb 28 2018 Iryna Shcherbina - 3.4.2-2 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Sat Feb 24 2018 Zbigniew Jędrzejewski-Szmek - 3.4.2-1 +- Update to latest version (#1441659) + +* Fri Feb 09 2018 Fedora Release Engineering - 3.3.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 3.3.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 3.3.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 3.3.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 3.3.0-3 +- Rebuild for Python 3.6 + +* Mon Nov 07 2016 Than Ngo - 3.3.0-2 +- rebuild against new blosc due to big endien issue on s390x/ppc64 + +* Thu Sep 15 2016 Zbigniew Jędrzejewski-Szmek - 3.3.0-1 +- Update to latest upstream version (#1352621) + +* Tue Jul 19 2016 Fedora Release Engineering - 3.2.2-6 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Tue May 17 2016 Orion Poplawski - 3.2.2-5 +- Update provides filter +- Ship python2 package +- Use %%python3_pkgversion for EPEL7 compatibility +- Use current python macros + +* Thu Feb 04 2016 Fedora Release Engineering - 3.2.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jan 21 2016 Orion Poplawski - 3.2.2-3 +- Rebuild for hdf5 1.8.16 + +* Wed Nov 18 2015 Zbigniew Jędrzejewski-Szmek - 3.2.2-2 +- Make sure numexpr is new enough + +* Sat Nov 14 2015 Zbigniew Jędrzejewski-Szmek - 3.2.2-1 +- Update to latest version + +* Tue Nov 10 2015 Fedora Release Engineering - 3.2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Thu Jun 18 2015 Fedora Release Engineering - 3.2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sun May 17 2015 Orion Poplawski - 3.2.0-2 +- Rebuild for hdf5 1.8.15 + +* Thu May 7 2015 Zbigniew Jędrzejewski-Szmek - 3.2.0-1 +- Update to 3.2.0 + +* Thu Jan 8 2015 Zbigniew Jędrzejewski-Szmek - 3.1.2-4.git1619180 +- Use blosc on all architectures + +* Thu Jan 8 2015 Zbigniew Jędrzejewski-Szmek - 3.1.2-3.git1619180 +- Update to latest snapshot and use external blosc + +* Wed Jan 07 2015 Orion Poplawski - 3.1.1-2 +- Rebuild for hdf5 1.8.14 + +* Tue Jan 06 2015 Zbigniew Jędrzejewski-Szmek - 3.1.1-1 +- Update to 3.1.1 (#1080889) + +* Tue Nov 25 2014 Dan Horák - 3.0.0-8 +- workaround OOM during Python3 tests on s390 + +* Sun Aug 17 2014 Fedora Release Engineering - 3.0.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 3.0.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Wed May 28 2014 Kalev Lember - 3.0.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 + +* Mon Mar 24 2014 Zbigniew Jędrzejewski-Szmek - 3.0.0-4 +- Rebuild for latest blosc + +* Fri Jan 10 2014 Zbigniew Jędrzejewski-Szmek - 3.0.0-3 +- Move python3 requires to the proper package (#1051691) + +* Thu Sep 05 2013 Zbigniew Jędrzejewski-Szmek - 3.0.0-2 +- Add python3-tables package + +* Wed Aug 21 2013 Thibault North - 3.0.0-1 +- Update to 3.0.0 + +* Sun Aug 04 2013 Fedora Release Engineering - 2.4.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu May 16 2013 Orion Poplawski - 2.4.0-3 +- Rebuild for hdf5 1.8.11 + +* Thu Feb 14 2013 Fedora Release Engineering - 2.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sun Oct 28 2012 Thibault North - 2.4.0-1 +- Update to 2.4.0 + +* Sat Jul 21 2012 Fedora Release Engineering - 2.3.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 2.3.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Nov 14 2011 Thibault North - 2.3.1-3 +- Remove lrucache.py which was deprecated and under AFL license + +* Thu Nov 10 2011 Thibault North - 2.3.1-2 +- Fixes and subpackage for the docs + +* Mon Nov 07 2011 Thibault North - 2.3.1-1 +- Fixes and update to 2.3.1 + +## END: Generated by rpmautospec