Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pytest for openSUSE:Factory checked in at 2022-04-23 19:45:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pytest (Old) and /work/SRC/openSUSE:Factory/.python-pytest.new.1538 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest" Sat Apr 23 19:45:11 2022 rev:69 rq:965105 version:7.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pytest/python-pytest.changes 2021-12-30 15:55:34.652661806 +0100 +++ /work/SRC/openSUSE:Factory/.python-pytest.new.1538/python-pytest.changes 2022-04-23 19:45:28.650948459 +0200 @@ -1,0 +2,71 @@ +Fri Mar 25 23:39:31 UTC 2022 - Ben Greiner <c...@bnavigator.de> + +- Update to 7.1.1 + * #9767: Fixed a regression in pytest 7.1.0 where some + conftest.py files outside of the source tree (e.g. in the + [site-packages]{.title-ref} directory) were not picked up. +- python-pytest5 is gone. Remove the libalts stopgap + +------------------------------------------------------------------- +Sun Mar 13 08:38:16 UTC 2022 - Ben Greiner <c...@bnavigator.de> + +- Update to 7.1.0 + * Big changelog for 7.x series, see + https://docs.pytest.org/en/7.1.x/changelog.html for details +- Breaking changes: + * #8838: As per our policy, the following features have been + deprecated in the 6.X series and are now removed: + + pytest._fillfuncargs function. + + pytest_warning_captured hook - use pytest_warning_recorded + instead. + + -k -foobar syntax - use -k 'not foobar' instead. + + -k foobar: syntax. + * pytest.collect module - import from pytest directly. + * #9437: Dropped support for Python 3.6, which reached + end-of-life at 2021-12-23. + * #7259: The Node.reportinfo() function first return value type + has been expanded from py.path.local | str to os.PathLike[str] + | str. + Most plugins which refer to reportinfo() only define it as part + of a custom pytest.Item implementation. Since py.path.local is + a os.PathLike[str], these plugins are unaffacted. + + Plugins and users which call reportinfo(), use the first return + value and interact with it as a py.path.local, would need to + adjust by calling py.path.local(fspath). Although preferably, + avoid the legacy py.path.local and use pathlib.Path, or use + item.location or item.path, instead. + + Note: pytest was not able to provide a deprecation period for + this change. + * #8246: --version now writes version information to stdout + rather than stderr. + * #8733: Drop a workaround for pyreadline that made it work with + --pdb. The workaround was introduced in #1281 in 2015, however + since then pyreadline seems to have gone unmaintained, is + generating warnings, and will stop working on Python 3.10. + * #9061: Using pytest.approx() in a boolean context now raises an + error hinting at the proper usage. + + It is apparently common for users to mistakenly use + pytest.approx like this: + + assert pytest.approx(actual, expected) + + While the correct usage is: + + assert actual == pytest.approx(expected) + + The new error message helps catch those mistakes. + * #9277: The pytest.Instance collector type has been removed. + Importing pytest.Instance or _pytest.python.Instance returns a + dummy type and emits a deprecation warning. See The + pytest.Instance collector for details. + * If you have concerns about the removal of a specific feature, + please add a comment to issue #9308. +- Drop patches + * pytest-pr8664-py3.10-test_trial_error-fail.patch + * pytest-pr9173-importlib-py310.patch + * pytest-pr9417-py3.10.1-fail.patch + +------------------------------------------------------------------- Old: ---- pytest-6.2.5.tar.gz pytest-pr8664-py3.10-test_trial_error-fail.patch pytest-pr9173-importlib-py310.patch pytest-pr9417-py3.10.1-fail.patch New: ---- pytest-7.1.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pytest.spec ++++++ --- /var/tmp/diff_new_pack.geQ306/_old 2022-04-23 19:45:29.342949281 +0200 +++ /var/tmp/diff_new_pack.geQ306/_new 2022-04-23 19:45:29.346949286 +0200 @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2021 SUSE LLC +# 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 @@ -16,15 +16,12 @@ # -# https://build.opensuse.org/request/show/926611#comment-1560144 -%bcond_with pytest_is_ready_for_alts -%if 0%{?suse_version} > 1500 && %{with pytest_is_ready_for_alts} +%if 0%{?suse_version} > 1500 %bcond_without libalternatives %else %bcond_with libalternatives %endif -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -%{flavor} @@ -33,23 +30,20 @@ %define psuffix %{nil} %bcond_with test %endif + +%{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-pytest%{psuffix} -Version: 6.2.5 +Version: 7.1.1 Release: 0 Summary: Simple powerful testing with Python License: MIT URL: https://github.com/pytest-dev/pytest Source: https://files.pythonhosted.org/packages/source/p/pytest/pytest-%{version}.tar.gz -# PATCH-FIX-UPSTREAM pytest-pr8664-py3.10-test_trial_error-fail.patch -- gh#pytest-dev/pytest#8664 -Patch0: pytest-pr8664-py3.10-test_trial_error-fail.patch -# PATCH-FIX-UPSTREAM pytest-pr9173-importlib-py310.patch -- gh#pytest-dev/pytest#9173 -Patch1: pytest-pr9173-importlib-py310.patch -# PATCH-FIX-UPSTREAM pytest-pr9417-py3.10.1-fail.patch -- gh#pytest-dev/pytest#9417 -Patch2: pytest-pr9417-py3.10.1-fail.patch -BuildRequires: %{python_module setuptools >= 42.0} -BuildRequires: %{python_module setuptools_scm} -BuildRequires: %{python_module toml} +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module setuptools_scm >= 6} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module tomli >= 1} BuildRequires: fdupes BuildRequires: python-rpm-macros >= 20210929 Requires: python-attrs >= 19.2.0 @@ -59,8 +53,7 @@ Requires: python-pluggy >= 0.12 Requires: python-py >= 1.8.2 Requires: python-setuptools -Requires: python-toml -Requires: python-wcwidth +Requires: python-tomli >= 1 %if %{with libalternatives} Requires: alts BuildRequires: alts @@ -79,16 +72,13 @@ # tests, when the package is not available. # BuildRequires: %%{python_module nose} BuildRequires: %{python_module pexpect} +BuildRequires: %{python_module numpy} BuildRequires: %{python_module pygments-pytest} BuildRequires: %{python_module pytest >= %{version}} BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module requests} BuildRequires: %{python_module xmlschema} BuildRequires: lsof -BuildRequires: %{python_module numpy if (%python-base without python36-base)} -%endif -%if %{?python_version_nodots} < 36 -Requires: python-pathlib2 >= 2.2.0 %endif %python_subpackages @@ -114,7 +104,8 @@ %check %if %{with test} -%pytest +# assert rewrite: gh#pytest-dev/pytest#9761 +%pytest -n auto -k "not (test_assertrewrite)" %endif %if ! %{with test} ++++++ pytest-6.2.5.tar.gz -> pytest-7.1.1.tar.gz ++++++ ++++ 82075 lines of diff (skipped)