forked from pool/python-stestr
Accepting request 998255 from home:bnavigator:branches:devel:languages:python
- Remove test requirements: * coverage: not used here * runtime requirements pulled in by main package already - Provide the entrypoint only for the main python3 flavor * The cli requires cliff, which is primary python3 only - Update description text - Remove catchall in files section OBS-URL: https://build.opensuse.org/request/show/998255 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stestr?expand=0&rev=47
This commit is contained in:
@@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 19 19:12:38 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Remove test requirements:
|
||||||
|
* coverage: not used here
|
||||||
|
* runtime requirements pulled in by main package already
|
||||||
|
- Provide the entrypoint only for the main python3 flavor
|
||||||
|
* The cli requires cliff, which is primary python3 only
|
||||||
|
- Update description text
|
||||||
|
- Remove catchall in files section
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Oct 16 20:23:53 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
Sat Oct 16 20:23:53 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file
|
# spec file
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# 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
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
Name: python-stestr%{psuffix}
|
Name: python-stestr%{psuffix}
|
||||||
Version: 3.2.1
|
Version: 3.2.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A test runner runner similar to testrepository
|
Summary: A parallel Python test runner built around subunit
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/mtreinish/stestr
|
URL: https://github.com/mtreinish/stestr
|
||||||
@@ -42,30 +42,19 @@ Requires: python-fixtures >= 3.0.0
|
|||||||
Requires: python-future
|
Requires: python-future
|
||||||
Requires: python-pbr >= 2.0.0
|
Requires: python-pbr >= 2.0.0
|
||||||
Requires: python-python-subunit >= 1.4.0
|
Requires: python-python-subunit >= 1.4.0
|
||||||
Requires: python-six >= 1.10.0
|
|
||||||
Requires: python-testtools >= 2.2.0
|
Requires: python-testtools >= 2.2.0
|
||||||
Requires: python-voluptuous >= 0.8.9
|
Requires: python-voluptuous >= 0.8.9
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun):update-alternatives
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module PyYAML >= 3.10.0}
|
|
||||||
BuildRequires: %{python_module SQLAlchemy}
|
BuildRequires: %{python_module SQLAlchemy}
|
||||||
BuildRequires: %{python_module coverage >= 4.0}
|
|
||||||
BuildRequires: %{python_module ddt >= 1.0.1}
|
BuildRequires: %{python_module ddt >= 1.0.1}
|
||||||
BuildRequires: %{python_module fixtures >= 3.0.0}
|
|
||||||
BuildRequires: %{python_module future}
|
|
||||||
BuildRequires: %{python_module pytest-mock}
|
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module python-subunit >= 1.4.0}
|
BuildRequires: %{python_module stestr = %{version}}
|
||||||
BuildRequires: %{python_module six >= 1.10.0}
|
|
||||||
BuildRequires: %{python_module stestr >= %{version}}
|
|
||||||
BuildRequires: %{python_module testtools >= 2.2.0}
|
|
||||||
BuildRequires: %{python_module voluptuous >= 0.8.9}
|
|
||||||
%endif
|
%endif
|
||||||
%if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3"
|
%if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3"
|
||||||
Requires: python-dbm
|
# cliff, required for the cli, is only available for the python3 flavor
|
||||||
Requires: python3-cliff
|
Requires: python3-cliff
|
||||||
|
Requires: python-dbm
|
||||||
%endif
|
%endif
|
||||||
%if !0%{?_no_weakdeps}
|
%if !0%{?_no_weakdeps}
|
||||||
Recommends: python-SQLAlchemy
|
Recommends: python-SQLAlchemy
|
||||||
@@ -74,12 +63,18 @@ Recommends: python-subunit2sql >= 1.8.0
|
|||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
stestr is a fork of the `testrepository`_ that concentrates on being a
|
stestr is parallel Python test runner designed to execute unittest test suites
|
||||||
dedicated test runner for python projects. The generic abstraction
|
using multiple processes to split up execution of a test suite. It also will
|
||||||
layers which enabled testr to work with any subunit emitting runner are gone.
|
store a history of all test runs to help in debugging failures and optimizing
|
||||||
stestr hard codes python-subunit-isms into how it works. The code base is also
|
the scheduler to improve speed. To accomplish this goal it uses the subunit
|
||||||
designed to try and be explicit, and to provide a python api that is documented
|
protocol to facilitate streaming and storing results from multiple workers.
|
||||||
and has examples.
|
|
||||||
|
stestr originally started as a fork of the testrepository project. But, instead
|
||||||
|
of being an interface for any test runner that used subunit, like testrepository,
|
||||||
|
stestr concentrated on being a dedicated test runner for python projects. While
|
||||||
|
stestr was originally forked from testrepository it is not backwards compatible
|
||||||
|
with testrepository. At a high level the basic concepts of operation are shared
|
||||||
|
between the two projects but the actual usage is not exactly the same.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n stestr-%{version}
|
%setup -q -n stestr-%{version}
|
||||||
@@ -89,7 +84,8 @@ rm stestr/tests/repository/test_sql.py
|
|||||||
%if %{with test}
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
export LC_ALL="en_US.UTF8"
|
export LC_ALL="en_US.UTF8"
|
||||||
python3 -m pytest stestr/tests -k 'not test_empty_with_pretty_out'
|
# can only test in python3: cliff unavailable elsewhere
|
||||||
|
python3 -B -m pytest stestr/tests -v -k 'not test_empty_with_pretty_out'
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if ! %{with test}
|
%if ! %{with test}
|
||||||
@@ -100,20 +96,16 @@ export LC_ALL="en_US.UTF8"
|
|||||||
%install
|
%install
|
||||||
export LC_ALL="en_US.UTF8"
|
export LC_ALL="en_US.UTF8"
|
||||||
%python_install
|
%python_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/stestr
|
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%post
|
|
||||||
%python_install_alternative stestr
|
|
||||||
|
|
||||||
%postun
|
|
||||||
%python_uninstall_alternative stestr
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc ChangeLog README.rst
|
%doc ChangeLog README.rst
|
||||||
%python_alternative %{_bindir}/stestr
|
%if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3"
|
||||||
%{python_sitelib}/*
|
%{_bindir}/stestr
|
||||||
|
%endif
|
||||||
|
%{python_sitelib}/stestr
|
||||||
|
%{python_sitelib}/stestr-%{version}*-info
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user