14
0
forked from pool/python-stestr
Files
python-stestr/python-stestr.spec
Dirk Mueller dd472791e1 - update to 2.1.0:
* Uncap pbr
  * Revert "Cap pip version in windows ci"
  * Revert "Uncap pbr"
  * Uncap pbr
  * Clarify docs on group\_regex
  * Remove Python 2.6 code
  * Switch python doc reference from 2 to 3
  * Cleanup manual section on configuration
  * Fix abbreviate option in run subcommand
  * Ignore errors on cleanup in test\_return\_codes
  * Cap pip version in windows ci
  * Add docs and helper script for building man page
  * Add documentation for --suppress-attachments option
  * Add option to suppress attachment printing on successful tests
  * Add unit tests for return code from functions
  * Remove windows skips for old subunit versions
  * Cap PBR<4.0.0
  * Fixed manual page description
  * Fix manpage generation
  * Add issue description in template
  * Add an issue template to project
  * Add usage to manual docs page
  * Fix the manual docs link in README
  * Add alt texts for badges in README
  * Use flat-square design badges on README
  * Fix typos about whitelist/blacklist option in manual
  * Fix a small mistake in manual about test selection
  * Update the package summary in setup.cfg metadata
  * Add functional tests for user config file

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stestr?expand=0&rev=5
2018-08-06 09:06:28 +00:00

80 lines
2.6 KiB
RPMSpec

#
# spec file for package python-stestr
#
# Copyright (c) 2018 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-stestr
Version: 2.1.0
Release: 0
Summary: A test runner runner similar to testrepository
License: Apache-2.0
Group: Development/Languages/Python
Url: https://github.com/mtreinish/stestr
Source: https://files.pythonhosted.org/packages/source/s/stestr/stestr-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pbr >= 2.0.0}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyYAML >= 3.10.0
Requires: python-fixtures >= 3.0.0
Requires: python-future
Requires: python-pbr >= 2.0.0
Requires: python-python-subunit >= 0.18.0
Requires: python-six >= 1.10.0
Requires: python-testtools >= 2.2.0
Suggests: python-subunit2sql >= 1.8.0
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
stestr is a fork of the `testrepository`_ that concentrates on being a
dedicated test runner for python projects. The generic abstraction
layers which enabled testr to work with any subunit emitting runner are gone.
stestr hard codes python-subunit-isms into how it works. The code base is also
designed to try and be explicit, and to provide a python api that is documented
and has examples.
%prep
%setup -q -n stestr-%{version}
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/stestr
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative stestr
%postun
%python_uninstall_alternative stestr
%files %{python_files}
%defattr(-,root,root,-)
%license LICENSE
%doc ChangeLog README.rst
%python_alternative %{_bindir}/stestr
%{python_sitelib}/*
%changelog