Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-poetry for openSUSE:Factory 
checked in at 2021-12-21 18:40:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-poetry (Old)
 and      /work/SRC/openSUSE:Factory/.python-poetry.new.2520 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-poetry"

Tue Dec 21 18:40:24 2021 rev:14 rq:941283 version:1.1.12

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-poetry/python-poetry.changes      
2021-12-09 19:45:18.017124330 +0100
+++ /work/SRC/openSUSE:Factory/.python-poetry.new.2520/python-poetry.changes    
2021-12-21 18:40:36.149872272 +0100
@@ -1,0 +2,6 @@
+Fri Dec 17 18:14:36 UTC 2021 - Ben Greiner <c...@bnavigator.de>
+
+- Add poetry-3544-py310.patch for compatibility with Python 3.10
+  gh#python-poetry/poetry#3544
+
+-------------------------------------------------------------------

New:
----
  poetry-3544-py310.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-poetry.spec ++++++
--- /var/tmp/diff_new_pack.ppG82V/_old  2021-12-21 18:40:36.621872696 +0100
+++ /var/tmp/diff_new_pack.ppG82V/_new  2021-12-21 18:40:36.625872699 +0100
@@ -33,6 +33,8 @@
 Patch1:         use-new-name-of-MockFixture.patch
 # PATCH-FIX-UPSTREAM https://github.com/python-poetry/poetry/pull/4749 -- make 
compatible with packaging >= 21
 Patch2:         poetry-4749-1.1.patch
+# PATCH-FIX-UPSTREAM poetry-3544-py310.patch -- gh#python-poetry/poetry#3544 
-- python310 fixes
+Patch3:         
https://github.com/python-poetry/poetry/pull/3544.patch#/poetry-3544-py310.patch
 BuildRequires:  %{python_module CacheControl >= 0.12.9}
 BuildRequires:  %{python_module cachy >= 0.3.0}
 BuildRequires:  %{python_module cleo >= 0.8.1}
@@ -61,9 +63,9 @@
 Requires:       python-keyring >= 21.2.0
 # cachecontrol[filecache]
 Requires:       python-lockfile >= 0.9
-Requires:       python-pkginfo >= 1.5
 Requires:       python-packaging >= 20.4
 Requires:       python-pexpect >= 4.7.0
+Requires:       python-pkginfo >= 1.5
 Requires:       python-poetry-core >= 1.0.7
 Requires:       python-requests >= 2.18
 Requires:       python-requests-toolbelt >= 0.9.1

++++++ poetry-3544-py310.patch ++++++
>From a72ebc3afb3301383497159abb8327aeec59494f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <m...@hroncok.cz>
Date: Wed, 6 Jan 2021 13:15:18 +0100
Subject: [PATCH] Fix a typo in autospec

On Python 3.10, I get:

    =================================== FAILURES 
===================================
    _____________________ test_info_setup_complex_pep517_error 
_____________________

    mocker = <pytest_mock.plugin.MockerFixture object at 0x7f31e2e772b0>
    demo_setup_complex = 
PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_info_setup_complex_pep5170')

        def test_info_setup_complex_pep517_error(mocker, demo_setup_complex):
    >       mocker.patch(
                "poetry.utils.env.VirtualEnv.run",
                auto_spec=True,
                side_effect=EnvCommandError(CalledProcessError(1, "mock", 
output="mock")),
            )

    tests/inspection/test_info.py:191:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _
    /usr/lib/python3.10/site-packages/pytest_mock/plugin.py:376: in __call__
        return self._start_patch(
    /usr/lib/python3.10/site-packages/pytest_mock/plugin.py:184: in _start_patch
        p = mock_func(*args, **kwargs)
    /usr/lib64/python3.10/unittest/mock.py:1736: in patch
        return _patch(
    /usr/lib64/python3.10/unittest/mock.py:1275: in __init__
        _check_spec_arg_typos(kwargs)
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _

    kwargs_to_check = {'auto_spec': True, 'side_effect': 
EnvCommandError('Command mock errored with the following return code 1, and 
output: \nmock')}

        def _check_spec_arg_typos(kwargs_to_check):
            typos = ("autospect", "auto_spec", "set_spec")
            for typo in typos:
                if typo in kwargs_to_check:
    >               raise RuntimeError(
                        f"{typo!r} might be a typo; use unsafe=True if this is 
intended"
                    )
    E               RuntimeError: 'auto_spec' might be a typo; use unsafe=True 
if this is intended

    /usr/lib64/python3.10/unittest/mock.py:1251: RuntimeError
---
 tests/inspection/test_info.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/inspection/test_info.py b/tests/inspection/test_info.py
index e04bd52a5..ac0c4504e 100644
--- a/tests/inspection/test_info.py
+++ b/tests/inspection/test_info.py
@@ -174,7 +174,7 @@ def test_info_setup_complex(demo_setup_complex):
 def test_info_setup_complex_pep517_error(mocker, demo_setup_complex):
     mocker.patch(
         "poetry.utils.env.VirtualEnv.run",
-        auto_spec=True,
+        autospec=True,
         side_effect=EnvCommandError(CalledProcessError(1, "mock", 
output="mock")),
     )
 

Reply via email to