| |
@@ -4,9 +4,6 @@
|
| |
%bcond_without python3
|
| |
%endif
|
| |
|
| |
- # Disable tests since tox.ini is not found properly. I'll try to enable them back ASAP
|
| |
- %bcond_with tests
|
| |
-
|
| |
%global pypi_name wcwidth
|
| |
|
| |
Name: python-%{pypi_name}
|
| |
@@ -27,9 +24,7 @@
|
| |
%package -n python2-%{pypi_name}
|
| |
BuildRequires: python2-devel
|
| |
BuildRequires: python-setuptools
|
| |
- %if %{with tests}
|
| |
- BuildRequires: python-tox
|
| |
- %endif # with tests
|
| |
+ BuildRequires: python2-pytest
|
| |
Summary: Measures number of Terminal column cells of wide-character codes
|
| |
%{?python_provide:%python_provide python2-%{pypi_name}}
|
| |
%{?el6:Provides: python-%{pypi_name}}
|
| |
@@ -44,9 +39,7 @@
|
| |
Summary: Measures number of Terminal column cells of wide-character codes
|
| |
BuildRequires: python3-devel
|
| |
BuildRequires: python3-setuptools
|
| |
- %if %{with tests}
|
| |
- BuildRequires: python3-tox
|
| |
- %endif # with tests
|
| |
+ BuildRequires: python3-pytest
|
| |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
| |
|
| |
%description -n python3-%{pypi_name}
|
| |
@@ -72,9 +65,9 @@
|
| |
|
| |
%if %{with tests}
|
| |
%check
|
| |
- %{__python2} setup.py test
|
| |
+ py.test-%{python2_version} --verbose wcwidth/tests
|
| |
%if %{with python3}
|
| |
- %{__python3} setup.py test
|
| |
+ py.test-%{python3_version} --verbose wcwidth/tests
|
| |
%endif # with python3
|
| |
%endif # with tests
|
| |
|
| |
The whole point of tox is to run tests against multiple versions of Python with one command. Since during an RPM build we only care about the version(s) of Python we are building against, it's better to just call pytest directly.