|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
|
Version: 6.6
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Summary: A simple wrapper around optparse for powerful command line utilities
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
@ -19,7 +19,7 @@ BuildRequires: pytest
|
|
|
|
|
%if %{?with_python3}
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
#BuildRequires: python3-pytest
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
%endif # if with_python3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -77,9 +77,9 @@ popd
|
|
|
|
|
%check
|
|
|
|
|
PYTHONPATH=$(pwd) py.test-%{python2_version} tests --tb=long --verbose
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
#pushd %{py3dir}
|
|
|
|
|
#LANG=en_GB.utf8 LC_ALL=en_GB.utf8 PYTHONPATH=$(pwd) py.test-%{python3_version} tests --tb=long --verbose
|
|
|
|
|
#popd
|
|
|
|
|
pushd %{py3dir}
|
|
|
|
|
LANG=en_GB.utf8 LC_ALL=en_GB.utf8 PYTHONPATH=$(pwd) py.test-%{python3_version} tests --tb=long --verbose
|
|
|
|
|
popd
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
@ -95,6 +95,9 @@ PYTHONPATH=$(pwd) py.test-%{python2_version} tests --tb=long --verbose
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Dec 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 6.6-4
|
|
|
|
|
- Enable tests
|
|
|
|
|
|
|
|
|
|
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 6.6-3
|
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
- Disable python3 tests for now
|
|
|
|
|