Accepting request 784632 from devel:languages:python:django

- Fix build without python2

OBS-URL: https://build.opensuse.org/request/show/784632
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-django?expand=0&rev=11
This commit is contained in:
Dominique Leuenberger 2020-03-26 23:22:46 +00:00 committed by Git OBS Bridge
commit 71b3c781c2
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Mar 13 12:43:21 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Fix build without python2
-------------------------------------------------------------------
Thu Jan 23 08:49:57 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -17,6 +17,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-pytest-django
Version: 3.8.0
Release: 0
@ -31,7 +32,9 @@ BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with python2}
BuildRequires: python2-pathlib2
%endif
BuildRequires: sqlite3
Requires: python-Django
Requires: python-pytest