1
0

7 Commits

Author SHA256 Message Date
a01bd64dcc Accepting request 1290787 from devel:languages:python
- disable django support on SLE15 also

  * Fix peek when value is so large that a file is used
  * Support pathlib.Path as directory argument

OBS-URL: https://build.opensuse.org/request/show/1290787
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-diskcache?expand=0&rev=15
2025-07-08 13:27:53 +00:00
f77d20dd52 - disable django support on SLE15 also
* Fix peek when value is so large that a file is used
  * Support pathlib.Path as directory argument

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-diskcache?expand=0&rev=31
2025-07-05 14:54:02 +00:00
89f514b5c0 Accepting request 1282971 from devel:languages:python
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1282971
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-diskcache?expand=0&rev=14
2025-06-10 06:57:13 +00:00
5f8a52a643 - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-diskcache?expand=0&rev=29
2025-06-05 06:07:13 +00:00
1a88b38f59 Accepting request 1204911 from devel:languages:python
- Make Django build-requirement conditional and disable by default for
  SUSE:SLFO:Main, bsc#1231124

OBS-URL: https://build.opensuse.org/request/show/1204911
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-diskcache?expand=0&rev=13
2024-10-02 19:32:36 +00:00
a911e0f0f3 SUSE:SLFO:Main, bsc#1231124
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-diskcache?expand=0&rev=27
2024-10-01 10:24:28 +00:00
9269556c91 - Make Django build-requirement conditional and disable by default for
SUSE:SLFO:Main

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-diskcache?expand=0&rev=26
2024-10-01 10:24:01 +00:00
2 changed files with 39 additions and 8 deletions

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Sat Jul 5 14:53:34 UTC 2025 - Dirk Müller <dmueller@suse.com>
- disable django support on SLE15 also
-------------------------------------------------------------------
Thu Jun 5 06:01:37 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Tue Oct 1 10:19:39 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Make Django build-requirement conditional and disable by default for
SUSE:SLFO:Main, bsc#1231124
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Sep 27 12:15:19 UTC 2023 - ecsos <ecsos@opensuse.org> Wed Sep 27 12:15:19 UTC 2023 - ecsos <ecsos@opensuse.org>
@@ -7,7 +23,7 @@ Wed Sep 27 12:15:19 UTC 2023 - ecsos <ecsos@opensuse.org>
Mon Sep 4 15:58:51 UTC 2023 - Dirk Müller <dmueller@suse.com> Mon Sep 4 15:58:51 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 5.6.3: - update to 5.6.3:
* Fix peek when value is so large that a file is used * Fix peek when value is so large that a file is used
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Apr 26 06:24:33 UTC 2023 - Dirk Müller <dmueller@suse.com> Wed Apr 26 06:24:33 UTC 2023 - Dirk Müller <dmueller@suse.com>
@@ -17,7 +33,7 @@ Wed Apr 26 06:24:33 UTC 2023 - Dirk Müller <dmueller@suse.com>
* pylint fixes * pylint fixes
* Add maxlen parameter to diskcache.Deque * Add maxlen parameter to diskcache.Deque
* update docs * update docs
* Support pathlib.Path as directory argument * Support pathlib.Path as directory argument
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jan 15 17:42:10 UTC 2022 - Dirk Müller <dmueller@suse.com> Sat Jan 15 17:42:10 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-diskcache # spec file for package python-diskcache
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,13 @@
# #
%if 0%{?suse_version} == 1600 || 0%{?suse_version} == 1500
# No django in SLFO:Main or SLE15
%bcond_with django
%else
%bcond_without django
%endif
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-diskcache Name: python-diskcache
Version: 5.6.3 Version: 5.6.3
@@ -24,14 +31,18 @@ Summary: Disk and file backed cache
License: Apache-2.0 License: Apache-2.0
URL: https://grantjenks.com/docs/diskcache/ URL: https://grantjenks.com/docs/diskcache/
Source: https://github.com/grantjenks/python-diskcache/archive/v%{version}.tar.gz#/diskcache-%{version}.tar.gz Source: https://github.com/grantjenks/python-diskcache/archive/v%{version}.tar.gz#/diskcache-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: %{pythons} BuildRequires: %{pythons}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: %{python_module Django if (%python-base without python36-base)} %if %{with django}
BuildRequires: %{python_module pytest-django if (%python-base without python36-base)} BuildRequires: %{python_module Django}
BuildRequires: %{python_module pytest-django}
%endif
Requires: python Requires: python
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -47,18 +58,22 @@ in pure Python, and compatible with Django.
sed -i '/--cov/d' tox.ini sed -i '/--cov/d' tox.ini
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%if %{without django}
python_flags=("--ignore" "tests/test_doctest.py" "-k" "not README.rst")
%else
# No python36-Django 4 on TW # No python36-Django 4 on TW
python36_flags=("--ignore" "tests/test_doctest.py" "-k" "not README.rst") python36_flags=("--ignore" "tests/test_doctest.py" "-k" "not README.rst")
%endif
# Broken since Django 3.2 -- https://github.com/grantjenks/python-diskcache/issues/210 # Broken since Django 3.2 -- https://github.com/grantjenks/python-diskcache/issues/210
donttest_djangocache="--ignore tests/test_djangocache.py" donttest_djangocache="--ignore tests/test_djangocache.py"
%pytest "${$python_flags[@]}" ${donttest_djangocache} %pytest "${$python_flags[@]}" "${python_flags[@]}" ${donttest_djangocache}
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE