Bootstrap for Python 3.8
This commit is contained in:
parent
1ee9bf8207
commit
0559240c85
@ -7,6 +7,9 @@
|
||||
# Not yet in Fedora buildroot
|
||||
%{!?python3_pkgversion:%global python3_pkgversion 3}
|
||||
|
||||
# When bootstrapping Python 3, mock is built before pytest
|
||||
%bcond_with tests
|
||||
|
||||
%global mod_name mock
|
||||
|
||||
Name: python-mock
|
||||
@ -23,16 +26,18 @@ BuildRequires: python2-devel
|
||||
BuildRequires: python2-setuptools
|
||||
BuildRequires: python2-funcsigs
|
||||
BuildRequires: python2-pbr
|
||||
# For tests
|
||||
%if %{with tests}
|
||||
BuildRequires: python2-pytest
|
||||
%endif
|
||||
|
||||
%if 0%{?with_python3}
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||
BuildRequires: python3-pbr
|
||||
# For tests
|
||||
%if %{with tests}
|
||||
BuildRequires: python%{python3_pkgversion}-pytest
|
||||
%endif
|
||||
%endif
|
||||
|
||||
|
||||
%description
|
||||
@ -82,11 +87,13 @@ needed attributes in the normal way.
|
||||
%endif
|
||||
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
%{__python2} setup.py test
|
||||
%if 0%{?with_python3}
|
||||
%{__python3} setup.py test
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%install
|
||||
%if 0%{?with_python3}
|
||||
@ -112,7 +119,7 @@ needed attributes in the normal way.
|
||||
|
||||
%changelog
|
||||
* Wed Aug 14 2019 Miro Hrončok <mhroncok@redhat.com> - 3.0.5-3
|
||||
- Rebuilt for Python 3.8
|
||||
- Bootstrap for Python 3.8
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.5-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
Loading…
Reference in New Issue
Block a user