From 04088f7f6bcbbe110c271db2332d5cc35af400e1 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Feb 17 2016 04:36:38 +0000 Subject: enable tests on Fedora > 23 (deps now available) --- diff --git a/python-mwclient.spec b/python-mwclient.spec index 0b0a3a2..aa1eaeb 100644 --- a/python-mwclient.spec +++ b/python-mwclient.spec @@ -15,7 +15,7 @@ Name: python-mwclient Version: 0.8.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Mwclient is a client to the MediaWiki API Group: System Environment/Libraries @@ -33,17 +33,32 @@ BuildArch: noarch BuildRequires: python2-devel # For EPEL BuildRequires: python-setuptools -# For tests: cannot be run yet, need python-responses packaged -#BuildRequires: python2-pytest -#BuildRequires: python2-pytest-pep8 -#BuildRequires: python2-pytest-cache -#BuildRequires: python2-responses +# For tests, python-responses only available for Fedora >= 23 +# python-funcsigs update pending for F23, switch to >= 22 when it's there +%if 0%{?fedora} > 23 +BuildRequires: python2-pytest +# Provides: python2-pytest-pep8 missing +BuildRequires: python-pytest-pep8 +# Provides: python2-pytest-cache missing on < F24 +BuildRequires: python-pytest-cache +# Provides: python2-pytest-cov missing on < F24 +BuildRequires: python-pytest-cov +# Provides: python2-mock missing on < F24 +BuildRequires: python-mock +BuildRequires: python2-funcsigs +BuildRequires: python2-responses >= 0.3.0 +%endif # if fedora > 23 %if 0%{?with_python3} BuildRequires: python3-devel -#BuildRequires: python3-pytest -#BuildRequires: python3-pytest-pep8 -#BuildRequires: python3-pytest-cache -#BuildRequires: python3-responses +%if 0%{?fedora} > 23 +BuildRequires: python3-pytest +BuildRequires: python3-pytest-pep8 +BuildRequires: python3-pytest-cache +BuildRequires: python3-pytest-cov +BuildRequires: python3-mock +BuildRequires: python3-funcsigs +BuildRequires: python3-responses >= 0.3.0 +%endif # if fedora > 23 %endif # if with_python3 %description @@ -104,12 +119,13 @@ provides access to most API functionality. This is the Python 3 build of %endif # if with_python3 -# cannot be run yet, need python-responses packaged -#check -#{__python2} setup.py test +%check +%if 0%{?fedora} > 23 +%{__python2} setup.py test %if 0%{?with_python3} -#{__python3} setup.py test +%{__python3} setup.py test %endif # if with_python3 +%endif # if fedora > 23 %files -n python2-%{github_name} @@ -126,6 +142,9 @@ provides access to most API functionality. This is the Python 3 build of %changelog +* Tue Feb 16 2016 Adam Williamson - 0.8.0-3 +- enable tests on Fedora > 23 (deps now available) + * Wed Feb 03 2016 Adam Williamson - 0.8.0-2 - fix an iterator problem with Python 3 (upstream PR #108)