From cb4fb26414395ac362b147029634b3416466913f8aa1ded13bb6dcf142fc982c Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 2 May 2025 03:19:02 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-chest?expand=0&rev=11 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + chest-0.2.3.tar.gz | 3 ++ python-chest.changes | 56 ++++++++++++++++++++++++++++++++++ python-chest.spec | 65 ++++++++++++++++++++++++++++++++++++++++ support-python-310.patch | 10 +++++++ 6 files changed, 158 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 chest-0.2.3.tar.gz create mode 100644 python-chest.changes create mode 100644 python-chest.spec create mode 100644 support-python-310.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/chest-0.2.3.tar.gz b/chest-0.2.3.tar.gz new file mode 100644 index 0000000..3855031 --- /dev/null +++ b/chest-0.2.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f2d1030d4720fd4c0cb258c3383d4bab764cfe441bab1366a0d186b0baf4f4d6 +size 9614 diff --git a/python-chest.changes b/python-chest.changes new file mode 100644 index 0000000..35083b3 --- /dev/null +++ b/python-chest.changes @@ -0,0 +1,56 @@ +------------------------------------------------------------------- +Fri May 2 03:18:24 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + +------------------------------------------------------------------- +Mon Jan 31 04:22:18 UTC 2022 - Steve Kowalik + +- Add patch support-python-310.patch: + * Support Python 3.10. + +------------------------------------------------------------------- +Wed Apr 21 04:30:46 UTC 2021 - Steve Kowalik + + - Do not build for Python 3.6, due to no NumPy. + +------------------------------------------------------------------- +Fri Jun 7 12:03:12 UTC 2019 - pgajdos@suse.com + +- call spec-cleaner +- run the testsuite + +------------------------------------------------------------------- +Thu Jan 24 09:26:16 UTC 2019 - Jan Engelhardt + +- Be a little more specific with the summary. + +------------------------------------------------------------------- +Thu Jan 24 08:23:22 UTC 2019 - Tomáš Chvátal + +- Format with spec-cleaner + +------------------------------------------------------------------- +Wed May 10 16:27:02 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version +- Fix source URL. +- Update to version 0.2.3 + * Fix open file bloat. + +------------------------------------------------------------------- +Mon Jul 13 13:12:38 UTC 2015 - toddrme2178@gmail.com + +- Fix building on SLES 11 + +------------------------------------------------------------------- +Tue May 19 16:08:25 UTC 2015 - toddrme2178@gmail.com + +- Initial python 2.x version. + +------------------------------------------------------------------- +Wed Apr 22 04:52:58 UTC 2015 - arun@gmx.de + +- initial version + diff --git a/python-chest.spec b/python-chest.spec new file mode 100644 index 0000000..df730ca --- /dev/null +++ b/python-chest.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-chest +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-chest +Version: 0.2.3 +Release: 0 +Summary: Spill-to-disk dictionary for Python +License: BSD-3-Clause +URL: https://github.com/ContinuumIO/chest +Source: https://files.pythonhosted.org/packages/source/c/chest/chest-%{version}.tar.gz +Patch0: support-python-310.patch +BuildRequires: %{python_module HeapDict} +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-HeapDict +BuildArch: noarch +%python_subpackages + +%description +A dictionary that spills to disk. +Chest acts like a dictionary, but it can write its contents to disk. +This is useful in the following two occasions: +1. Chest can hold datasets that are larger than memory +2. Chest persists and so can be saved and loaded for later use + +%prep +%autosetup -p1 -n chest-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE.txt +%doc README.rst +%{python_sitelib}/chest +%{python_sitelib}/chest-%{version}.dist-info + +%changelog diff --git a/support-python-310.patch b/support-python-310.patch new file mode 100644 index 0000000..09fedb9 --- /dev/null +++ b/support-python-310.patch @@ -0,0 +1,10 @@ +Index: chest-0.2.3/chest/core.py +=================================================================== +--- chest-0.2.3.orig/chest/core.py ++++ chest-0.2.3/chest/core.py +@@ -1,4 +1,4 @@ +-from collections import MutableMapping ++from collections.abc import MutableMapping + from functools import partial + from threading import Lock + from contextlib import contextmanager