File python-mox3.spec of Package python-mox3
#
# spec file for package python-mox3
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: python-mox3
Version: 0.28.0
Release: 0
Summary: An unofficial port of the Google mox framework to Python 3
License: Apache-2.0
Group: Development/Languages/Python
URL: https://bugs.launchpad.net/python-mox3
Source0: https://files.pythonhosted.org/packages/source/m/mox3/mox3-0.28.0.tar.gz
BuildRequires: openstack-macros
BuildRequires: python3-coverage
BuildRequires: python3-fixtures
BuildRequires: python3-pbr
BuildRequires: python3-python-subunit
BuildRequires: python3-setuptools
BuildRequires: python3-stestr
BuildRequires: python3-testtools
BuildArch: noarch
%description
Mox3 is an unofficial port of the Google mox framework to Python 3. It
was meant to be as compatible with mox as possible, but small
enhancements have been made.
%package -n python3-mox3
Summary: An unofficial port of the Google mox framework to Python 3
Group: Development/Languages/Python
Requires: python3-fixtures
Requires: python3-pbr
%description -n python3-mox3
Mox3 is an unofficial port of the Google mox framework to Python 3. It
was meant to be as compatible with mox as possible, but small
enhancements have been made.
This package contains the Python 3.x module.
%package -n python-mox3-doc
Summary: Documentation for %{name}
Group: Documentation/HTML
BuildRequires: python3-Sphinx
BuildRequires: python3-openstackdocstheme
%description -n python-mox3-doc
Mox3 is an unofficial port of the Google mox framework to Python 3. It
was meant to be as compatible with mox as possible, but small
enhancements have been made. The library was tested on Python version
3.2, 2.7 and 2.6.
This package contains documentation in HTML format.
%prep
%autosetup -p1 -n mox3-0.28.0
%py_req_cleanup
%build
%py3_build
# generate html docs
PBR_VERSION=0.28.0 %sphinx_build -b html doc/source doc/build/html
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
%check
python3 -m stestr.cli run
%install
%py3_install
%files -n python3-mox3
%license COPYING.txt
%doc README.rst
%{python3_sitelib}/mox3
%{python3_sitelib}/mox3-*.egg-info
%files -n python-mox3-doc
%license COPYING.txt
%doc doc/build/html
%changelog