From 2b88ec233dcb9d5935a6dc32ca59c11330732f94d350c3197fa023665b022a53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 19 May 2015 07:18:23 +0000 Subject: [PATCH] Accepting request 307357 from home:benoit_monin:branches:devel:languages:python - update to version 4.0.4 - switch the source archive to zip (tar.gz not available) - add unzip to BuildRequires - add fdupes as BuildRequires and call it after install - set a minimum version for python-mechanize - update the test requirements (still commented, the tests fail) - add the runtime requirements as build requirements to ensure their availability - update the documentation files OBS-URL: https://build.opensuse.org/request/show/307357 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.testbrowser?expand=0&rev=7 --- python-zope.testbrowser.changes | 30 ++++++++++++++++++++++++++++++ python-zope.testbrowser.spec | 27 +++++++++++++++------------ zope.testbrowser-4.0.2.tar.gz | 3 --- zope.testbrowser-4.0.4.zip | 3 +++ 4 files changed, 48 insertions(+), 15 deletions(-) delete mode 100644 zope.testbrowser-4.0.2.tar.gz create mode 100644 zope.testbrowser-4.0.4.zip diff --git a/python-zope.testbrowser.changes b/python-zope.testbrowser.changes index 9a58738..bf81f5c 100644 --- a/python-zope.testbrowser.changes +++ b/python-zope.testbrowser.changes @@ -1,3 +1,33 @@ +------------------------------------------------------------------- +Fri May 15 13:16:56 UTC 2015 - benoit.monin@gmx.fr + +- update to version 4.0.4: + * Removed the ‘WebTest <= 1.3.4’ version pin, fixed tests to work + with modern WebTest versions (issue #10). +- additional changes from version 4.0.3: + pinning version ‘WebTest <= 1.3.4’, because of some + incompatibility and test failures + * Make zope.testbrowser installable via pip (issue #6). + * When Browser.handleErrors is False, also add + x-wsgiorg.throw_errors to the environment. + http://wsgi.org/wsgi/Specifications/throw_errors + * Prevent WebTest from always sending paste.throw_errors=True in + the environment by setting it to None when Browser.handleErrors + is True. This makes it easier to test error pages. + * Made Browser.submit() handle raiseHttpErrors (PR #4). + * More friendly error messages from getControl() et al: + + when you specify an index that is out of bounds, show the + available choices + + when you fail to find anything, show all the available items +- switch the source archive to zip (tar.gz not available) +- add unzip to BuildRequires +- add fdupes as BuildRequires and call it after install +- set a minimum version for python-mechanize +- update the test requirements (still commented, the tests fail) +- add the runtime requirements as build requirements to ensure + their availability +- update the documentation files + ------------------------------------------------------------------- Thu Oct 24 11:17:58 UTC 2013 - speilicke@suse.com diff --git a/python-zope.testbrowser.spec b/python-zope.testbrowser.spec index eae25fe..dc33d50 100644 --- a/python-zope.testbrowser.spec +++ b/python-zope.testbrowser.spec @@ -1,7 +1,7 @@ # # spec file for package python-zope.testbrowser # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,24 +17,26 @@ Name: python-zope.testbrowser -Version: 4.0.2 +Version: 4.0.4 Release: 0 Summary: Programmable browser for functional black-box tests License: ZPL-2.1 Group: Development/Languages/Python Url: http://pypi.python.org/pypi/zope.testbrowser -Source: http://pypi.python.org/packages/source/z/zope.testbrowser/zope.testbrowser-%{version}.tar.gz +Source: http://pypi.python.org/packages/source/z/zope.testbrowser/zope.testbrowser-%{version}.zip +BuildRequires: fdupes BuildRequires: python-devel BuildRequires: python-setuptools +BuildRequires: unzip # Test requirements: -#BuildRequires: python-mechanize -#BuildRequires: python-pytz -#BuildRequires: python-xml -#BuildRequires: python-zope.interface -#BuildRequires: python-zope.schema -#BuildRequires: python-zope.testing -#BuildRequires: python-WebTest -Requires: python-mechanize +# BuildRequires: python-WebTest +# BuildRequires: python-zope.testing +# runtime requirements +BuildRequires: python-mechanize >= 0.2.0 +BuildRequires: python-pytz +BuildRequires: python-zope.interface +BuildRequires: python-zope.schema +Requires: python-mechanize >= 0.2.0 Requires: python-pytz Requires: python-zope.interface Requires: python-zope.schema @@ -59,6 +61,7 @@ python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%fdupes %{buildroot}/%{_prefix} #NOTE(saschpe): Check broken doctests: #%%check @@ -66,7 +69,7 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot} %files %defattr(-,root,root,-) -%doc COPYRIGHT.txt LICENSE.txt README.txt +%doc CHANGES.rst COPYRIGHT.rst LICENSE.rst README.rst %{python_sitelib}/* %changelog diff --git a/zope.testbrowser-4.0.2.tar.gz b/zope.testbrowser-4.0.2.tar.gz deleted file mode 100644 index 3a978f1..0000000 --- a/zope.testbrowser-4.0.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:703c7ca24b5ff50431af80e4b6471bcfa93030cea25b45dff931b6356d8f9cc8 -size 77805 diff --git a/zope.testbrowser-4.0.4.zip b/zope.testbrowser-4.0.4.zip new file mode 100644 index 0000000..ecd574d --- /dev/null +++ b/zope.testbrowser-4.0.4.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8db02fdde124f1053e0da81cbefa7e8f5f375858f78c12a58afdaa88d6fecb9d +size 102044