14
0

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
This commit is contained in:
Michal Čihař
2015-05-19 07:18:23 +00:00
committed by Git OBS Bridge
parent 9538f9f160
commit 2b88ec233d
4 changed files with 48 additions and 15 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:703c7ca24b5ff50431af80e4b6471bcfa93030cea25b45dff931b6356d8f9cc8
size 77805

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8db02fdde124f1053e0da81cbefa7e8f5f375858f78c12a58afdaa88d6fecb9d
size 102044