File python-xmlunittest.spec of Package python-xmlunittest

#
# spec file for package python-xmlunittest
#
# Copyright (c) 2017 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/

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-xmlunittest
Version:        0.4.0
Release:        0
License:        MIT
Summary:        Library using lxml and unittest for unit testing XML
Url:            http://python-xmlunittest.readthedocs.org/en/latest/
Group:          Development/Languages/Python
Source:         https://files.pythonhosted.org/packages/source/x/xmlunittest/xmlunittest-%{version}.tar.gz
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module lxml >= 2.3}
BuildRequires:  python-rpm-macros
Requires:       python-lxml >= 2.3
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%python_subpackages

%description
If you want to use the built-in unittest package (or if it is a requirement),
and you are not afraid of using xpath expression with lxml, this library is
made for you.

You will be able to test your XML document, and use the power of xpath and
various schema languages to write tests that matter.

%prep
%setup -q -n xmlunittest-%{version}

%build
%python_build

%install
%python_install


%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README.rst
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by