commit 8d087a88005d2f17960a9d411456d76cf420f93583d62ebb9fb340dc2bd5d3b5 Author: Steve Kowalik Date: Fri May 2 05:02:07 2025 +0000 - Run the testsuite again. - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testrepository?expand=0&rev=48 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-testrepository.changes b/python-testrepository.changes new file mode 100644 index 0000000..062d234 --- /dev/null +++ b/python-testrepository.changes @@ -0,0 +1,205 @@ +------------------------------------------------------------------- +Fri May 2 05:01:28 UTC 2025 - Steve Kowalik + +- Run the testsuite again. +- Switch to pyproject macros. +- No more greedy globs in %files. + +------------------------------------------------------------------- +Mon Jul 1 08:15:50 UTC 2024 - Dirk Müller + +- update to 0.0.21: + * testrepository now uses ``hatch`` rather than ``pbr``. + * setup.py testr now supports different coverage names. + * Isolate the testrepository test suite from the chunking (or + otherwise) behaviour of testtools' exception handlers. + * Unexpected errors reading streams from a file repository now + propogate the correct exception. + * testrepository now requires at least version 0.0.11 of the + subunit Python module. + +------------------------------------------------------------------- +Fri May 5 12:17:54 UTC 2023 - Johannes Kastl + +- add sle15_python_module_pythons + +------------------------------------------------------------------- +Mon Feb 8 11:17:44 UTC 2021 - Markéta Machová + +- %ifpython3 does not work with new multi-build python + +------------------------------------------------------------------- +Tue Mar 26 16:00:06 UTC 2019 - Tomáš Chvátal + +- Remove accidental runtime dep on python-dbm + +------------------------------------------------------------------- +Tue Mar 26 10:41:33 UTC 2019 - Tomáš Chvátal + +- The tests are failing in the release but work on the git + so lets hope there is some release in future that will allow + us to enable them + +------------------------------------------------------------------- +Mon Feb 11 11:36:20 UTC 2019 - Tomáš Chvátal + +- Fix the buildrequires to match up properly + +------------------------------------------------------------------- +Mon Feb 11 04:14:13 UTC 2019 - John Vandenberg + +- Add missing dependencies pytz and dbm +- Activate tests, currently broken +- Fix %license + +------------------------------------------------------------------- +Tue Dec 4 12:55:12 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Wed Jul 5 09:04:12 UTC 2017 - tbechtold@suse.com + +- add Requires for python3-dbm + +------------------------------------------------------------------- +Fri May 19 14:12:32 UTC 2017 - tbechtold@suse.com + +- Convert to singlespec + +------------------------------------------------------------------- +Thu Jul 14 17:39:14 UTC 2016 - dmueller@suse.com + +- add license + +------------------------------------------------------------------- +Mon Jan 11 09:37:54 UTC 2016 - toddrme2178@gmail.com + +- Add python-pbr dependency. + +------------------------------------------------------------------- +Thu Sep 10 12:07:18 UTC 2015 - tbechtold@suse.com + +- Fix python-python-subunit Requires version + +------------------------------------------------------------------- +Tue Sep 16 06:22:45 UTC 2014 - tbechtold@suse.com + +- update to version 0.0.20: + * Tests will be reliably tagged with worker-%d. The previous tagging logic + had an implicit race - the tag id was looked up via a closure which gets + the state of the pos variable at the position the overall loop has advanced + too, not the position when the closure was created. + (Robert Collins, #1316858) + * Passing --subunit to all testr commands will now consistently output subunit + v2. Previously it would output v1 for stored streams and v2 for live + streams. (Robert Collins) + * ``run`` was outputting bad MIME types - test/plain, not text/plain. + (Robert Collins) + * Test filtering was failing under python3 and would only apply the + filters to the first test listed by discover. (Clark Boylan, #1317607) + * Tests that are enumerated but not executed will no longer reset the test + timing data. Enumeration was incorrectly recording a 0 timestamp for + enumerated tests. This leads to poor scheduling after an interrupted test + run. (Robert Collins, #1322763) + * Version 0.0.18 of subunit is now a hard dependency - the v2 protocol solves + key issues in concurrency and stream handling. Users that cannot use subunit + v2 can run an older testrepository, or contact upstream to work through + whatever issue is blocking them. (Robert Collins) + * When list-tests encounters an error, a much clearer response will + now be shown. (Robert Collins, #1271133) + * The ``get_subunit_stream`` methods now return subunit v2 streams rather + than v1 streams, preparing the way for storage of native v2 streams in + the repository. (Robert Collins) + * ``UI.output_stream`` is now tested for handling of non-utf8 bytestreams. + (Robert Collins) + +------------------------------------------------------------------- +Thu Feb 13 13:56:39 UTC 2014 - speilicke@suse.com + +- Implement update-alternatives + +------------------------------------------------------------------- +Thu Jan 30 08:59:07 UTC 2014 - dmueller@suse.com + +- fix requires + +------------------------------------------------------------------- +Sun Nov 17 17:12:34 UTC 2013 - p.drouand@gmail.com + +- Update to version 0.0.18 + + ``run`` now accepts ``--isolated`` as a parameter, which will cause each + selected test to be run independently. This can be useful to both workaround + isolation bugs and detect tests that can not be run independently. + + + ``capture_ids`` in test_run now returns a list of captures, permitting tests + that need to test multiple runs to do so. + +------------------------------------------------------------------- +Thu Oct 24 11:15:47 UTC 2013 - speilicke@suse.com + +- Require python-setuptools instead of distribute (upstreams merged) + +------------------------------------------------------------------- +Fri Jul 19 10:56:40 UTC 2013 - dmueller@suse.com + +- update to 0.0.17: + * Restore the ability to import testrepository.repository.memory on Python 2.6. + * A new testr.conf option ``group_regex`` can be used for grouping + tests so that they get run in the same backend runner. (Matthew Treinish) + * Fix Python 3.* support for entrypoints; the initial code was Python3 + incompatible. (Robert Collins, Clark Boylan, #1187192) + * Switch to using multiprocessing to determine CPU counts. + (Chris Jones, #1092276) + * The cli UI now has primitive differentiation between multiple stream types. + This is not yet exposed to the end user, but is sufficient to enable the + load command to take interactive input without it reading from the raw + subunit stream on stdin. (Robert Collins) + * The scheduler can now groups tests together permitting co-dependent tests to + always be scheduled onto the same backend. Note that this does not force + co-dependent tests to be executed, so partial test runs (e.g. --failing) + may still fail. (Matthew Treinish, Robert Collins) + * When test listing fails, testr will now report an error rather than + incorrectly trying to run zero tests. A test listing failure is detected by + the returncode of the test listing process. (Robert Collins, #1185231) + +------------------------------------------------------------------- +Thu Jul 11 15:55:27 UTC 2013 - dmueller@suse.com + +- tighten runtime requires + +------------------------------------------------------------------- +Tue Apr 30 09:17:02 UTC 2013 - dmueller@suse.com + +- add buildrequires to satisfy test suite run + +------------------------------------------------------------------- +Mon Apr 29 12:15:17 UTC 2013 - dmueller@suse.com + +- update to 0.0.15: + * Expects subunit v2 if the local library has v2 support in the subunit + library. This should be seamless if the system under test shares the + Python libraries. If it doesn't, either arrange to use ``subunit-2to1`` + or upgrade the subunit libraries for the system under test. + +------------------------------------------------------------------- +Sat Apr 20 18:58:56 UTC 2013 - toddrme2178@gmail.com + +- Add BuildRequires: python-extras + +------------------------------------------------------------------- +Tue Jan 15 15:43:14 UTC 2013 - dmueller@suse.com + +- add requires to python-discover for SLE11 + +------------------------------------------------------------------- +Tue Jan 15 15:28:53 UTC 2013 - saschpe@suse.de + +- Run testsuite +- Package some documentation + +------------------------------------------------------------------- +Tue Jan 15 13:53:29 UTC 2013 - dmueller@suse.com + +- Initial package (0.0.13) + diff --git a/python-testrepository.spec b/python-testrepository.spec new file mode 100644 index 0000000..a475564 --- /dev/null +++ b/python-testrepository.spec @@ -0,0 +1,97 @@ +# +# spec file for package python-testrepository +# +# Copyright (c) 2025 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-testrepository +Version: 0.0.21 +Release: 0 +Summary: A repository of test results +License: Apache-2.0 OR BSD-3-Clause +URL: https://github.com/testing-cabal/testrepository +Source: https://files.pythonhosted.org/packages/source/t/testrepository/testrepository-%{version}.tar.gz +BuildRequires: %{python_module dbm} +BuildRequires: %{python_module extras} +BuildRequires: %{python_module fixtures} +BuildRequires: %{python_module hatch_vcs} +BuildRequires: %{python_module iso8601} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module python-mimeparse} +BuildRequires: %{python_module python-subunit} +BuildRequires: %{python_module pytz} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module testresources} +BuildRequires: %{python_module testscenarios} +BuildRequires: %{python_module testtools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-fixtures +Requires: python-iso8601 +Requires: python-python-subunit >= 0.0.11 +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +%python_subpackages + +%description +This project provides a database of test results which can be used as part of +developer workflow to ensure/check things like: + +* No commits without having had a test failure, test fixed cycle. +* No commits without new tests being added. +* What tests have failed since the last commit (to run just a subset). +* What tests are currently failing and need work. + +Test results are inserted using subunit (and thus anything that can output +subunit or be converted into a subunit stream can be accepted). + +%prep +%setup -q -n testrepository-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_clone -a %{buildroot}%{_bindir}/testr + +%check +mv .testr.conf .testr.conf.orig +%{python_expand # first line can't be empty +rm -rf .testrepository +sed 's/python/$python/' .testr.conf.orig >| .testr.conf +export PYTHON=$python +$python ./testr init +$python ./testr run --parallel +} + +%post +%python_install_alternative testr + +%postun +%python_uninstall_alternative testr + +%files %{python_files} +%license COPYING Apache-2.0 BSD +%doc NEWS README.rst +%python_alternative %{_bindir}/testr +%{python_sitelib}/testrepository +%{python_sitelib}/testrepository-%{version}.dist-info + +%changelog diff --git a/testrepository-0.0.21.tar.gz b/testrepository-0.0.21.tar.gz new file mode 100644 index 0000000..8385309 --- /dev/null +++ b/testrepository-0.0.21.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:368afcf7e090b3c688bdd754a25f64bc314e512b816f8c71b9f9fc17dc37a3d9 +size 2416956