Hello community, here is the log from the commit of package cookiecutter for openSUSE:Factory checked in at 2020-04-21 13:12:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/cookiecutter (Old) and /work/SRC/openSUSE:Factory/.cookiecutter.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "cookiecutter" Tue Apr 21 13:12:04 2020 rev:4 rq:792984 version:1.7.0 Changes: -------- --- /work/SRC/openSUSE:Factory/cookiecutter/cookiecutter.changes 2020-01-06 15:24:36.480556037 +0100 +++ /work/SRC/openSUSE:Factory/.cookiecutter.new.2738/cookiecutter.changes 2020-04-21 13:12:06.756985243 +0200 @@ -1,0 +2,5 @@ +Fri Apr 3 19:47:20 UTC 2020 - Sebastian Wagner <[email protected]> + +- add fix-click-711.patch to fix compatibility with click 7.1.1 which fixes the tests which fixes the build. + +------------------------------------------------------------------- New: ---- fix-click-711.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cookiecutter.spec ++++++ --- /var/tmp/diff_new_pack.UKutPW/_old 2020-04-21 13:12:08.016987756 +0200 +++ /var/tmp/diff_new_pack.UKutPW/_new 2020-04-21 13:12:08.016987756 +0200 @@ -26,6 +26,8 @@ URL: https://github.com/audreyr/cookiecutter Source: https://files.pythonhosted.org/packages/source/c/cookiecutter/cookiecutter-%{version}.tar.gz Source1: ccext.py +# PATCH-FIX-UPSTEAM fix-click-711.patch -- compatibility with click 7.1.1 +Patch0: fix-click-711.patch BuildRequires: git BuildRequires: python3-Jinja2 >= 2.7 BuildRequires: python3-binaryornot >= 0.2.0 @@ -83,6 +85,7 @@ %setup -q -n cookiecutter-%{version} sed -i "s/cookiecutter =/cookiecutter-%{py3_ver} =/" setup.py cp %{SOURCE1} docs +%patch0 -p1 %build python3 setup.py build ++++++ fix-click-711.patch ++++++ diff -ruN a/tests/test_cli.py b/tests/test_cli.py https://github.com/cookiecutter/cookiecutter/issues/1327 --- a/tests/test_cli.py 2019-12-21 19:29:52.000000000 +0100 +++ b/tests/test_cli.py 2020-03-14 11:53:20.505357215 +0100 @@ -390,7 +390,7 @@ 'ExtraContextWithNoEqualsSoInvalid', ) assert result.exit_code == 2 - assert 'Error: Invalid value for "[EXTRA_CONTEXT]..."' in result.output + assert "Error: Invalid value for '[EXTRA_CONTEXT]...'" in result.output assert 'should contain items of the form key=value' in result.output diff -ruN a/tests/test_cookiecutter_invocation.py b/tests/test_cookiecutter_invocation.py --- a/tests/test_cookiecutter_invocation.py 2019-12-21 19:29:52.000000000 +0100 +++ b/tests/test_cookiecutter_invocation.py 2020-03-14 11:52:17.332550458 +0100 @@ -23,7 +23,7 @@ subprocess.check_call([sys.executable, '-m', 'cookiecutter.cli']) _, err = capfd.readouterr() - exp_message = 'Error: Missing argument "TEMPLATE".' + exp_message = "Error: Missing argument 'TEMPLATE'." assert exp_message in err
