Jan ONDREJ (SAL) 17bc9a0
%global with_tests 1
522d35d
f920ac3
Name:           python-webtest
Jan ONDREJ (SAL) 8f0a71c
Version:        3.0.0
Jan ONDREJ (SAL) 8f0a71c
Release:        1%{?dist}
f920ac3
Summary:        Helper to test WSGI applications
f920ac3
f920ac3
License:        MIT
4781a03
URL:            https://github.com/Pylons/webtest
4781a03
Source0:        https://github.com/Pylons/webtest/archive/%{version}.tar.gz
f920ac3
f920ac3
BuildArch:      noarch
2449600
522d35d
BuildRequires:  python3-devel
522d35d
BuildRequires:  python3-setuptools
2449600
Jan ONDREJ (SAL) e46c0fc
%if 0%{?with_tests}
600a79d
BuildRequires:  python3-pytest
Jan ONDREJ (SAL) 8f0a71c
BuildRequires:  python3-pytest-cov
2449600
BuildRequires:  python3-beautifulsoup4
2449600
BuildRequires:  python3-paste-deploy
2449600
BuildRequires:  python3-pyquery
2449600
BuildRequires:  python3-waitress
Luke Macken aad3a15
BuildRequires:  python3-webob
2449600
BuildRequires:  python3-WSGIProxy2
60c485f
BuildRequires:  python3-pylons-sphinx-themes
522d35d
%endif
522d35d
ddf2d84
%global _description\
ddf2d84
WebTest wraps any WSGI application and makes it easy to send test\
ddf2d84
requests to that application, without starting up an HTTP server.\
ddf2d84
\
ddf2d84
This provides convenient full-stack testing of applications written\
ddf2d84
with any WSGI-compatible framework.
ddf2d84
ddf2d84
%description %_description
ddf2d84
522d35d
%package -n python3-webtest
522d35d
Summary:        Helper to test WSGI applications
522d35d
2449600
Requires:       python3-beautifulsoup4
2449600
Requires:       python3-waitress
8180436
Requires:       python3-webob
522d35d
522d35d
%description -n python3-webtest
522d35d
WebTest wraps any WSGI application and makes it easy to send test
522d35d
requests to that application, without starting up an HTTP server.
522d35d
522d35d
This provides convenient full-stack testing of applications written
522d35d
with any WSGI-compatible framework.
522d35d
522d35d
f920ac3
%prep
4781a03
%setup -q -n webtest-%{version}
f920ac3
522d35d
# Remove bundled egg info if it exists.
522d35d
rm -rf *.egg-info
522d35d
f920ac3
%build
4b69a81
%py3_build
Jan ONDREJ (SAL) e46c0fc
# remove files not needed in documentation
Jan ONDREJ (SAL) e46c0fc
rm -f docs/Makefile docs/conf.py docs/changelog.rst
Jan ONDREJ (SAL) e46c0fc
cp -a CHANGELOG.rst docs/
f920ac3
f920ac3
%install
f920ac3
%{__rm} -rf %{buildroot}
4b69a81
%py3_install
4b69a81
f920ac3
Jan ONDREJ (SAL) e46c0fc
%if 0%{?with_tests}
f920ac3
%check
600a79d
%pytest
522d35d
%endif
f920ac3
522d35d
%files -n python3-webtest
Jan ONDREJ (SAL) e46c0fc
%doc docs/* CHANGELOG.rst
522d35d
%{python3_sitelib}/webtest
522d35d
%{python3_sitelib}/*.egg-info
f920ac3
f920ac3
%changelog
Jan ONDREJ (SAL) 8f0a71c
* Fri Aug 20 2021 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 3.0.0-1
Jan ONDREJ (SAL) 8f0a71c
- Update to upstream
Jan ONDREJ (SAL) 8f0a71c
- Change dependencies according to upstream
Jan ONDREJ (SAL) 8f0a71c
1e1fd2e
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.35-8
1e1fd2e
- Second attempt - Rebuilt for
1e1fd2e
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
1e1fd2e
725d11e
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.0.35-7
725d11e
- Rebuilt for Python 3.10
725d11e
c41c591
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.35-6
c41c591
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
c41c591
Jan ONDREJ (SAL) 17bc9a0
* Mon Jan 25 2021 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 2.0.35-5
Jan ONDREJ (SAL) 17bc9a0
- Reenable check tests using pytest.
Jan ONDREJ (SAL) 17bc9a0
600a79d
* Mon Jan 25 2021 Charalampos Stratakis <cstratak@redhat.com> - 2.0.35-4
600a79d
- Switch the test run from nose to pytest
600a79d
cec0fa3
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.35-3
cec0fa3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
cec0fa3
8f6050c
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0.35-2
8f6050c
- Rebuilt for Python 3.9
8f6050c
Jan ONDREJ (SAL) bcc7b98
* Mon Apr 27 2020 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 2.0.35-1
Jan ONDREJ (SAL) bcc7b98
- Update to upstream (bz#1828294)
Jan ONDREJ (SAL) bcc7b98
Jan ONDREJ (SAL) 6b1cde3
* Thu Jan 30 2020 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 2.0.34-1
Jan ONDREJ (SAL) 6b1cde3
- Update to upstream (bz#1795938)
Jan ONDREJ (SAL) 6b1cde3
5a332e4
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.33-4
5a332e4
- Fix the release number to be strictly chronological
5a332e4
Jan ONDREJ (SAL) e46c0fc
* Mon Sep 02 2019 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 2.0.33-2
Jan ONDREJ (SAL) e46c0fc
- Removed python2 support (BZ#1747970)
Jan ONDREJ (SAL) e46c0fc
- Updated documentation (remove unwanted files and add CHANGELOG instead
Jan ONDREJ (SAL) e46c0fc
  of it's broken symlink)
45aa948
60c485f
* Sat Jun 22 2019 Kevin Fenzi <kevin@scrye.com> - 2.0.33-1
60c485f
- Update to 2.0.33. Fixes bug #1674207
60c485f
- Drop python2 tests due to lack of sphinx theme.
60c485f
Jan ONDREJ (SAL) e46c0fc
* Thu Jun 20 2019 Troy Dawson <tdawson@redhat.com> - 2.0.30-3.1
Jan ONDREJ (SAL) e46c0fc
- Turn off tests for initial EPEL8 build
Jan ONDREJ (SAL) e46c0fc
51ff551
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.30-3
51ff551
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
51ff551
5e9c407
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.0.30-2
5e9c407
- Drop explicit locale setting
5e9c407
  See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
5e9c407
4781a03
* Tue Jul 24 2018 Kevin Fenzi <kevin@scrye.com> - 2.0.30-1
4781a03
- Update to 2.0.30
4781a03
- Fix FTBFS bug #1605988
4781a03
902df2a
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.29-7
902df2a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
902df2a
922fa05
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.29-6
922fa05
- Rebuilt for Python 3.7
922fa05
4b69a81
* Wed Feb 28 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 2.0.29-5
4b69a81
- Use python2 explicitly during build, install, and testing.
4b69a81
8ce1f07
* Wed Feb 28 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.0.29-4
8ce1f07
- Update Python 2 dependency declarations to new packaging standards
8ce1f07
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
8ce1f07
4dd5e31
* Fri Feb 23 2018 Merlin Mathesius <mmathesi@redhat.com> - 2.0.29-3
4dd5e31
- Override py3dir to avoid potential troublesome characters in path
4dd5e31
  (such as "+") that can cause test_http self-test errors
4dd5e31
b7e9100
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.29-2
b7e9100
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b7e9100
17090bd
* Sun Dec 17 2017 Kevin Fenzi <kevin@scrye.com> - 2.0.29-1
17090bd
- Update to 2.0.29. Fixes bug #1477394
17090bd
ec37c6a
* Fri Sep 29 2017 Troy Dawson <tdawson@redhat.com> - 2.0.27-4
ec37c6a
- Cleanup spec file conditionals
ec37c6a
ddf2d84
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.0.27-3
ddf2d84
- Python 2 binary package renamed to python2-webtest
ddf2d84
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
ddf2d84
383feda
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.27-2
383feda
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
383feda
b53552c
* Sat Mar 25 2017 Kevin Fenzi <kevin@scrye.com> - 2.0.27-1
b53552c
- Update to 2.0.27. Fixes bug #1429268
b53552c
02c0772
* Sat Feb 25 2017 Kevin Fenzi <kevin@scrye.com> - 2.0.25-1
02c0772
- Update to 2.0.25. Fixes bug #1419377
02c0772
a89c136
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.24-2
a89c136
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a89c136
74f5e81
* Wed Dec 28 2016 Kevin Fenzi <kevin@scrye.com> - 2.0.24-1
74f5e81
- Update to 2.0.24. Fixes bug #1405668
74f5e81
d2dc548
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.0.23-2
d2dc548
- Rebuild for Python 3.6
d2dc548
abdc5dd
* Sat Jul 23 2016 Kevin Fenzi <kevin@scrye.com> - 2.0.23-1
abdc5dd
- Update to 2.0.23. Fixes bug #1359466
abdc5dd
b0635e3
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.19-4
b0635e3
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
b0635e3
efec84f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.19-3
efec84f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
efec84f
743c1f5
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.19-2
743c1f5
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
743c1f5
f29202a
* Mon Nov 02 2015 Ralph Bean <rbean@redhat.com> - 2.0.19-1
f29202a
- new version
f29202a
d0cda7c
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.17-2
d0cda7c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d0cda7c
5267d0b
* Wed Feb 18 2015 Ralph Bean <rbean@redhat.com> - 2.0.17-1
5267d0b
- new version
5267d0b
ab95830
* Fri Nov 14 2014 Slavek Kabrda <bkabrda@redhat.com> - 2.0.16-1
ab95830
- Updated to 2.0.16.
ab95830
2449600
* Fri Jun 13 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 2.0.15-1
2449600
- Updated to 2.0.15.
2449600
59475b3
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.4-8
59475b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
59475b3
8180436
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.3.4-7
8180436
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
8180436
- Fix python3 subpackage dependencies
8180436
d3cce53
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.4-6
d3cce53
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d3cce53
Luke Macken aad3a15
* Fri Apr  5 2013 Luke Macken <lmacken@redhat.com> - 1.3.4-5
Luke Macken aad3a15
- Made the python3 subpackage require python-webob instead of python-webob1.2
Luke Macken aad3a15
522d35d
* Tue Feb 19 2013 Ralph Bean <rbean@redhat.com> - 1.3.4-4
522d35d
- Added python3 subpackage
522d35d
87a668b
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.4-3
87a668b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
87a668b
d455f6d
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.4-2
d455f6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d455f6d
4eedaaf
* Sun Jun 24 2012 Ricky Zhou <ricky@fedoraproject.org> - 1.3.4-1
4eedaaf
- Update to 1.3.4.
4eedaaf
c36cac2
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.3-2
c36cac2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c36cac2
Luke Macken 3266eae
* Wed Dec 14 2011 Luke Macken <lmacken@redhat.com> - 1.3.3-1
Luke Macken 3266eae
- Update to 1.3.3
Luke Macken 3266eae
59be11a
* Fri Jul 15 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.2.3-1
59be11a
- Update to 1.2.3
59be11a
c37a8be
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-2
c37a8be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c37a8be
Luke Macken c9b2829
* Tue Oct 05 2010 Luke Macken <lmacken@redhat.com> - 1.2.2-1
Luke Macken c9b2829
- Update to 1.2.2
Luke Macken c9b2829
- Add python-dtopt to the BuildRequires
Luke Macken c9b2829
- Include the docs again
Luke Macken c9b2829
ee28b99
* Sun Jul 25 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot[com> - 1.2.1-3
ee28b99
- Disable tests and docs for now. They are not included in this tarball
ee28b99
3094627
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.2.1-2
3094627
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
3094627
6ec6ce9
* Wed Jun 09 2010 Luke Macken <lmacken@redhat.com> - 1.2.1-1
6ec6ce9
- Update to 1.2.1
6ec6ce9
f9002d0
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-2
f9002d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f9002d0
ca87b71
* Sun May 31 2009 Luke Macken <lmacken@redhat.com> - 1.2-1
ca87b71
- Update to 1.2
ca87b71
4631f27
* Tue Apr 14 2009 Ricky Zhou <ricky@fedoraproject.org> - 1.1-3
4631f27
- Change define to global.
4631f27
- Remove old >= 8 conditional.
4631f27
- Remove unnecessary BuildRequires on python-devel.
4631f27
e80f194
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-2
e80f194
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e80f194
5bbb088
* Sat Dec 06 2008 Ricky Zhou <ricky@fedoraproject.org> - 1.1-1
5bbb088
- Upstream released new version.
5bbb088
24080dd
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0-4
24080dd
- Rebuild for Python 2.6
24080dd
f920ac3
* Thu Jul 17 2008 Ricky Zhou <ricky@fedoraproject.org> - 1.0-3
f920ac3
- Update Requires for python-webob rename.
f920ac3
- Add BuildRequires on python-webob for tests.
f920ac3
17090bd
* Mon Jul 07 2008 Ricky Zhou <ricky@fedoraproject.org> - 1.0-2
f920ac3
- Add %%check section.
f920ac3
f920ac3
* Sat Jun 14 2008 Ricky Zhou <ricky@fedoraproject.org> - 1.0-1
f920ac3
- Initial RPM Package.