From 4995f2ffd3a093fad2f073da5be50cb993e427599aa855c5d7a682cb603c4f46 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 14 Sep 2025 18:28:18 +0000 Subject: [PATCH] - update to 1.1.1: * Adjust signature of SugarTerminalReporter to avoid conflicts with other pytest plugins - update to 1.1.0: * Add Playwright trace file detection and display support for failed tests * `--sugar-trace-dir`: Configure the directory name for Playwright trace files (default: test-results) * `--sugar-no-trace`: Disable Playwright trace file detection and display OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-sugar?expand=0&rev=20 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + pytest-sugar-1.1.1.tar.gz | 3 ++ python-pytest-sugar.changes | 91 +++++++++++++++++++++++++++++++++++++ python-pytest-sugar.spec | 62 +++++++++++++++++++++++++ 5 files changed, 180 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pytest-sugar-1.1.1.tar.gz create mode 100644 python-pytest-sugar.changes create mode 100644 python-pytest-sugar.spec 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/pytest-sugar-1.1.1.tar.gz b/pytest-sugar-1.1.1.tar.gz new file mode 100644 index 0000000..e562e9a --- /dev/null +++ b/pytest-sugar-1.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73b8b65163ebf10f9f671efab9eed3d56f20d2ca68bda83fa64740a92c08f65d +size 16533 diff --git a/python-pytest-sugar.changes b/python-pytest-sugar.changes new file mode 100644 index 0000000..002dfbd --- /dev/null +++ b/python-pytest-sugar.changes @@ -0,0 +1,91 @@ +------------------------------------------------------------------- +Sun Sep 14 18:27:57 UTC 2025 - Dirk Müller + +- update to 1.1.1: + * Adjust signature of SugarTerminalReporter to avoid conflicts + with other pytest plugins +- update to 1.1.0: + * Add Playwright trace file detection and display support for + failed tests + * `--sugar-trace-dir`: Configure the directory name for + Playwright trace files (default: test-results) + * `--sugar-no-trace`: Disable Playwright trace file detection + and display + +------------------------------------------------------------------- +Thu Feb 1 20:51:57 UTC 2024 - Dirk Müller + +- update to 1.0.0: + * Add support for pytest 8.x + * Drop support for Python 3.7 + +------------------------------------------------------------------- +Thu Jul 27 12:46:32 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Thu May 4 22:24:11 UTC 2023 - Dirk Müller + +- update to 0.9.7: + * For long-running tests, display minutes and not only seconds + * Add support for Pytest’s ``--header`` option (thanks @wiresv) + +------------------------------------------------------------------- +Wed Nov 30 11:39:52 UTC 2022 - Daniel Garcia + +- Remove python_module macro definition +- More specific python_sitelib in %files +- Update to 0.9.6: + * Remove py.std calls (thanks @alexcjohnson) +- 0.9.5: + * Fix distutils deprecation warning (thanks @tgagor) + * Fix incompatibility with pytest-timeout (thanks @graingert) + * Update pytest naming convention in documentation (thanks @avallbona) + +------------------------------------------------------------------- +Thu Nov 5 14:51:01 UTC 2020 - Marketa Machova + +- update to 0.9.4 + * Fix pytest-sugar 0.9.3 incompatible with pytest 5.4 (thanks @nicoddemus) + * Fix Tests fail with pytest 3.5.0 DOCTESTS (^) + * Fix Tests fail with pytest 5.x (^) + +------------------------------------------------------------------- +Mon Apr 27 09:30:57 UTC 2020 - Tomáš Chvátal + +- Update to 0.9.3: + * Fix incompatibility with pytest 5.4.0 (thanks @GuillaumeFavelier) +- Drop patch pytest4.patch + +------------------------------------------------------------------- +Wed Jul 24 07:09:44 UTC 2019 - Tomáš Chvátal + +- Skip failing pytest5 checks that need tweaking upstream + +------------------------------------------------------------------- +Tue Feb 12 15:52:25 UTC 2019 - Tomáš Chvátal + +- Update to 0.9.2: + * Fix incompatibility with pytest 3.10 (thanks @Natim) + * Double colons for verbose output (thanks @albertodonato) + * Fix "Wrong count with items modified in pytest_collection_modifyitems" (thanks @blueyed) + * Defer registration of xdist hook (thanks @blueyed) +- Add patch from upstream to fix build with pytest 4.2+: + * pytest4.patch + +------------------------------------------------------------------- +Sun Feb 18 21:47:34 UTC 2018 - mimi.vx@gmail.com + +- update to 0.9.1 + + Fix incompatibility with pytest 3.4 + +------------------------------------------------------------------- +Fri Nov 17 12:06:50 UTC 2017 - jengelh@inai.de + +- Fix package name repetition in summary. + +------------------------------------------------------------------- +Wed Nov 15 09:59:13 UTC 2017 - mimi.vx@gmail.com + +- initial package diff --git a/python-pytest-sugar.spec b/python-pytest-sugar.spec new file mode 100644 index 0000000..16b6d9c --- /dev/null +++ b/python-pytest-sugar.spec @@ -0,0 +1,62 @@ +# +# spec file for package python-pytest-sugar +# +# Copyright (c) 2025 SUSE LLC and contributors +# +# 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-pytest-sugar +Version: 1.1.1 +Release: 0 +Summary: Pretty printer for pytest progress +License: BSD-3-Clause +URL: https://github.com/Frozenball/pytest-sugar +Source: https://files.pythonhosted.org/packages/source/p/pytest-sugar/pytest-sugar-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module termcolor} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-pytest +Requires: python-termcolor +BuildArch: noarch +%python_subpackages + +%description +pytest-sugar is a plugin for py.test that shows failures and errors instantly and shows a progress bar. + +%prep +%setup -q -n pytest-sugar-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE +%doc README.md +%pycache_only %{python_sitelib}/__pycache__/*.pyc +%{python_sitelib}/pytest_sugar.py +%{python_sitelib}/pytest_sugar-%{version}.dist-info + +%changelog