python-zope.testing/python-zope.testing.spec
Michal Čihař 7a2f21ca3a Accepting request 307350 from home:benoit_monin:branches:devel:languages:python
- update to version 4.1.3
- switch the source archive to tar.gz (zip not available)
- remove unzip from BuildRequires
- reenable the tests for all suse versions

OBS-URL: https://build.opensuse.org/request/show/307350
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.testing?expand=0&rev=7
2015-05-19 07:15:55 +00:00

109 lines
3.0 KiB
RPMSpec

#
# spec file for package python-zope.testing
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-zope.testing
Version: 4.1.3
Release: 0
Summary: Zope testing helpers
License: ZPL-2.1
Group: Development/Languages/Python
Url: http://pypi.python.org/pypi/zope.testing
Source: http://pypi.python.org/packages/source/z/zope.testing/zope.testing-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
# Test requirements:
BuildRequires: python-zope.exceptions
BuildRequires: python-zope.interface
Requires: python-zope.exceptions
Requires: python-zope.interface
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
This package provides a number of testing frameworks.
cleanup
Provides a mixin class for cleaning up after tests that
make global changes.
formparser
An HTML parser that extracts form information.
**Python 2 only**
This is intended to support functional tests that need to extract
information from HTML forms returned by the publisher.
See formparser.txt.
loggingsupport
Support for testing logging code
If you want to test that your code generates proper log output, you
can create and install a handler that collects output.
loghandler
Logging handler for tests that check logging output.
module
Lets a doctest pretend to be a Python module.
See module.txt.
renormalizing
Regular expression pattern normalizing output checker.
Useful for doctests.
server
Provides a simple HTTP server compatible with the zope.app.testing
functional testing API. Lets you interactively play with the system
under test. Helpful in debugging functional doctest failures.
**Python 2 only**
setupstack
A simple framework for automating doctest set-up and tear-down.
See setupstack.txt.
wait
A small utility for dealing with timing non-determinism
See wait.txt.
%prep
%setup -q -n zope.testing-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
python setup.py test
%files
%defattr(-,root,root,-)
%doc COPYRIGHT.txt LICENSE.txt README.rst
%{python_sitelib}/*
%changelog