14
0

Accepting request 942797 from home:bnavigator:py310

- 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

OBS-URL: https://build.opensuse.org/request/show/942797
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-diskcache?expand=0&rev=18
This commit is contained in:
2021-12-29 00:38:25 +00:00
committed by Git OBS Bridge
parent 220f45bd51
commit 25ef5e068d
4 changed files with 31 additions and 12 deletions

3
diskcache-5.3.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:54d56f96a011f1914434cd59c3e90c5318a19ab36a295e8c2d6cb51145c10857
size 653506

View File

@@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Dec 27 13:20:49 UTC 2021 - Ben Greiner <code@bnavigator.de>
- 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 <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-diskcache
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,19 +19,20 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global skip_python2 1
Name: python-diskcache
Version: 5.1.0
Version: 5.3.0
Release: 0
Summary: Disk and file backed cache
License: Apache-2.0
URL: http://www.grantjenks.com/docs/diskcache/
Source: https://github.com/grantjenks/python-diskcache/archive/v%{version}.tar.gz
BuildRequires: %{python_module Django}
BuildRequires: %{python_module mock}
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
@@ -44,6 +45,7 @@ in pure Python, and compatible with Django.
%prep
%setup -q
sed -i '/--cov/d' tox.ini
%build
%python_build
@@ -53,13 +55,16 @@ in pure Python, and compatible with Django.
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
sed -i '/-n auto/d' tox.ini
rm tests/test_djangocache.py
%pytest
# 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}/*
%{python_sitelib}/diskcache
%{python_sitelib}/diskcache-%{version}*-info
%changelog

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a5c7e86f82cc199cd0a8ccbe3e20309f3505710ed7bdc1a4b2c021dfbe19a9f9
size 656930