From 302b03ceddf93c63d154792813ef8724078b10458e92f40f973cd93bad53b7a8 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 13 Jun 2025 02:53:06 +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-web_cache?expand=0&rev=11 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + 1.1.0.tar.gz | 3 ++ python-web_cache.changes | 38 ++++++++++++++++++++++++ python-web_cache.spec | 62 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 127 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 1.1.0.tar.gz create mode 100644 python-web_cache.changes create mode 100644 python-web_cache.spec 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/1.1.0.tar.gz b/1.1.0.tar.gz new file mode 100644 index 0000000..c23b3e8 --- /dev/null +++ b/1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c8f2b2bc342b8f1926f2caf9baab3d18b8b1266a1c0e2ec01405caccd54c810 +size 18171 diff --git a/python-web_cache.changes b/python-web_cache.changes new file mode 100644 index 0000000..6d27d18 --- /dev/null +++ b/python-web_cache.changes @@ -0,0 +1,38 @@ +------------------------------------------------------------------- +Fri Jun 13 02:43:24 UTC 2025 - Steve Kowalik + +- 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 + +- Pull in full python for sqlite module + +------------------------------------------------------------------- +Thu Apr 11 11:00:53 UTC 2019 - Marketa Calabkova + +- 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 + +- 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 diff --git a/python-web_cache.spec b/python-web_cache.spec new file mode 100644 index 0000000..f873ba6 --- /dev/null +++ b/python-web_cache.spec @@ -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