Rebuild with Python 3.6
This commit is contained in:
parent
4553282b35
commit
38c4b45b9a
39
pytest.spec
39
pytest.spec
@ -2,12 +2,20 @@
|
|||||||
|
|
||||||
Name: pytest
|
Name: pytest
|
||||||
Version: 3.0.5
|
Version: 3.0.5
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Simple powerful testing with Python
|
Summary: Simple powerful testing with Python
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://pytest.org
|
URL: http://pytest.org
|
||||||
Source0: https://files.pythonhosted.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
# The test in this specfile use pytest-timeout
|
||||||
|
# When building pytest for the first time with new Python version
|
||||||
|
# that is not possible as it depends on pytest
|
||||||
|
%bcond_with timeout
|
||||||
|
|
||||||
|
# https://github.com/pytest-dev/pytest/issues/2132
|
||||||
|
Patch0: %{name}-python36.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
@ -19,15 +27,23 @@ BuildRequires: python-sphinx
|
|||||||
BuildRequires: python-docutils
|
BuildRequires: python-docutils
|
||||||
BuildRequires: python2-hypothesis
|
BuildRequires: python2-hypothesis
|
||||||
BuildRequires: python3-hypothesis
|
BuildRequires: python3-hypothesis
|
||||||
|
%if %{with timeout}
|
||||||
BuildRequires: python2-pytest-timeout
|
BuildRequires: python2-pytest-timeout
|
||||||
BuildRequires: python3-pytest-timeout
|
BuildRequires: python3-pytest-timeout
|
||||||
|
%endif
|
||||||
#BuildRequires: python2-pexpect
|
#BuildRequires: python2-pexpect
|
||||||
#BuildRequires: python3-pexpect
|
#BuildRequires: python3-pexpect
|
||||||
BuildRequires: python2-mock
|
BuildRequires: python2-mock
|
||||||
BuildRequires: python3-mock
|
BuildRequires: python3-mock
|
||||||
BuildRequires: python2-twisted
|
BuildRequires: python2-twisted
|
||||||
BuildRequires: python3-twisted
|
|
||||||
|
# The related Python 3.6 test is erroring, needs investigation
|
||||||
|
# The error is:
|
||||||
|
# > import zope.interface as zi
|
||||||
|
# E AttributeError: module 'zope' has no attribute 'interface'
|
||||||
|
#BuildRequires: python3-twisted
|
||||||
BuildRequires: python-jinja2
|
BuildRequires: python-jinja2
|
||||||
|
|
||||||
BuildRequires: python3-jinja2
|
BuildRequires: python3-jinja2
|
||||||
BuildRequires: python2-nose
|
BuildRequires: python2-nose
|
||||||
BuildRequires: python3-nose
|
BuildRequires: python3-nose
|
||||||
@ -68,6 +84,10 @@ py.test provides simple, yet powerful testing for Python.
|
|||||||
mv %{name}-%{version} python2
|
mv %{name}-%{version} python2
|
||||||
cp -a python2 python3
|
cp -a python2 python3
|
||||||
|
|
||||||
|
pushd python3
|
||||||
|
%patch0 -p1
|
||||||
|
popd
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
pushd python2
|
pushd python2
|
||||||
@ -137,13 +157,21 @@ ln -snf py.test-%{python2_version} %{buildroot}%{_bindir}/py.test
|
|||||||
pushd python2
|
pushd python2
|
||||||
PATH=%{buildroot}%{_bindir}:${PATH} \
|
PATH=%{buildroot}%{_bindir}:${PATH} \
|
||||||
PYTHONPATH=%{buildroot}%{python2_sitelib} \
|
PYTHONPATH=%{buildroot}%{python2_sitelib} \
|
||||||
%{buildroot}%{_bindir}/pytest-%{python2_version} -r s testing --timeout=20
|
%{buildroot}%{_bindir}/pytest-%{python2_version} -r s testing \
|
||||||
|
%if %{with timeout}
|
||||||
|
--timeout=20
|
||||||
|
%endif
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
pushd python3
|
pushd python3
|
||||||
PATH=%{buildroot}%{_bindir}:${PATH} \
|
PATH=%{buildroot}%{_bindir}:${PATH} \
|
||||||
PYTHONPATH=%{buildroot}%{python3_sitelib} \
|
PYTHONPATH=%{buildroot}%{python3_sitelib} \
|
||||||
%{buildroot}%{_bindir}/pytest-%{python3_version} -r s testing --timeout=20
|
%{buildroot}%{_bindir}/pytest-%{python3_version} -r s testing \
|
||||||
|
%if %{with timeout}
|
||||||
|
--timeout=20
|
||||||
|
%endif
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
@ -177,6 +205,9 @@ popd
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Dec 13 2016 Miro Hrončok <mhroncok@redhat.com> - 3.0.5-2
|
||||||
|
- Rebuild for Python 3.6
|
||||||
|
|
||||||
* Tue Dec 6 2016 Thomas Moschny <thomas.moschny@gmx.de> - 3.0.5-1
|
* Tue Dec 6 2016 Thomas Moschny <thomas.moschny@gmx.de> - 3.0.5-1
|
||||||
- Update to 3.0.5.
|
- Update to 3.0.5.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user