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-06-19 23:01:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-poetry (Old) and /work/SRC/openSUSE:Factory/.python-poetry.new.2625 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-poetry" Sat Jun 19 23:01:44 2021 rev:11 rq:900345 version:1.1.6 Changes: -------- --- /work/SRC/openSUSE:Factory/python-poetry/python-poetry.changes 2021-04-18 21:44:59.548709871 +0200 +++ /work/SRC/openSUSE:Factory/.python-poetry.new.2625/python-poetry.changes 2021-06-19 23:01:47.527577213 +0200 @@ -1,0 +2,7 @@ +Wed Jun 16 08:53:33 UTC 2021 - Antonio Larrosa <[email protected]> + +- Add patch to adapt code to pytest-mock > 3.3.1 where MockFixture + was renamed to MockerFixture: + * use-new-name-of-MockFixture.patch + +------------------------------------------------------------------- New: ---- use-new-name-of-MockFixture.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-poetry.spec ++++++ --- /var/tmp/diff_new_pack.OJHrxE/_old 2021-06-19 23:01:48.063577899 +0200 +++ /var/tmp/diff_new_pack.OJHrxE/_new 2021-06-19 23:01:48.063577899 +0200 @@ -29,6 +29,8 @@ Source: https://github.com/python-poetry/poetry/archive/%{version}.tar.gz#/poetry-%{version}.tar.gz # PATCH-FIX-UPSTREAM https://github.com/python-poetry/poetry/pull/3255#issuecomment-713442094 -- remove external http call requirement for lock --no-update Patch0: poetry-1645-1.1.patch +# PATCH-FIX-UPSTREAM https://github.com/python-poetry/poetry/commit/9591e88492508d4dba260952d53266a0032c04c7 +Patch1: use-new-name-of-MockFixture.patch BuildRequires: %{python_module CacheControl >= 0.12.4} BuildRequires: %{python_module cachy >= 0.3.0} BuildRequires: %{python_module cleo >= 0.8.1} @@ -72,7 +74,7 @@ BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module httpretty >= 1.0.3} -BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module pytest-mock >= 3.5} BuildRequires: %{python_module pytest} BuildRequires: git-core # /SECTION ++++++ use-new-name-of-MockFixture.patch ++++++ From: Antonio Larrosa <[email protected]> This is mainly like https://github.com/python-poetry/poetry/commit/9591e88492508d4dba260952d53266a0032c04c7 but without changing most package versions which is unrelated to this change. Index: poetry-1.1.6/tests/repositories/test_installed_repository.py =================================================================== --- poetry-1.1.6.orig/tests/repositories/test_installed_repository.py +++ poetry-1.1.6/tests/repositories/test_installed_repository.py @@ -2,7 +2,7 @@ from typing import Optional import pytest -from pytest_mock.plugin import MockFixture +from pytest_mock.plugin import MockerFixture from poetry.core.packages import Package from poetry.repositories.installed_repository import InstalledRepository @@ -53,7 +53,7 @@ def env(): # type: () -> MockEnv @pytest.fixture -def repository(mocker, env): # type: (MockFixture, MockEnv) -> InstalledRepository +def repository(mocker, env): # type: (MockerFixture, MockEnv) -> InstalledRepository mocker.patch( "poetry.utils._compat.metadata.Distribution.discover", return_value=INSTALLED_RESULTS, Index: poetry-1.1.6/pyproject.toml =================================================================== --- poetry-1.1.6.orig/pyproject.toml +++ poetry-1.1.6/pyproject.toml @@ -66,7 +66,7 @@ pytest = [ {version = "^5.4.3", python = ">=3.5"} ] pytest-cov = "^2.5" -pytest-mock = "^1.9" +pytest-mock = "^3.5" pre-commit = { version = "^2.6", python = "^3.6.1" } tox = "^3.0" pytest-sugar = "^0.9.2"
