Hello community, here is the log from the commit of package python-Fabric for openSUSE:Factory checked in at 2020-05-05 19:07:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Fabric (Old) and /work/SRC/openSUSE:Factory/.python-Fabric.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Fabric" Tue May 5 19:07:28 2020 rev:32 rq:800402 version:2.5.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Fabric/python-Fabric.changes 2019-09-25 08:08:52.622547010 +0200 +++ /work/SRC/openSUSE:Factory/.python-Fabric.new.2738/python-Fabric.changes 2020-05-05 19:07:45.346981064 +0200 @@ -1,0 +2,5 @@ +Tue May 5 12:40:33 UTC 2020 - Marketa Calabkova <[email protected]> + +- Add patch fix-executable.patch to fix tests + +------------------------------------------------------------------- New: ---- fix-executable.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Fabric.spec ++++++ --- /var/tmp/diff_new_pack.zgKQVz/_old 2020-05-05 19:07:47.246985000 +0200 +++ /var/tmp/diff_new_pack.zgKQVz/_new 2020-05-05 19:07:47.250985008 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-Fabric # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,6 +25,8 @@ Group: Development/Languages/Python URL: http://fabfile.org Source: https://files.pythonhosted.org/packages/source/f/fabric/fabric-%{version}.tar.gz +# fix executable in tests +Patch0: fix-executable.patch BuildRequires: %{python_module cryptography >= 1.1} BuildRequires: %{python_module decorator} BuildRequires: %{python_module invoke >= 1.3} @@ -68,6 +70,7 @@ %setup -q -n fabric-%{version} # fix all imports: sed -i 's/from invoke.vendor\./from\ /' fabric/connection.py fabric/group.py integration/concurrency.py tests/config.py tests/transfer.py tests/_util.py tests/connection.py tests/runners.py +%patch0 -p1 %build %python_build ++++++ fix-executable.patch ++++++ Index: fabric-2.5.0/tests/main.py =================================================================== --- fabric-2.5.0.orig/tests/main.py +++ fabric-2.5.0/tests/main.py @@ -358,5 +358,5 @@ Fabric .+ Paramiko .+ Invoke .+ """.strip() - output = run("python -m fabric --version", hide=True, in_stream=False) + output = run(sys.executable + " -m fabric --version", hide=True, in_stream=False) assert re.match(expected_output, output.stdout)
