From e4ddbeb7c281f695ab5329e957810ec17edf094b9c7ebcc6ba3ab4996f550706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 20:30:11 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-diskcache revision 3a8507ecf0fcc8550c54995c667ca049 --- .gitattributes | 23 ++++++++++ diskcache-5.6.3.tar.gz | 3 ++ python-diskcache.changes | 96 ++++++++++++++++++++++++++++++++++++++++ python-diskcache.spec | 69 +++++++++++++++++++++++++++++ 4 files changed, 191 insertions(+) create mode 100644 .gitattributes create mode 100644 diskcache-5.6.3.tar.gz create mode 100644 python-diskcache.changes create mode 100644 python-diskcache.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/diskcache-5.6.3.tar.gz b/diskcache-5.6.3.tar.gz new file mode 100644 index 0000000..eab2e31 --- /dev/null +++ b/diskcache-5.6.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ecd01a006c60c68171571da77d905878bacc2103a8e0ade55dcda26271ea2bb3 +size 655441 diff --git a/python-diskcache.changes b/python-diskcache.changes new file mode 100644 index 0000000..a188876 --- /dev/null +++ b/python-diskcache.changes @@ -0,0 +1,96 @@ +------------------------------------------------------------------- +Wed Sep 27 12:15:19 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Mon Sep 4 15:58:51 UTC 2023 - Dirk Müller + +- update to 5.6.3: + * Fix peek when value is so large that a file is used + +------------------------------------------------------------------- +Wed Apr 26 06:24:33 UTC 2023 - Dirk Müller + +- update to 5.6.1 + * Close the cache explictly before deleting the reference + * pylint fixes + * Add maxlen parameter to diskcache.Deque + * update docs + * Support pathlib.Path as directory argument + +------------------------------------------------------------------- +Sat Jan 15 17:42:10 UTC 2022 - Dirk Müller + +- update to 5.4.0: + * test django 3.2 + * Fix DjangoCache.delete to return True/False + * remove unused imports + * run isort + +------------------------------------------------------------------- +Mon Dec 27 13:20:49 UTC 2021 - Ben Greiner + +- Update to 5.3.0 + * Support for Python 3.10 in testing (#238) + * Add support for Python 3.10 + * Update copyright to 2022 + * Bump version to 5.3.0 + * Add Python 3.10 to the README +- Avoid django test collections errors on python 3.6:# + no python36-Django 4 +- Keep ignoring djangocache tests due to + gh#grantjenks/python-diskcache#210 + +------------------------------------------------------------------- +Tue Nov 17 05:43:53 UTC 2020 - Steve Kowalik + +- Update to 5.1.0: + * Support transactions in FanoutCache (probably a bad idea) + * Prevent cache shard attribute access when unsafe + +------------------------------------------------------------------- +Thu Sep 17 11:24:06 UTC 2020 - Dirk Mueller + +- update to 5.0.3: + * drop python 2.7 support + * python 3.8 fixes + * add documentation about cache volume caveats + +------------------------------------------------------------------- +Thu Feb 27 05:15:40 UTC 2020 - Steve Kowalik + +- Update to 4.1.0: + * Move zero-expiration logic into memoize (rather than Cache.set) + * Provide JSONDisk with diskcache (#124) + * Add check for DEFAULT_TIMEOUT in DjangoCache.memoize + +------------------------------------------------------------------- +Thu Nov 14 15:10:00 UTC 2019 - Tomáš Chvátal + +- Update to pull in full python due to the dependencies + +------------------------------------------------------------------- +Thu Jul 25 10:52:27 UTC 2019 - pgajdos@suse.com + +- version update to 4.0.0 + * no upstream changelog + +------------------------------------------------------------------- +Fri Mar 8 13:19:48 UTC 2019 - Tomáš Chvátal + +- Update to 3.1.1: + * Fix various timeouts + * Small fixes around + +------------------------------------------------------------------- +Sun Jun 10 10:24:35 UTC 2018 - jengelh@inai.de + +- Remove metadata redundancies from description. + +------------------------------------------------------------------- +Fri Jun 8 13:51:38 UTC 2018 - petr@cervinka.net + +- Initial package version +- Django related tests are excluded from python3 tests. Tests are made for Django1 + only. Django1 is for python2 only in distribution. diff --git a/python-diskcache.spec b/python-diskcache.spec new file mode 100644 index 0000000..36e9ec8 --- /dev/null +++ b/python-diskcache.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-diskcache +# +# Copyright (c) 2023 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-diskcache +Version: 5.6.3 +Release: 0 +Summary: Disk and file backed cache +License: Apache-2.0 +URL: https://grantjenks.com/docs/diskcache/ +Source: https://github.com/grantjenks/python-diskcache/archive/v%{version}.tar.gz#/diskcache-%{version}.tar.gz +BuildRequires: %{python_module pytest-xdist} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{pythons} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module Django if (%python-base without python36-base)} +BuildRequires: %{python_module pytest-django if (%python-base without python36-base)} +Requires: python +BuildArch: noarch +%python_subpackages + +%description +DiskCache: Disk Backed Cache + +DiskCache is a disk and file backed cache library, written +in pure Python, and compatible with Django. + +%prep +%setup -q +sed -i '/--cov/d' tox.ini + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# No python36-Django 4 on TW +python36_flags=("--ignore" "tests/test_doctest.py" "-k" "not README.rst") +# Broken since Django 3.2 -- https://github.com/grantjenks/python-diskcache/issues/210 +donttest_djangocache="--ignore tests/test_djangocache.py" +%pytest "${$python_flags[@]}" ${donttest_djangocache} + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/diskcache +%{python_sitelib}/diskcache-%{version}*-info + +%changelog