Sync from SUSE:ALP:Source:Standard:1.0 python-stestr revision d79231421ea2a754f4fca925a511cf42
This commit is contained in:
commit
c0b1c66f78
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
288
python-stestr.changes
Normal file
288
python-stestr.changes
Normal file
@ -0,0 +1,288 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
- update to 3.2.1:
|
||||||
|
* Fixed the detection of test worker failures before reporting final
|
||||||
|
result status
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 17 20:39:34 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 3.2.0:
|
||||||
|
* Support for configuring stestr via a tox.ini file has been added. It's
|
||||||
|
now no longer needed to create a separate .stestr.conf file and
|
||||||
|
instead it can be embedded in an existing tox.ini file.
|
||||||
|
* A new stestr command, stestr history list has been added to list the
|
||||||
|
previous runs in the stestr repository.
|
||||||
|
* A new stestr command, stestr history show has been added to show the
|
||||||
|
output from a previous run from the stestr repository.
|
||||||
|
* A new stestr command, stestr history remove, has been added to
|
||||||
|
remove runs from the stestr repository.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 9 15:34:18 UTC 2021 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Get rid of %ifpython3
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 8 13:05:10 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 3.1.0:
|
||||||
|
* Add python 3.9 support
|
||||||
|
* Behaviour with a mix of New and Old options
|
||||||
|
* Update doc/source/MANUAL.rst
|
||||||
|
* Change option '--black-regex' to '--exclusion-regex'
|
||||||
|
* Change option '--blacklist-file' to '--exclude-list'
|
||||||
|
* Change option '--whitelist-file' to '--include-list'
|
||||||
|
* Change option '--whitelist-file' to '--include-list'
|
||||||
|
* Bump hacking version
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 14 21:17:21 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- This package depends on python3-cliff from openstack, which is
|
||||||
|
only available for the default python3 flavor. As a consequence,
|
||||||
|
also only build for the primary python3-flavor.
|
||||||
|
gh#openSUSE/python-rpm-macros#66
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 9 10:47:36 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Fix subunit buildtime dep statement
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 1 09:33:14 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 3.0.1:
|
||||||
|
* use python-requires metadata instead of requires-python
|
||||||
|
* Remove universal flag from release job
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 30 08:24:55 UTC 2020 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- version update to 3.0.0
|
||||||
|
* Update README\_ja.rst
|
||||||
|
* Update README in preparation for release 3.0.0
|
||||||
|
* Update test-requirements to be py3 only
|
||||||
|
* Remove six usage from testr\_to\_stestr
|
||||||
|
* Bump python-subunit minimum to 1.4.0
|
||||||
|
* Remove universal wheel tag from setup.cfg
|
||||||
|
* Remove six from tests and requirements
|
||||||
|
* Fix line length issue from pyupgrade
|
||||||
|
* Treat bytes and strings differently
|
||||||
|
* Remove outdated tox envs
|
||||||
|
* Run pyupgrade on repo
|
||||||
|
* Fix import issues
|
||||||
|
* Remove 2.7 ci jobs
|
||||||
|
* Remove six usage from stestr code
|
||||||
|
* Fix typo bug in list\_tests() error code
|
||||||
|
* Remove sys.version switches for python2.7
|
||||||
|
* Update package metadata for python2 removal
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 28 21:47:29 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 2.6.0:
|
||||||
|
* Add python 3.8 macOS and windows ci jobs
|
||||||
|
* Update test\_processor.py
|
||||||
|
* Update config\_file.py
|
||||||
|
* Update cli.py
|
||||||
|
* Remove 3.8 azure pipelines jobs
|
||||||
|
* Update stestr/scheduler.py
|
||||||
|
* Update to recent hacking version
|
||||||
|
* Add Python 3.8 support
|
||||||
|
* Add --pdb flag to stestr run
|
||||||
|
* Add unit tests around repo initialize
|
||||||
|
* Handle empty .stestr directory to initialize
|
||||||
|
* Update issue templates
|
||||||
|
* Escape Windows paths
|
||||||
|
* Stop encoding attachments text
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Nov 17 17:19:01 UTC 2019 - Hans-Peter Jansen <hpj@urpla.net>
|
||||||
|
|
||||||
|
- Create multibuild for testing in order to cope with a circular
|
||||||
|
dependency with python-cliff
|
||||||
|
- Clean up spec file
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 30 13:17:37 UTC 2019 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- fix build for anything older than Tumbleweed by explicitly setting
|
||||||
|
utf8 locale
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 10 09:51:35 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Update to 2.5.1:
|
||||||
|
* documentation updates
|
||||||
|
* various bugfixes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 22 12:47:43 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Update to 2.4.0:
|
||||||
|
* Discover python executable when discover is not used
|
||||||
|
* various bugfixes
|
||||||
|
- Remove merged patch pyyaml5.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Mar 17 15:17:55 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Add patch to work with PyYAML 5.x series:
|
||||||
|
* pyyaml5.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 13 12:40:42 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Update to 2.3.1:
|
||||||
|
* tests expansion
|
||||||
|
* metadata updates
|
||||||
|
* minor bugfixes
|
||||||
|
- Enable and run tests
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 9 22:49:20 UTC 2019 - Jonathan Brownell <jbrownell@suse.com>
|
||||||
|
|
||||||
|
- Fallback in case "Suggests:" keyword is not supported
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 7 13:41:42 UTC 2018 - Thomas Bechtold <tbechtold@suse.com>
|
||||||
|
|
||||||
|
- update to 2.2.0:
|
||||||
|
* Change title of project in readme
|
||||||
|
* Add a better description to README Overview section
|
||||||
|
* Fix discovery import error formatting on py3
|
||||||
|
* Cleanup unused parameters in \_run\_tests
|
||||||
|
* Enable doc8
|
||||||
|
* Add all stream to repo even if some tests fail
|
||||||
|
* Extract loading case code to \_load\_case() function
|
||||||
|
* Make test running serially when just loading
|
||||||
|
* Fix time measurement for load command too
|
||||||
|
* Use reported times instead of wall time in subunit-trace
|
||||||
|
* Add support for test class and method by path on no-discover
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 6 19:49:46 UTC 2018 - Todd R <toddrme2178@gmail.com>
|
||||||
|
|
||||||
|
- Update to version 2.1.1
|
||||||
|
* Add support for python 3.7
|
||||||
|
* Fix handling of unexpected success results
|
||||||
|
* Allow stestr to be called as a module (#185)
|
||||||
|
* Add error handling for invalid input regexes
|
||||||
|
* Cleanup the manpage section on dealing with failed tests
|
||||||
|
* Cleanup argument help text on load command
|
||||||
|
* Fix description for the stestr run command
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 24 09:29:20 UTC 2018 - comurphy@suse.com
|
||||||
|
|
||||||
|
- Add python3-dbm dependency
|
||||||
|
* Required for python3: https://github.com/mtreinish/stestr/blob/2.1.1/stestr/subunit_trace.py#L34-L39
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 7 20:19:38 UTC 2018 - dmueller@suse.com
|
||||||
|
|
||||||
|
- fixtypo in last change
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 6 11:06:07 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Update the Requires/BuildRequires to reflect requirements.txt
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 6 09:04:49 UTC 2018 - dmueller@suse.com
|
||||||
|
|
||||||
|
- 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
|
||||||
|
* Fix no attribute 'repo\_type' error when running w/ --slowest option
|
||||||
|
* Add support for a user config file
|
||||||
|
* Fix warning message about missing worker tags in subunit-trace
|
||||||
|
* Add badge for Appveyor status
|
||||||
|
* Remove unnecessary shebang and execution bit from subunit\_trace
|
||||||
|
* Fix typos in docs
|
||||||
|
* Fix pep8 violations
|
||||||
|
* Add --slowest option to test runs
|
||||||
|
* Handle zero and negative times in stestr slowest
|
||||||
|
* list: Deal with [] instead of 'None' for filters
|
||||||
|
* Fix docs nits
|
||||||
|
* Update doc for using cliff for CLI layer
|
||||||
|
* Use cliff for CLI layer
|
||||||
|
* Implement quiet option for run and load commands
|
||||||
|
* Deprecate the partial flag
|
||||||
|
* Allow both group\_regex and group-regex as an optional argument
|
||||||
|
* Remove pyc files before running stestr in tox
|
||||||
|
* Update travis job config
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 26 06:42:11 UTC 2018 - tbechtold@suse.com
|
||||||
|
|
||||||
|
* Pass output to output.make\_result() in stestr load
|
||||||
|
* Remove 32bit windows testing CI config
|
||||||
|
* Add functional test for analyze-isolation flag
|
||||||
|
* Fetch the data from last run earlier
|
||||||
|
* Fix the stestr run --analyze-isolation flag
|
||||||
|
* Remove contributor docs for using reno
|
||||||
|
* Fix stestr load from stdin
|
||||||
|
* Add test\_return\_codes check for valid subunit output
|
||||||
|
* Respect all selection mechanisms for discovery check
|
||||||
|
* Fix .testr.conf parsing: test path follows discover
|
||||||
|
* Fix if logic on output types in stestr load
|
||||||
|
* Add a --abbreviate flag to stestr run and load
|
||||||
|
* Add missing run command to stestr manual
|
||||||
|
* Print just error message when no stestr repo
|
||||||
|
* Fix whitelist arg usage in stestr run
|
||||||
|
* Drop reno
|
||||||
|
* Add missing home-page
|
||||||
|
* Fix: pass the top\_dir parameter to the 'list' command
|
||||||
|
* Fix: pass the test\_path parameter to the 'list' command
|
||||||
|
* Update MANUAL.rst
|
||||||
|
* Update the trove classifiers
|
||||||
|
* Use context managers for file open()
|
||||||
|
* Ensure we always close files in file repository
|
||||||
|
* Create a Code of Conduct for the project
|
||||||
|
* Fix coveralls collection
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 14 07:53:51 UTC 2017 - tbechtold@suse.com
|
||||||
|
|
||||||
|
- initial packaging (version 1.0.0)
|
111
python-stestr.spec
Normal file
111
python-stestr.spec
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
#
|
||||||
|
# spec file
|
||||||
|
#
|
||||||
|
# Copyright (c) 2022 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python3-%{**}}
|
||||||
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%if "%{flavor}" == "test"
|
||||||
|
%define psuffix -%{flavor}
|
||||||
|
%bcond_without test
|
||||||
|
%else
|
||||||
|
%define psuffix %{nil}
|
||||||
|
%bcond_with test
|
||||||
|
%endif
|
||||||
|
Name: python-stestr%{psuffix}
|
||||||
|
Version: 3.2.1
|
||||||
|
Release: 0
|
||||||
|
Summary: A parallel Python test runner built around subunit
|
||||||
|
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 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 >= 1.4.0
|
||||||
|
Requires: python-testtools >= 2.2.0
|
||||||
|
Requires: python-voluptuous >= 0.8.9
|
||||||
|
BuildArch: noarch
|
||||||
|
%if %{with test}
|
||||||
|
BuildRequires: %{python_module SQLAlchemy}
|
||||||
|
BuildRequires: %{python_module ddt >= 1.0.1}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: %{python_module stestr = %{version}}
|
||||||
|
%endif
|
||||||
|
%if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3"
|
||||||
|
# cliff, required for the cli, is only available for the python3 flavor
|
||||||
|
Requires: python3-cliff
|
||||||
|
Requires: python-dbm
|
||||||
|
%endif
|
||||||
|
%if !0%{?_no_weakdeps}
|
||||||
|
Recommends: python-SQLAlchemy
|
||||||
|
Recommends: python-subunit2sql >= 1.8.0
|
||||||
|
%endif
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
stestr is parallel Python test runner designed to execute unittest test suites
|
||||||
|
using multiple processes to split up execution of a test suite. It also will
|
||||||
|
store a history of all test runs to help in debugging failures and optimizing
|
||||||
|
the scheduler to improve speed. To accomplish this goal it uses the subunit
|
||||||
|
protocol to facilitate streaming and storing results from multiple workers.
|
||||||
|
|
||||||
|
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
|
||||||
|
%setup -q -n stestr-%{version}
|
||||||
|
# do not test sql
|
||||||
|
rm stestr/tests/repository/test_sql.py
|
||||||
|
|
||||||
|
%if %{with test}
|
||||||
|
%check
|
||||||
|
export LC_ALL="en_US.UTF8"
|
||||||
|
# can only test in python3: cliff unavailable elsewhere
|
||||||
|
python3 -B -m pytest stestr/tests -v -k 'not test_empty_with_pretty_out'
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if ! %{with test}
|
||||||
|
%build
|
||||||
|
export LC_ALL="en_US.UTF8"
|
||||||
|
%python_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
export LC_ALL="en_US.UTF8"
|
||||||
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%license LICENSE
|
||||||
|
%doc ChangeLog README.rst
|
||||||
|
%if "%{python_flavor}" == "python3" || "%{?python_provides}" == "python3"
|
||||||
|
%{_bindir}/stestr
|
||||||
|
%endif
|
||||||
|
%{python_sitelib}/stestr
|
||||||
|
%{python_sitelib}/stestr-%{version}*-info
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%changelog
|
BIN
stestr-3.2.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
stestr-3.2.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user