commit 97fb4d3a4e95056c1195a84cf9459fff18b76949908086bb6d1eb3cd54b17a04 Author: Adrian Schröter Date: Fri May 3 22:29:03 2024 +0200 Sync from SUSE:SLFO:Main python-pytest-relaxed revision 000a972dd86fadd829d3c694a035bc3a 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/pytest-relaxed-2.0.1.tar.gz b/pytest-relaxed-2.0.1.tar.gz new file mode 100644 index 0000000..258799e --- /dev/null +++ b/pytest-relaxed-2.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:53a7372e3feaa527409bb40353f813c59b760e5d8bd47e6f6fcf187c5d96dd0c +size 26063 diff --git a/python-pytest-relaxed.changes b/python-pytest-relaxed.changes new file mode 100644 index 0000000..59a8605 --- /dev/null +++ b/python-pytest-relaxed.changes @@ -0,0 +1,96 @@ +------------------------------------------------------------------- +Wed May 31 19:43:48 UTC 2023 - Dirk Müller + +- update to 2.0.1: + * Don't try loading Pytest fixture functions as if + they were test functions. Classifying this as a bug even + though it's a moderately sized change in behavior; + it's vanishingly unlikely anybody was relying on this + somehow! + +------------------------------------------------------------------- +Fri Apr 21 12:31:55 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:44:09 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Wed Jan 11 01:52:18 UTC 2023 - Steve Kowalik + +- Update to 2.0.0: + * Prior to version 2, we failed to correctly support true Pytest + setup/teardown methods (i.e. setup_method and teardown_method) and + these would not get copied to inner class scopes. This has been fixed. + We still support old nose-style setup/teardown for now, despite them + going away in Pytest 8. + * Modernize codebase/project a bunch: + + Dropped support for Python <3.6 (including 2.7) + + Pytest support upgraded to support, and require, Pytest >=7. + + Behavioral changes in Pytest internals have fixed a handful of + sorta-bugs present in pytest-relaxed under Pytest versions 3 and 4. +- Dropped patches pytest-6.1-and-7.patch, pytest-relaxed-pr10.patch: + * No longer required. +- Removed six from BuildRequires, is no longer used. + +------------------------------------------------------------------- +Tue Apr 12 19:41:01 UTC 2022 - Ben Greiner + +- Enhance no-makeitem-method.patch to pytest-6.1-and-7.patch + gh#bitprophet/pytest-relaxed#21 + +------------------------------------------------------------------- +Thu Mar 10 06:05:48 UTC 2022 - Steve Kowalik + +- Add patch no-makeitem-method.patch: + * Support pytest > 6.1 +- No longer skip python310. + +------------------------------------------------------------------- +Tue Dec 28 20:34:06 UTC 2021 - Ben Greiner + +- Skip python310 -- gh#bitprophet/pytest-relaxed#12 + +------------------------------------------------------------------- +Wed Nov 17 03:44:15 UTC 2021 - Steve Kowalik + +- Add missing BuildRequires on six. + +------------------------------------------------------------------- +Tue Oct 13 10:33:07 UTC 2020 - Benjamin Greiner + +- Upper limit pytest 6.1 -- gh#bitprophet/pytest-relaxed#12 + +------------------------------------------------------------------- +Fri May 15 22:10:39 UTC 2020 - Benjamin Greiner + +- fix test failure by pytest-relaxed-pr10.patch + gh#bitprophet/pytest-relaxed#10 + +------------------------------------------------------------------- +Wed Jan 15 12:51:01 UTC 2020 - Tomáš Chvátal + +- Skip test test_tests_are_colorized_by_test_result as pytest 5.3 + tweaked color output a bit + +------------------------------------------------------------------- +Mon Jun 17 10:49:38 UTC 2019 - Tomáš Chvátal + +- Update to 1.1.5: + * Fix compatibility with pytest versions 3.3 and above. + +------------------------------------------------------------------- +Thu Feb 14 15:30:39 UTC 2019 - Tomáš Chvátal + +- Update to 1.1.4: + * Various tiny fixes in formating/metadata/etc. +- Drop patch python3_fix.patch + +------------------------------------------------------------------- +Wed Nov 15 19:16:52 UTC 2017 - mimi.vx@gmail.com + +- initial commit +* added python3_fix.patch - nonascii characters in README diff --git a/python-pytest-relaxed.spec b/python-pytest-relaxed.spec new file mode 100644 index 0000000..28822e3 --- /dev/null +++ b/python-pytest-relaxed.spec @@ -0,0 +1,61 @@ +# +# spec file for package python-pytest-relaxed +# +# Copyright (c) 2023 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-relaxed +Version: 2.0.1 +Release: 0 +Summary: Relaxed test discovery/organization for pytest +License: BSD-2-Clause +URL: https://github.com/bitprophet/pytest-relaxed +Source: https://files.pythonhosted.org/packages/source/p/pytest-relaxed/pytest-relaxed-%{version}.tar.gz +BuildRequires: %{python_module decorator >= 4} +BuildRequires: %{python_module pytest >= 7} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-decorator >= 4 +Requires: python-pytest >= 7 +BuildArch: noarch +%python_subpackages + +%description +Relaxed test discovery/organization plugin for pytest from python-paramiko author + +%prep +%autosetup -p1 -n pytest-relaxed-%{version} + +%build +export LANG=en_US.UTF-8 +%python_build + +%install +export LANG=en_US.UTF-8 +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest tests + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/pytest_relaxed +%{python_sitelib}/pytest_relaxed-%{version}*-info + +%changelog