forked from pool/python-zope.testbrowser
		
	Accepting request 627760 from home:TheBlackCat:branches:devel:languages:python
- Update to 5.2.4
  * Fix form submit with GET method if the form action contains a query string
    (https://github.com/zopefoundation/zope.testbrowser/pull/42).
  * Restore ignoring hidden elements when searching by label
    (https://github.com/zopefoundation/zope.testbrowser/pull/41).
- Update to 5.2.3
  * Fix ``mechRepr`` on controls to always return a native str
    (https://github.com/zopefoundation/zope.testbrowser/issues/38).
- Update to 5.2.2
  * Restore raising of AttributeError when trying to set value of a
    read only control.
  * Fix selecting radio and select control options by index
    (https://github.com/zopefoundation/zope.testbrowser/issues/31).
- Update to 5.2.1
  * Exclude version 2.0.27 of `WebTest` from allowed versions as it breaks some
    tests.
  * Adapt tests to version 2.0.28 of `WebTest` but keeping compatibility to older
    versions.
- Update to 5.2
  * Fixed ``toStr`` to handle lists, for example a list of class names.
    [maurits]
  * Fixed browser to only follow redirects for HTTP statuses
    301, 302, 303, and 307; not other 30x statuses such as 304.
  * Fix passing a real file to ``add_file``.
  * Add ``controls`` property to Form class to list all form controls.
  * Restore the ability to use parts of the actually displayed select box titles.
  * Allow to set a string value instead of a list on ``Browser.displayValue``.
  * Fix setting empty values on a select control.
  * Support Python 3.6, PyPy2.7 an PyPy3.3.
- Update to 5.1
  * Alias ``.browser.urllib_request.HTTPError`` to ``.browser.HTTPError`` to have
    a better API.
- Update to 5.0.0
  * Converted most doctests to Sphinx documentation, and published to
    https://zopetestbrowser.readthedocs.io/ .
  * Internal implementation now uses WebTest instead of ``mechanize``.
    The ``mechanize`` dependency is completely dropped.
    **This is a backwards-incompatible change.**
  * Remove APIs:
    > ``zope.testbrowser.testing.Browser`` (this is a big one).
  * Remove modules:
    > ``zope.testbrowser.connection``
  * Remove internal classes you were not supposed to use anyway:
    > ``zope.testbrowser.testing.PublisherResponse``
    > ``zope.testbrowser.testing.PublisherConnection``
    > ``zope.testbrowser.testing.PublisherHTTPHandler``
    > ``zope.testbrowser.testing.PublisherMechanizeBrowser``
    > ``zope.testbrowser.wsgi.WSGIConnection``
    > ``zope.testbrowser.wsgi.WSGIHTTPHandler``
    > ``zope.testbrowser.wsgi.WSGIMechanizeBrowser``
  * Remove internal attributes you were not supposed to use anyway (this
    list is not necessarily complete):
    > ``Browser._mech_browser``
  * Remove setuptools extras:
    > ``zope.testbrowser[zope-functional-testing]``
  * Changed behavior:
    > The testbrowser no longer follows HTML redirects aka
      ``<meta http-equiv="refresh" ... />``. This was a `mechanize` feature which
      does not seem to be provided by `WebTest`.
  * Add support for Python 3.3, 3.4 and 3.5.
  * Drop support for Python 2.5 and 2.6.
  * Drop the ``WebTest <= 1.3.4`` pin.  We require ``WebTest >= 2.0.8`` now.
  * Remove dependency on deprecated ``zope.app.testing``.
  * Bugfix: ``browser.getLink()`` could fail if your HTML contained ``<a>``
    elements with no href attribute
   (https://github.com/zopefoundation/zope.testbrowser/pull/3).
- Implement single-spec version
OBS-URL: https://build.opensuse.org/request/show/627760
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.testbrowser?expand=0&rev=9
			
			
This commit is contained in:
		@@ -1,3 +1,75 @@
 | 
				
			|||||||
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
 | 
					Mon Aug  6 20:36:02 UTC 2018 - toddrme2178@gmail.com
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Update to 5.2.4
 | 
				
			||||||
 | 
					  * Fix form submit with GET method if the form action contains a query string
 | 
				
			||||||
 | 
					    (https://github.com/zopefoundation/zope.testbrowser/pull/42).
 | 
				
			||||||
 | 
					  * Restore ignoring hidden elements when searching by label
 | 
				
			||||||
 | 
					    (https://github.com/zopefoundation/zope.testbrowser/pull/41).
 | 
				
			||||||
 | 
					- Update to 5.2.3
 | 
				
			||||||
 | 
					  * Fix ``mechRepr`` on controls to always return a native str
 | 
				
			||||||
 | 
					    (https://github.com/zopefoundation/zope.testbrowser/issues/38).
 | 
				
			||||||
 | 
					- Update to 5.2.2
 | 
				
			||||||
 | 
					  * Restore raising of AttributeError when trying to set value of a
 | 
				
			||||||
 | 
					    read only control.
 | 
				
			||||||
 | 
					  * Fix selecting radio and select control options by index
 | 
				
			||||||
 | 
					    (https://github.com/zopefoundation/zope.testbrowser/issues/31).
 | 
				
			||||||
 | 
					- Update to 5.2.1
 | 
				
			||||||
 | 
					  * Exclude version 2.0.27 of `WebTest` from allowed versions as it breaks some
 | 
				
			||||||
 | 
					    tests.
 | 
				
			||||||
 | 
					  * Adapt tests to version 2.0.28 of `WebTest` but keeping compatibility to older
 | 
				
			||||||
 | 
					    versions.
 | 
				
			||||||
 | 
					- Update to 5.2
 | 
				
			||||||
 | 
					  * Fixed ``toStr`` to handle lists, for example a list of class names.
 | 
				
			||||||
 | 
					    [maurits]
 | 
				
			||||||
 | 
					  * Fixed browser to only follow redirects for HTTP statuses
 | 
				
			||||||
 | 
					    301, 302, 303, and 307; not other 30x statuses such as 304.
 | 
				
			||||||
 | 
					  * Fix passing a real file to ``add_file``.
 | 
				
			||||||
 | 
					  * Add ``controls`` property to Form class to list all form controls.
 | 
				
			||||||
 | 
					  * Restore the ability to use parts of the actually displayed select box titles.
 | 
				
			||||||
 | 
					  * Allow to set a string value instead of a list on ``Browser.displayValue``.
 | 
				
			||||||
 | 
					  * Fix setting empty values on a select control.
 | 
				
			||||||
 | 
					  * Support Python 3.6, PyPy2.7 an PyPy3.3.
 | 
				
			||||||
 | 
					- Update to 5.1
 | 
				
			||||||
 | 
					  * Alias ``.browser.urllib_request.HTTPError`` to ``.browser.HTTPError`` to have
 | 
				
			||||||
 | 
					    a better API.
 | 
				
			||||||
 | 
					- Update to 5.0.0
 | 
				
			||||||
 | 
					  * Converted most doctests to Sphinx documentation, and published to
 | 
				
			||||||
 | 
					    https://zopetestbrowser.readthedocs.io/ .
 | 
				
			||||||
 | 
					  * Internal implementation now uses WebTest instead of ``mechanize``.
 | 
				
			||||||
 | 
					    The ``mechanize`` dependency is completely dropped.
 | 
				
			||||||
 | 
					    **This is a backwards-incompatible change.**
 | 
				
			||||||
 | 
					  * Remove APIs:
 | 
				
			||||||
 | 
					    > ``zope.testbrowser.testing.Browser`` (this is a big one).
 | 
				
			||||||
 | 
					  * Remove modules:
 | 
				
			||||||
 | 
					    > ``zope.testbrowser.connection``
 | 
				
			||||||
 | 
					  * Remove internal classes you were not supposed to use anyway:
 | 
				
			||||||
 | 
					    > ``zope.testbrowser.testing.PublisherResponse``
 | 
				
			||||||
 | 
					    > ``zope.testbrowser.testing.PublisherConnection``
 | 
				
			||||||
 | 
					    > ``zope.testbrowser.testing.PublisherHTTPHandler``
 | 
				
			||||||
 | 
					    > ``zope.testbrowser.testing.PublisherMechanizeBrowser``
 | 
				
			||||||
 | 
					    > ``zope.testbrowser.wsgi.WSGIConnection``
 | 
				
			||||||
 | 
					    > ``zope.testbrowser.wsgi.WSGIHTTPHandler``
 | 
				
			||||||
 | 
					    > ``zope.testbrowser.wsgi.WSGIMechanizeBrowser``
 | 
				
			||||||
 | 
					  * Remove internal attributes you were not supposed to use anyway (this
 | 
				
			||||||
 | 
					    list is not necessarily complete):
 | 
				
			||||||
 | 
					    > ``Browser._mech_browser``
 | 
				
			||||||
 | 
					  * Remove setuptools extras:
 | 
				
			||||||
 | 
					    > ``zope.testbrowser[zope-functional-testing]``
 | 
				
			||||||
 | 
					  * Changed behavior:
 | 
				
			||||||
 | 
					    > The testbrowser no longer follows HTML redirects aka
 | 
				
			||||||
 | 
					      ``<meta http-equiv="refresh" ... />``. This was a `mechanize` feature which
 | 
				
			||||||
 | 
					      does not seem to be provided by `WebTest`.
 | 
				
			||||||
 | 
					  * Add support for Python 3.3, 3.4 and 3.5.
 | 
				
			||||||
 | 
					  * Drop support for Python 2.5 and 2.6.
 | 
				
			||||||
 | 
					  * Drop the ``WebTest <= 1.3.4`` pin.  We require ``WebTest >= 2.0.8`` now.
 | 
				
			||||||
 | 
					  * Remove dependency on deprecated ``zope.app.testing``.
 | 
				
			||||||
 | 
					  * Bugfix: ``browser.getLink()`` could fail if your HTML contained ``<a>``
 | 
				
			||||||
 | 
					    elements with no href attribute
 | 
				
			||||||
 | 
					   (https://github.com/zopefoundation/zope.testbrowser/pull/3).
 | 
				
			||||||
 | 
					- Implement single-spec version
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-------------------------------------------------------------------
 | 
					-------------------------------------------------------------------
 | 
				
			||||||
Fri May 15 13:16:56 UTC 2015 - benoit.monin@gmx.fr
 | 
					Fri May 15 13:16:56 UTC 2015 - benoit.monin@gmx.fr
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
#
 | 
					#
 | 
				
			||||||
# spec file for package python-zope.testbrowser
 | 
					# spec file for package python-zope.testbrowser
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 | 
					# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# All modifications and additions to the file contributed by third parties
 | 
					# All modifications and additions to the file contributed by third parties
 | 
				
			||||||
# remain the property of their copyright owners, unless otherwise agreed
 | 
					# remain the property of their copyright owners, unless otherwise agreed
 | 
				
			||||||
@@ -16,60 +16,65 @@
 | 
				
			|||||||
#
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 | 
				
			||||||
Name:           python-zope.testbrowser
 | 
					Name:           python-zope.testbrowser
 | 
				
			||||||
Version:        4.0.4
 | 
					Version:        5.2.4
 | 
				
			||||||
Release:        0
 | 
					Release:        0
 | 
				
			||||||
Summary:        Programmable browser for functional black-box tests
 | 
					Summary:        Programmable browser for functional black-box tests
 | 
				
			||||||
License:        ZPL-2.1
 | 
					License:        ZPL-2.1
 | 
				
			||||||
Group:          Development/Languages/Python
 | 
					Group:          Development/Languages/Python
 | 
				
			||||||
Url:            http://pypi.python.org/pypi/zope.testbrowser
 | 
					Url:            https://github.com/zopefoundation/zope.testbrowser
 | 
				
			||||||
Source:         http://pypi.python.org/packages/source/z/zope.testbrowser/zope.testbrowser-%{version}.zip
 | 
					Source:         https://files.pythonhosted.org/packages/source/z/zope.testbrowser/zope.testbrowser-%{version}.tar.gz
 | 
				
			||||||
 | 
					BuildRequires:  %{python_module devel}
 | 
				
			||||||
 | 
					BuildRequires:  %{python_module setuptools}
 | 
				
			||||||
BuildRequires:  fdupes
 | 
					BuildRequires:  fdupes
 | 
				
			||||||
BuildRequires:  python-devel
 | 
					BuildRequires:  python-rpm-macros
 | 
				
			||||||
BuildRequires:  python-setuptools
 | 
					# SECTION test requirements
 | 
				
			||||||
BuildRequires:  unzip
 | 
					BuildRequires:  %{python_module WSGIProxy2}
 | 
				
			||||||
# Test requirements:
 | 
					BuildRequires:  %{python_module WebTest >= 2.0.9}
 | 
				
			||||||
# BuildRequires:  python-WebTest
 | 
					BuildRequires:  %{python_module mock}
 | 
				
			||||||
# BuildRequires:  python-zope.testing
 | 
					BuildRequires:  %{python_module pytz > dev}
 | 
				
			||||||
# runtime requirements
 | 
					BuildRequires:  %{python_module setuptools}
 | 
				
			||||||
BuildRequires:  python-mechanize >= 0.2.0
 | 
					BuildRequires:  %{python_module six}
 | 
				
			||||||
BuildRequires:  python-pytz
 | 
					BuildRequires:  %{python_module zope.cachedescriptors}
 | 
				
			||||||
BuildRequires:  python-zope.interface
 | 
					BuildRequires:  %{python_module zope.interface}
 | 
				
			||||||
BuildRequires:  python-zope.schema
 | 
					BuildRequires:  %{python_module zope.schema}
 | 
				
			||||||
Requires:       python-mechanize >= 0.2.0
 | 
					BuildRequires:  %{python_module zope.testing}
 | 
				
			||||||
Requires:       python-pytz
 | 
					# /SECTION
 | 
				
			||||||
 | 
					Requires:       python-WSGIProxy2
 | 
				
			||||||
 | 
					Requires:       python-WebTest >= 2.0.9
 | 
				
			||||||
 | 
					Requires:       python-pytz > dev
 | 
				
			||||||
 | 
					Requires:       python-setuptools
 | 
				
			||||||
 | 
					Requires:       python-six
 | 
				
			||||||
 | 
					Requires:       python-zope.cachedescriptors
 | 
				
			||||||
Requires:       python-zope.interface
 | 
					Requires:       python-zope.interface
 | 
				
			||||||
Requires:       python-zope.schema
 | 
					Requires:       python-zope.schema
 | 
				
			||||||
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 | 
					Suggests:       python-zope.testing
 | 
				
			||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
 | 
					Suggests:       python-mock
 | 
				
			||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 | 
					Suggests:       python-zope.testbrowser
 | 
				
			||||||
%else
 | 
					 | 
				
			||||||
BuildArch:      noarch
 | 
					BuildArch:      noarch
 | 
				
			||||||
%endif
 | 
					
 | 
				
			||||||
 | 
					%python_subpackages
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%description
 | 
					%description
 | 
				
			||||||
zope.testbrowser provides an easy-to-use programmable web browser
 | 
					The zope.testbrowser package provides an programmable web browser
 | 
				
			||||||
with special focus on testing.  It is used in Zope, but it's not Zope
 | 
					with special focus on testing.  It is used in Zope, but it's not Zope
 | 
				
			||||||
specific at all.  For instance, it can be used to test or otherwise
 | 
					specific.  It can be used to test or otherwise interact with any web
 | 
				
			||||||
interact with any web site.
 | 
					site.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%prep
 | 
					%prep
 | 
				
			||||||
%setup -q -n zope.testbrowser-%{version}
 | 
					%setup -q -n zope.testbrowser-%{version}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%build
 | 
					%build
 | 
				
			||||||
python setup.py build
 | 
					%python_build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%install
 | 
					%install
 | 
				
			||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
 | 
					%python_install
 | 
				
			||||||
%fdupes %{buildroot}/%{_prefix}
 | 
					%python_expand %fdupes %{buildroot}%{$python_sitelib}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#NOTE(saschpe): Check broken doctests:
 | 
					%files %{python_files}
 | 
				
			||||||
#%%check
 | 
					%doc CHANGES.rst README.rst
 | 
				
			||||||
#python setup.py test
 | 
					%license LICENSE.rst
 | 
				
			||||||
 | 
					 | 
				
			||||||
%files
 | 
					 | 
				
			||||||
%defattr(-,root,root,-)
 | 
					 | 
				
			||||||
%doc CHANGES.rst COPYRIGHT.rst LICENSE.rst README.rst
 | 
					 | 
				
			||||||
%{python_sitelib}/*
 | 
					%{python_sitelib}/*
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%changelog
 | 
					%changelog
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +0,0 @@
 | 
				
			|||||||
version https://git-lfs.github.com/spec/v1
 | 
					 | 
				
			||||||
oid sha256:8db02fdde124f1053e0da81cbefa7e8f5f375858f78c12a58afdaa88d6fecb9d
 | 
					 | 
				
			||||||
size 102044
 | 
					 | 
				
			||||||
							
								
								
									
										3
									
								
								zope.testbrowser-5.2.4.tar.gz
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								zope.testbrowser-5.2.4.tar.gz
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
				
			|||||||
 | 
					version https://git-lfs.github.com/spec/v1
 | 
				
			||||||
 | 
					oid sha256:119c542c1ba3134f16a8427ea1109cf74dbb092158a8d8606a09e5f96b1d0047
 | 
				
			||||||
 | 
					size 81645
 | 
				
			||||||
		Reference in New Issue
	
	Block a user