forked from pool/python-web_cache
- Switch to pyproject macros.
- No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-web_cache?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
1.1.0.tar.gz
Normal file
3
1.1.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4c8f2b2bc342b8f1926f2caf9baab3d18b8b1266a1c0e2ec01405caccd54c810
|
||||
size 18171
|
||||
38
python-web_cache.changes
Normal file
38
python-web_cache.changes
Normal file
@@ -0,0 +1,38 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 13 02:43:24 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Switch to pyproject macros.
|
||||
- No more greedy globs in %files.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 3 10:19:53 UTC 2020 - pgajdos@suse.com
|
||||
|
||||
- remove unused unittest2 dependency
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 11 08:15:14 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Pull in full python for sqlite module
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 11 11:00:53 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
- update to version 1.1.0
|
||||
* Store database format in table name to ease future
|
||||
incompatible changes
|
||||
* Allow disabling compression if ratio is below a threshold value
|
||||
* Drop Python 3.3 support
|
||||
* Get rid of pypandoc
|
||||
- use Github release tarball because the tests are not exported
|
||||
on PyPi
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 12:55:56 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Remove superfluous devel dependency for noarch package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 17 13:10:52 UTC 2017 - alarrosa@suse.com
|
||||
|
||||
- Initial release of python-web_cache 1.0.2
|
||||
- Use skip_python2 since python-web_cache only supports python3
|
||||
62
python-web_cache.spec
Normal file
62
python-web_cache.spec
Normal file
@@ -0,0 +1,62 @@
|
||||
#
|
||||
# spec file for package python-web_cache
|
||||
#
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
%define skip_python2 1
|
||||
Name: python-web_cache
|
||||
Version: 1.1.0
|
||||
Release: 0
|
||||
Summary: Persistent cache storage python module
|
||||
License: LGPL-2.1-only
|
||||
URL: https://github.com/desbma/web_cache
|
||||
Source: https://github.com/desbma/web_cache/archive/%{version}.tar.gz
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: %{pythons}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Python module for simple key-value storage backed up by sqlite3
|
||||
database. The typical use case is a URL to HTTP data cache, but it can
|
||||
also be used fo non web resources. It features different cache eviction
|
||||
strategies and optional compression.
|
||||
|
||||
%prep
|
||||
%setup -q -n web_cache-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m unittest discover -v
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{python_sitelib}/web_cache
|
||||
%{python_sitelib}/web_cache-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user