From cc95dd231b38aba5cc9bc52fd89968e998bee41cfbff4ad0459e7b097412ee7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 22 Apr 2025 13:02:40 +0000 Subject: [PATCH] - pytest made attrs optional, add it here OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-subtests?expand=0&rev=25 --- .gitattributes | 23 +++++++ .gitignore | 1 + pytest-subtests-0.12.1.tar.gz | 3 + pytest_subtests-0.14.1.tar.gz | 3 + python-pytest-subtests.changes | 110 +++++++++++++++++++++++++++++++++ python-pytest-subtests.spec | 63 +++++++++++++++++++ 6 files changed, 203 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pytest-subtests-0.12.1.tar.gz create mode 100644 pytest_subtests-0.14.1.tar.gz create mode 100644 python-pytest-subtests.changes create mode 100644 python-pytest-subtests.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-subtests-0.12.1.tar.gz b/pytest-subtests-0.12.1.tar.gz new file mode 100644 index 0000000..0ff898e --- /dev/null +++ b/pytest-subtests-0.12.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d6605dcb88647e0b7c1889d027f8ef1c17d7a2c60927ebfdc09c7b0d8120476d +size 15303 diff --git a/pytest_subtests-0.14.1.tar.gz b/pytest_subtests-0.14.1.tar.gz new file mode 100644 index 0000000..660d49f --- /dev/null +++ b/pytest_subtests-0.14.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:350c00adc36c3aff676a66135c81aed9e2182e15f6c3ec8721366918bbbf7580 +size 17632 diff --git a/python-pytest-subtests.changes b/python-pytest-subtests.changes new file mode 100644 index 0000000..ec6b7f9 --- /dev/null +++ b/python-pytest-subtests.changes @@ -0,0 +1,110 @@ +------------------------------------------------------------------- +Tue Apr 22 12:59:29 UTC 2025 - Markéta Machová + +- pytest made attrs optional, add it here + +------------------------------------------------------------------- +Fri Jan 17 08:45:11 UTC 2025 - Johannes Kastl + +- update to 0.14.1: + * Fix self.instance._outcome is None case in #173 (#174). +- update to 0.14.0: + * Add support for Python 3.13. + * Dropped support for EOL Python 3.8. + * Fixed output when using TestCase.skipTest (#169). + * Fixed pytest requirement to >=7.3 (#159). +- update to 0.13.1: + * Fixed bug were an extra test would execute when -x/--exitfirst + was used (#139). +- update to 0.13.0: + * Dropped support for EOL Python 3.7. + * Added support for -x/--exitfirst (#134). + * Hide the traceback inside the SubTests.test() method (#131). + +------------------------------------------------------------------- +Mon Mar 25 15:00:57 UTC 2024 - Dirk Müller + +- update to 0.12.1: + * Fixed compatibility with upcoming pytest 8.1.x. (#125). + * Python 3.12 is now officially supported (#113). + * Added typing support (#115). + * SubTests can be imported from pytest_subtests to type- + annotate the subtests fixture. + +------------------------------------------------------------------- +Wed May 31 19:44:46 UTC 2023 - Dirk Müller + +- update to 0.11.0: + * Logging is displayed for failing subtests (`#92`_) + * Passing subtests no longer turn the pytest output to yellow + (as if warnings have been issued) + * Now the ``msg`` contents of a subtest is displayed when + running pytest with ``-v``. + +------------------------------------------------------------------- +Fri Apr 21 12:32:00 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Mon Mar 27 07:22:47 UTC 2023 - Dirk Müller + +- update to 0.10.0: + * Added experimental support for suppressing subtest output + dots in non-verbose mode with ``--no-subtests-shortletter`` + -- this allows the native pytest column calculations to not + be disrupted and minimizes unneeded output for large CI + systems. + +------------------------------------------------------------------- +Tue Jan 10 04:19:50 UTC 2023 - Steve Kowalik + +- Update to 0.9.0: + * Python 3.11 is officially supported. + * Dropped support for Python 3.6. + * Now passing subtests are shown in the test run summary at the end (for + example: 10 failed, 1 passed, 10 subtests passed in 0.10s) (#70). + * Fixed support for pytest 7.0, and pytest>=7.0 is now required. + * pytest>=6.0 is now required. + * Added official support for Python 3.10. + * Dropped support for Python 3.5. + * Users no longer need to configure a warnings filter for the internal A + private pytest class or function was used pytest warning (#52). + * Experimental: Use SUBPASS and , for passed subtests instead of general + PASSED, SUBFAIL and u for failed ones instead of FAILED (#30). + +------------------------------------------------------------------- +Thu Oct 7 09:36:20 UTC 2021 - Pedro Monreal + +- Update to 0.5.0 + * Add support for pytest.mark.xfail + +------------------------------------------------------------------- +Sat Mar 20 20:03:28 UTC 2021 - Ben Greiner + +- Update to 0.4.0 + * Add Python 3.9 support and bump pytest requirement + * Add support for --pdb + +------------------------------------------------------------------- +Thu Nov 5 15:02:17 UTC 2020 - Marketa Machova + +- Update to 0.3.2 + * Fix pytest 6.0 support. + +------------------------------------------------------------------- +Tue Jun 9 07:43:33 UTC 2020 - Tomáš Chvátal + +- Update to 0.3.1: + * Fix pytest 5.4 support. + +------------------------------------------------------------------- +Thu Feb 20 07:12:11 UTC 2020 - Tomáš Chvátal + +- Update to 0.3.0: + * subtests now correctly captures and displays stdout/stderr (#18). + +------------------------------------------------------------------- +Wed Aug 28 01:03:09 PM UTC 2019 - John Vandenberg + +- Initial spec for v0.2.1 diff --git a/python-pytest-subtests.spec b/python-pytest-subtests.spec new file mode 100644 index 0000000..39ff3d7 --- /dev/null +++ b/python-pytest-subtests.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-pytest-subtests +# +# 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-pytest-subtests +Version: 0.14.1 +Release: 0 +Summary: Python unittest subTest() support and subtests fixture +License: MIT +URL: https://github.com/pytest-dev/pytest-subtests +Source: https://files.pythonhosted.org/packages/source/p/pytest-subtests/pytest_subtests-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-attrs >= 19.2.0 +Requires: python-pytest >= 7.0 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module attrs >= 19.2.0} +BuildRequires: %{python_module pytest >= 7.0} +# /SECTION +%python_subpackages + +%description +Python unittest subTest() support and subtests fixture. + +%prep +%setup -q -n pytest_subtests-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc CHANGELOG.rst README.rst +%license LICENSE +%{python_sitelib}/pytest_subtests +%{python_sitelib}/pytest_subtests-%{version}.dist-info + +%changelog