forked from pool/python-chest
- 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
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
chest-0.2.3.tar.gz
Normal file
3
chest-0.2.3.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f2d1030d4720fd4c0cb258c3383d4bab764cfe441bab1366a0d186b0baf4f4d6
|
||||
size 9614
|
||||
56
python-chest.changes
Normal file
56
python-chest.changes
Normal file
@@ -0,0 +1,56 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri May 2 03:18:24 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Switch to pyproject macros.
|
||||
- No more greedy globs in %files.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 31 04:22:18 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Add patch support-python-310.patch:
|
||||
* Support Python 3.10.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 21 04:30:46 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- 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 <jengelh@inai.de>
|
||||
|
||||
- Be a little more specific with the summary.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 24 08:23:22 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- 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
|
||||
|
||||
65
python-chest.spec
Normal file
65
python-chest.spec
Normal file
@@ -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
|
||||
10
support-python-310.patch
Normal file
10
support-python-310.patch
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user