forked from pool/python-diskcache
Accepting request 718523 from home:pgajdos
- version update to 4.0.0 * no upstream changelog OBS-URL: https://build.opensuse.org/request/show/718523 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-diskcache?expand=0&rev=8
This commit is contained in:
committed by
Git OBS Bridge
parent
7418010dee
commit
008e7ee999
@@ -18,20 +18,20 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-diskcache
|
||||
Version: 3.1.1
|
||||
Version: 4.0.0
|
||||
Release: 0
|
||||
Summary: Disk and file backed cache
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
URL: http://www.grantjenks.com/docs/diskcache/
|
||||
Source: https://files.pythonhosted.org/packages/source/d/diskcache/diskcache-%{version}.tar.gz
|
||||
Source: https://github.com/grantjenks/python-diskcache/archive/v%{version}.tar.gz
|
||||
BuildRequires: %{python_module Django}
|
||||
BuildRequires: %{python_module base}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python2-Django1
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -42,7 +42,7 @@ DiskCache is a disk and file backed cache library, written
|
||||
in pure Python, and compatible with Django.
|
||||
|
||||
%prep
|
||||
%setup -q -n diskcache-%{version}
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -52,9 +52,9 @@ in pure Python, and compatible with Django.
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
nosetests-%{python_bin_suffix}
|
||||
# Django tests support only Django1 which is not in distribution for python3
|
||||
nosetests-%{python3_bin_suffix} --exclude test_djangocache.py
|
||||
sed -i '/-n auto/d' tox.ini
|
||||
rm tests/test_djangocache.py
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
||||
Reference in New Issue
Block a user