Update to 3.1.2.
Move BRs to their respective subpackages. Enable the platform-python subpackage only on F27+.
This commit is contained in:
parent
21e4ec540c
commit
08b2080e8b
78
pytest.spec
78
pytest.spec
@ -1,8 +1,8 @@
|
|||||||
%global pylib_version 1.4.29
|
%global pylib_version 1.4.29
|
||||||
|
|
||||||
Name: pytest
|
Name: pytest
|
||||||
Version: 3.2.1
|
Version: 3.2.2
|
||||||
Release: 3%{?dist}
|
Release: 1%{?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
|
||||||
@ -15,11 +15,22 @@ Source0: https://files.pythonhosted.org/packages/source/p/%{name}/%{name}
|
|||||||
|
|
||||||
%bcond_without python2
|
%bcond_without python2
|
||||||
%bcond_without python3
|
%bcond_without python3
|
||||||
|
|
||||||
|
%if 0%{?fedora} >= 27
|
||||||
%bcond_without platform_python
|
%bcond_without platform_python
|
||||||
|
%else
|
||||||
|
%bcond_with platform_python
|
||||||
|
%endif
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
py.test provides simple, yet powerful testing for Python.
|
||||||
|
|
||||||
|
|
||||||
%if %{with python2}
|
%if %{with python2}
|
||||||
|
%package -n python2-%{name}
|
||||||
|
Summary: Simple powerful testing with Python
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
BuildRequires: python2-setuptools
|
BuildRequires: python2-setuptools
|
||||||
BuildRequires: python2-setuptools_scm
|
BuildRequires: python2-setuptools_scm
|
||||||
@ -36,9 +47,21 @@ BuildRequires: python2-jinja2
|
|||||||
BuildRequires: python2-nose
|
BuildRequires: python2-nose
|
||||||
BuildRequires: python2-argcomplete
|
BuildRequires: python2-argcomplete
|
||||||
BuildRequires: python2-decorator
|
BuildRequires: python2-decorator
|
||||||
|
Requires: python2-setuptools
|
||||||
|
Requires: python2-py >= %{pylib_version}
|
||||||
|
%{?python_provide:%python_provide python2-%{name}}
|
||||||
|
# the python2 package was named pytest up to 2.8.7-2
|
||||||
|
Provides: %{name} = %{version}-%{release}
|
||||||
|
Obsoletes: %{name} < 2.8.7-3
|
||||||
|
|
||||||
|
%description -n python2-%{name}
|
||||||
|
py.test provides simple, yet powerful testing for Python.
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%if %{with python3}
|
%if %{with python3}
|
||||||
|
%package -n python3-%{name}
|
||||||
|
Summary: Simple powerful testing with Python
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: python3-setuptools_scm
|
BuildRequires: python3-setuptools_scm
|
||||||
@ -55,41 +78,6 @@ BuildRequires: python3-jinja2
|
|||||||
BuildRequires: python3-nose
|
BuildRequires: python3-nose
|
||||||
BuildRequires: python3-argcomplete
|
BuildRequires: python3-argcomplete
|
||||||
BuildRequires: python3-decorator
|
BuildRequires: python3-decorator
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with platform_python}
|
|
||||||
BuildRequires: platform-python-devel
|
|
||||||
BuildRequires: platform-python-setuptools
|
|
||||||
BuildRequires: platform-python-setuptools_scm
|
|
||||||
BuildRequires: platform-python-py >= %{pylib_version}
|
|
||||||
# doc requirements are skipped
|
|
||||||
# requirements for optional tests are skipped
|
|
||||||
BuildRequires: platform-python-hypothesis
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%description
|
|
||||||
py.test provides simple, yet powerful testing for Python.
|
|
||||||
|
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%package -n python2-%{name}
|
|
||||||
Summary: Simple powerful testing with Python
|
|
||||||
Requires: python2-setuptools
|
|
||||||
Requires: python2-py >= %{pylib_version}
|
|
||||||
%{?python_provide:%python_provide python2-%{name}}
|
|
||||||
# the python2 package was named pytest up to 2.8.7-2
|
|
||||||
Provides: %{name} = %{version}-%{release}
|
|
||||||
Obsoletes: %{name} < 2.8.7-3
|
|
||||||
|
|
||||||
%description -n python2-%{name}
|
|
||||||
py.test provides simple, yet powerful testing for Python.
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%package -n python3-%{name}
|
|
||||||
Summary: Simple powerful testing with Python
|
|
||||||
Requires: python3-setuptools
|
Requires: python3-setuptools
|
||||||
Requires: python3-py >= %{pylib_version}
|
Requires: python3-py >= %{pylib_version}
|
||||||
%{?python_provide:%python_provide python3-%{name}}
|
%{?python_provide:%python_provide python3-%{name}}
|
||||||
@ -102,6 +90,13 @@ py.test provides simple, yet powerful testing for Python.
|
|||||||
%if %{with platform_python}
|
%if %{with platform_python}
|
||||||
%package -n platform-python-%{name}
|
%package -n platform-python-%{name}
|
||||||
Summary: Simple powerful testing with Python
|
Summary: Simple powerful testing with Python
|
||||||
|
BuildRequires: platform-python-devel
|
||||||
|
BuildRequires: platform-python-setuptools
|
||||||
|
BuildRequires: platform-python-setuptools_scm
|
||||||
|
BuildRequires: platform-python-py >= %{pylib_version}
|
||||||
|
# doc requirements are skipped
|
||||||
|
# requirements for optional tests are skipped
|
||||||
|
BuildRequires: platform-python-hypothesis
|
||||||
Requires: platform-python-setuptools
|
Requires: platform-python-setuptools
|
||||||
Requires: platform-python-py >= %{pylib_version}
|
Requires: platform-python-py >= %{pylib_version}
|
||||||
|
|
||||||
@ -220,7 +215,7 @@ PATH=%{buildroot}%{_bindir}:${PATH} \
|
|||||||
PYTHONPATH=%{buildroot}%{python2_sitelib} \
|
PYTHONPATH=%{buildroot}%{python2_sitelib} \
|
||||||
%{buildroot}%{_bindir}/pytest-%{python2_version} -r s testing \
|
%{buildroot}%{_bindir}/pytest-%{python2_version} -r s testing \
|
||||||
%if %{with timeout}
|
%if %{with timeout}
|
||||||
--timeout=20
|
--timeout=30
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
popd
|
popd
|
||||||
@ -232,7 +227,7 @@ PATH=%{buildroot}%{_bindir}:${PATH} \
|
|||||||
PYTHONPATH=%{buildroot}%{python3_sitelib} \
|
PYTHONPATH=%{buildroot}%{python3_sitelib} \
|
||||||
%{buildroot}%{_bindir}/pytest-%{python3_version} -r s testing \
|
%{buildroot}%{_bindir}/pytest-%{python3_version} -r s testing \
|
||||||
%if %{with timeout}
|
%if %{with timeout}
|
||||||
--timeout=20
|
--timeout=30
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
popd
|
popd
|
||||||
@ -293,6 +288,11 @@ popd
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Sep 9 2017 Thomas Moschny <thomas.moschny@gmx.de> - 3.2.2-1
|
||||||
|
- Update to 3.1.2.
|
||||||
|
- Move BRs to their respective subpackages.
|
||||||
|
- Enable the platform-python subpackage only on F27+.
|
||||||
|
|
||||||
* Thu Aug 24 2017 Miro Hrončok <mhroncok@redhat.com> - 3.2.1-3
|
* Thu Aug 24 2017 Miro Hrončok <mhroncok@redhat.com> - 3.2.1-3
|
||||||
- Rebuilt for rhbz#1484607
|
- Rebuilt for rhbz#1484607
|
||||||
|
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (pytest-3.2.1.tar.gz) = e32f82658219b44e5b235a8dfff94e58373f61e905d896fbfc67ddf5028f486e5e0a170b9a21a5917719746bad29878566066df66dd4e2f6a3365bd70f585967
|
SHA512 (pytest-3.2.2.tar.gz) = 6df3a50e7d1efeaf7a283920b16d1daf800798f422bc851b0aacd2bbd5cb0a88c95f9057fae49943b9dfe6527ed552cdf8d983b944ab91d0af252ee4f6eb82db
|
||||||
|
Loading…
Reference in New Issue
Block a user