churchyard / rpms / pytest

Forked from rpms/pytest 6 years ago
Clone
592a149
%global pypi_name pytest
592a149
592a149
Name:           python2-%{pypi_name}
592a149
Version:        4.4.1
592a149
Release:        3%{?dist}
592a149
Summary:        Simple powerful testing with Python 2
592a149
License:        MIT
592a149
URL:            https://pytest.org
592a149
Source0:        %{pypi_source}
592a149
# https://github.com/pytest-dev/pytest/issues/5046
592a149
Patch0:         5045.patch
592a149
592a149
BuildArch:      noarch
592a149
592a149
BuildRequires:  python2-atomicwrites
592a149
BuildRequires:  python2-attrs
592a149
BuildRequires:  python2-devel
592a149
BuildRequires:  python2-funcsigs
592a149
BuildRequires:  python2-mock
592a149
BuildRequires:  python2-more-itertools >= 4.0.0
592a149
BuildRequires:  python2-pathlib2 >= 2.2.0
592a149
BuildRequires:  python2-pluggy >= 0.9
592a149
BuildRequires:  python2-py >= 1.5.0
592a149
BuildRequires:  python2-setuptools
592a149
BuildRequires:  python2-setuptools_scm
592a149
BuildRequires:  python2-six
592a149
592a149
%{?python_provide:%python_provide python2-%{pypi_name}}
592a149
592a149
%description
592a149
py.test provides simple, yet powerful testing for Python 2.
592a149
592a149
%prep
592a149
%autosetup -p1 -n %{pypi_name}-%{version}
592a149
592a149
%build
592a149
%py2_build
592a149
592a149
%install
592a149
%py2_install
592a149
mv %{buildroot}%{_bindir}/pytest %{buildroot}%{_bindir}/pytest-%{python2_version}
592a149
ln -snf pytest-%{python2_version} %{buildroot}%{_bindir}/pytest-2
592a149
mv %{buildroot}%{_bindir}/py.test %{buildroot}%{_bindir}/py.test-%{python2_version}
592a149
ln -snf py.test-%{python2_version} %{buildroot}%{_bindir}/py.test-2
592a149
592a149
# remove shebangs from all scripts
592a149
find %{buildroot}%{python2_sitelib} \
592a149
     -name '*.py' \
592a149
     -exec sed -i -e '1{/^#!/d}' {} \;
592a149
592a149
%check
592a149
# Metafunc tests use python2-hypothesis, which forms a dependency
592a149
# cycle with pytest.
0302b8b
PYTHONDONTWRITEBYTECODE=1 \
592a149
PATH=%{buildroot}%{_bindir}:${PATH} \
592a149
PYTHONPATH=%{buildroot}%{python2_sitelib} \
592a149
  %{buildroot}%{_bindir}/pytest-%{python2_version} -r s testing \
592a149
  --ignore testing/python/metafunc.py
592a149
592a149
592a149
%files
592a149
%license LICENSE
592a149
%{_bindir}/pytest-2
592a149
%{_bindir}/pytest-%{python2_version}
592a149
%{_bindir}/py.test-2
592a149
%{_bindir}/py.test-%{python2_version}
592a149
%{python2_sitelib}/pytest-*.egg-info/
592a149
%{python2_sitelib}/_pytest/
592a149
%{python2_sitelib}/pytest.py*
592a149
592a149
592a149
%changelog
592a149
* Mon Jul 01 2019 Miro Hrončok <mhroncok@redhat.com> - 4.4.1-3
592a149
- Split python2-pytest from the pytest source package
d196c1f
- Make /usr/bin/pytest and /usr/bin/py.test Python 3
592a149
592a149
* Fri Jun 21 2019 Petr Viktorin <pviktori@redhat.com> - 4.4.1-2
592a149
- Remove optional test dependencies for Python 2 entirely
592a149
592a149
* Tue Apr 16 2019 Thomas Moschny <thomas.moschny@gmx.de> - 4.4.1-1
592a149
- Update to 4.4.1 (see PR#9).
592a149
- Remove test dependencies on python2-hypothesis and python2-twisted (see PR#10).
592a149
592a149
* Sat Mar 16 2019 Miro Hrončok <mhroncok@redhat.com> - 4.3.1-1
592a149
- Update to 4.3.1
592a149
592a149
* Tue Mar 12 2019 Miro Hrončok <mhroncok@redhat.com> - 4.3.0-1
592a149
- Update to 4.3.0 and fix FTBFS (#1671167, #1687384)
592a149
592a149
* Mon Feb 18 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.9.3-3
592a149
- Enable python dependency generator
592a149
592a149
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.3-2
592a149
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
592a149
592a149
* Wed Oct 31 2018 Thomas Moschny <thomas.moschny@gmx.de> - 3.9.3-1
592a149
- Update to 3.9.3.
592a149
592a149
* Tue Oct 23 2018 Thomas Moschny <thomas.moschny@gmx.de> - 3.9.2-1
592a149
- Update to 3.9.2.
592a149
592a149
* Wed Oct 17 2018 Thomas Moschny <thomas.moschny@gmx.de> - 3.9.1-1
592a149
- Update to 3.9.1.
592a149
592a149
* Tue Oct 16 2018 Thomas Moschny <thomas.moschny@gmx.de> - 3.8.2-3
592a149
- Add python2-pathlib2 runtime requirement (rhbz#1639718).
592a149
592a149
* Tue Oct 16 2018 Nils Philippsen <nils@redhat.com> - 3.8.2-2
592a149
- versionize pluggy dependencies
592a149
592a149
* Tue Oct 16 2018 Thomas Moschny <thomas.moschny@gmx.de> - 3.8.2-1
592a149
- Update to 3.8.2.
592a149
592a149
* Sat Sep 29 2018 Thomas Moschny <thomas.moschny@gmx.de> - 3.6.4-1
592a149
- Update to 3.6.4.
592a149
592a149
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.3-2
592a149
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
592a149
592a149
* Thu Jul  5 2018 Thomas Moschny <thomas.moschny@gmx.de> - 3.6.3-1
592a149
- Update to 3.6.3.
592a149
592a149
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.2-3
592a149
- Enable timeout
592a149
592a149
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.2-2
592a149
- Rebuilt for Python 3.7 (without timeout)
592a149
592a149
* Thu Jun 28 2018 Thomas Moschny <thomas.moschny@gmx.de> - 3.6.2-1
592a149
- Update to 3.6.2.
592a149
592a149
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.1-3
592a149
- Rebuilt for Python 3.7
592a149
592a149
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.1-2
592a149
- Bootstrap for Python 3.7
592a149
592a149
* Tue Jun  5 2018 Thomas Moschny <thomas.moschny@gmx.de> - 3.6.1-1
592a149
- Update to 3.6.1.
592a149
592a149
* Mon May 28 2018 Miro Hrončok <mhroncok@redhat.com> - 3.6.0-1
592a149
- Update to 3.6.0 (#1581692)
592a149
- Require and BuildRequire atomicwrites
592a149
592a149
* Sat May 19 2018 Thomas Moschny <thomas.moschny@gmx.de> - 3.5.1-1
592a149
- Update to 3.5.1.
592a149
- Build the documentation with Python3.
592a149
- Update requirements.
592a149
592a149
* Thu Mar 15 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.4.2-2
592a149
- Add Requires for required modules
592a149
592a149
* Wed Mar 14 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.4.2-1
592a149
- Update to 3.4.2
592a149
592a149
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.3-4
592a149
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
592a149
592a149
* Tue Nov 07 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.2.3-3
592a149
- Use better Obsoletes for platform-python
592a149
592a149
* Fri Nov 03 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.2.3-2
592a149
- Remove platform-python subpackage
592a149
- Cleanup conditionals
592a149
592a149
* Sat Oct  7 2017 Thomas Moschny <thomas.moschny@gmx.de> - 3.2.3-1
592a149
- Update to 3.2.3.
592a149
592a149
* Sat Sep  9 2017 Thomas Moschny <thomas.moschny@gmx.de> - 3.2.2-1
592a149
- Update to 3.2.2.
592a149
- Move BRs to their respective subpackages.
592a149
- Enable the platform-python subpackage only on F27+.
592a149
592a149
* Thu Aug 24 2017 Miro Hrončok <mhroncok@redhat.com> - 3.2.1-3
592a149
- Rebuilt for rhbz#1484607
592a149
592a149
* Fri Aug 11 2017 Petr Viktorin <pviktori@redhat.com> - 3.2.1-2
592a149
- Add subpackage for platform-python (https://fedoraproject.org/wiki/Changes/Platform_Python_Stack)
592a149
592a149
* Wed Aug  9 2017 Thomas Moschny <thomas.moschny@gmx.de> - 3.2.1-1
592a149
- Update to 3.2.1.
592a149
592a149
* Wed Aug 02 2017 Gwyn Ciesla <limburgher@gmail.com> - 3.2.0-1
592a149
- 3.2.0.
592a149
592a149
* Sun Jul 30 2017 Thomas Moschny <thomas.moschny@gmx.de> - 3.1.3-1
592a149
- Update to 3.1.3.
592a149
- Update BRs.
592a149
592a149
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-2
592a149
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
592a149
592a149
* Sat Jun  3 2017 Thomas Moschny <thomas.moschny@gmx.de> - 3.1.1-1
592a149
- Update to 3.1.1.
592a149
- Add BR on setuptools_scm.
592a149
592a149
* Wed Mar 15 2017 Thomas Moschny <thomas.moschny@gmx.de> - 3.0.7-1
592a149
- Update to 3.0.7.
592a149
592a149
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.6-2
592a149
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
592a149
592a149
* Sun Jan 29 2017 Thomas Moschny <thomas.moschny@gmx.de> - 3.0.6-1
592a149
- Update to 3.0.6.
592a149
- Drop patch applied upstream.
592a149
592a149
* Tue Dec 13 2016 Miro Hrončok <mhroncok@redhat.com> - 3.0.5-2
592a149
- Rebuild for Python 3.6
592a149
592a149
* Tue Dec  6 2016 Thomas Moschny <thomas.moschny@gmx.de> - 3.0.5-1
592a149
- Update to 3.0.5.
592a149
592a149
* Mon Nov 28 2016 Thomas Moschny <thomas.moschny@gmx.de> - 3.0.4-1
592a149
- Update to 3.0.4.
592a149
592a149
* Fri Sep 30 2016 Thomas Moschny <thomas.moschny@gmx.de> - 3.0.3-1
592a149
- Update to 3.0.3.
592a149
- Update requirements.
592a149
592a149
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.2-2
592a149
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
592a149
592a149
* Fri Jun  3 2016 Thomas Moschny <thomas.moschny@gmx.de> - 2.9.2-1
592a149
- Update to 2.9.2.
592a149
592a149
* Tue May 31 2016 Nils Philippsen <nils@redhat.com>
592a149
- fix source URL
592a149
592a149
* Sat Apr  9 2016 Thomas Moschny <thomas.moschny@gmx.de> - 2.9.1-1
592a149
- Update to 2.9.1.
592a149
- Packaging updates.
592a149
592a149
* Tue Feb 2 2016 Orion Poplawski <orion@cora.nwra.com> - 2.8.7-2
592a149
- Use new python macros
592a149
- Fix python3 package file ownership
592a149
592a149
* Sun Jan 24 2016 Thomas Moschny <thomas.moschny@gmx.de> - 2.8.7-1
592a149
- Update to 2.8.7.
592a149
592a149
* Fri Jan 22 2016 Thomas Moschny <thomas.moschny@gmx.de> - 2.8.6-1
592a149
- Update to 2.8.6.
592a149
592a149
* Wed Dec 30 2015 Orion Poplawski <orion@cora.nwra.com> - 2.8.5-1
592a149
- Update to 2.8.5
592a149
592a149
* Wed Dec 30 2015 Orion Poplawski <orion@cora.nwra.com> - 2.8.2-3
592a149
- Re-enable pexpect in tests
592a149
592a149
* Wed Nov 11 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.2-2
592a149
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
592a149
592a149
* Tue Oct 20 2015 Thomas Moschny <thomas.moschny@gmx.de> - 2.8.2-1
592a149
- Update to 2.8.2.
592a149
592a149
* Mon Oct 12 2015 Robert Kuska <rkuska@redhat.com> - 2.7.3-2
592a149
- Rebuilt for Python3.5 rebuild
592a149
592a149
* Thu Sep 17 2015 Thomas Moschny <thomas.moschny@gmx.de> - 2.7.3-1
592a149
- Update to 2.7.3.
592a149
- Provide additional symlinks to the pytest executables (rhbz#1249891).
592a149
592a149
* Mon Sep 14 2015 Orion Poplawski <orion@cora.nwra.com> - 2.7.2-2
592a149
- Provide python2-pytest, use python_provide macro
592a149
592a149
* Thu Jun 25 2015 Thomas Moschny <thomas.moschny@gmx.de> - 2.7.2-1
592a149
- Update to 2.7.2.
592a149
- Small fixes.
592a149
592a149
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.1-2
592a149
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
592a149
592a149
* Sat May 23 2015 Thomas Moschny <thomas.moschny@gmx.de> - 2.7.1-1
592a149
- Update to 2.7.1.
592a149
592a149
* Mon Apr 20 2015 Thomas Moschny <thomas.moschny@gmx.de> - 2.7.0-1
592a149
- Update to 2.7.0.
592a149
- Apply updated Python packaging guidelines.
592a149
- Mark LICENSE with %%license.
592a149
592a149
* Tue Dec  2 2014 Thomas Moschny <thomas.moschny@gmx.de> - 2.6.4-1
592a149
- Update to 2.6.4.
592a149
592a149
* Sat Oct 11 2014 Thomas Moschny <thomas.moschny@gmx.de> - 2.6.3-1
592a149
- Update to 2.6.3.
592a149
592a149
* Fri Aug  8 2014 Thomas Moschny <thomas.moschny@gmx.de> - 2.6.1-1
592a149
- Update to 2.6.1.
592a149
592a149
* Fri Aug  1 2014 Thomas Moschny <thomas.moschny@gmx.de> - 2.6.0-1
592a149
- Update to 2.6.0.
592a149
592a149
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.2-3
592a149
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
592a149
592a149
* Fri May 09 2014 Dennis Gilmore <dennis@ausil.us> - 2.5.2-2
592a149
- Redbuild for python 3.4
592a149
592a149
* Fri Apr 18 2014 Thomas Moschny <thomas.moschny@gmx.de> - 2.5.2-1
592a149
- Update to 2.5.2.
592a149
592a149
* Mon Oct  7 2013 Thomas Moschny <thomas.moschny@gmx.de> - 2.4.2-2
592a149
- Only run tests from the 'testing' subdir in %%check.
592a149
592a149
* Sat Oct  5 2013 Thomas Moschny <thomas.moschny@gmx.de> - 2.4.2-1
592a149
- Update to 2.4.2.
592a149
- Add buildroot's bindir to PATH while running the testsuite.
592a149
592a149
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.5-4
592a149
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
592a149
592a149
* Thu Jun 13 2013 Thomas Moschny <thomas.moschny@gmx.de> - 2.3.5-3
592a149
- Disable tests using pexpect for now, fails on F19.
592a149
592a149
* Wed Jun 12 2013 Thomas Moschny <thomas.moschny@gmx.de> - 2.3.5-2
592a149
- Use python-sphinx for rhel > 6 (rhbz#973318).
592a149
- Update BR to use python-pexpect instead of pexpect.
592a149
592a149
* Sat May 25 2013 Thomas Moschny <thomas.moschny@gmx.de> - 2.3.5-1
592a149
- Update to 2.3.5.
592a149
- Docutils needed now to build README.html.
592a149
- Add some BR optionally used by the testsuite.
592a149
592a149
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.4-2
592a149
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
592a149
592a149
* Fri Nov 23 2012 Thomas Moschny <thomas.moschny@gmx.de> - 2.3.4-1
592a149
- Update to 2.3.4.
592a149
592a149
* Sun Oct 28 2012 Thomas Moschny <thomas.moschny@gmx.de> - 2.3.2-1
592a149
- Update to 2.3.2.
592a149
592a149
* Sun Oct 21 2012 Thomas Moschny <thomas.moschny@gmx.de> - 2.3.1-1
592a149
- Update to 2.3.1.
592a149
- Re-enable some tests, ignore others.
592a149
- Docs are available in English and Japanese now.
592a149
592a149
* Thu Oct 11 2012 Thomas Moschny <thomas.moschny@gmx.de> - 2.2.4-4
592a149
- Add conditional for sphinx on rhel.
592a149
- Remove rhel logic from with_python3 conditional.
592a149
- Disable failing tests for Python3.
592a149
592a149
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 2.2.4-3
592a149
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
592a149
592a149
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.4-2
592a149
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
592a149
592a149
* Wed Jun  6 2012 Thomas Moschny <thomas.moschny@gmx.de> - 2.2.4-1
592a149
- Update to 2.2.4.
592a149
592a149
* Wed Feb  8 2012 Thomas Moschny <thomas.moschny@gmx.de> - 2.2.3-1
592a149
- Update to 2.2.3.
592a149
592a149
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-2
592a149
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
592a149
592a149
* Sat Dec 17 2011 Thomas Moschny <thomas.moschny@gmx.de> - 2.2.1-1
592a149
- Update to 2.2.1.
592a149
592a149
* Tue Dec 13 2011 Thomas Moschny <thomas.moschny@gmx.de> - 2.2.0-1
592a149
- Update to 2.2.0.
592a149
592a149
* Wed Oct 26 2011 Thomas Moschny <thomas.moschny@gmx.de> - 2.1.3-1
592a149
- Update to 2.1.3.
592a149
592a149
* Tue Sep 27 2011 Thomas Moschny <thomas.moschny@gmx.de> - 2.1.2-1
592a149
- Update to 2.1.2.
592a149
592a149
* Sat Sep  3 2011 Thomas Moschny <thomas.moschny@gmx.de> - 2.1.1-2
592a149
- Fix: python3 dependencies.
592a149
592a149
* Sun Aug 28 2011 Thomas Moschny <thomas.moschny@gmx.de> - 2.1.1-1
592a149
- Update to 2.1.1.
592a149
592a149
* Thu Aug 11 2011 Thomas Moschny <thomas.moschny@gmx.de> - 2.1.0-2
592a149
- Update Requires and BuildRequires tags.
592a149
592a149
* Tue Aug  9 2011 Thomas Moschny <thomas.moschny@gmx.de> - 2.1.0-1
592a149
- Update to 2.1.0.
592a149
592a149
* Mon May 30 2011 Thomas Moschny <thomas.moschny@gmx.de> - 2.0.3-1
592a149
- Update to 2.0.3.
592a149
592a149
* Thu Mar 17 2011 Thomas Moschny <thomas.moschny@gmx.de> - 2.0.2-1
592a149
- Update to 2.0.2.
592a149
592a149
* Sun Jan 16 2011 Thomas Moschny <thomas.moschny@gmx.de> - 2.0.0-1
592a149
- New package.