From f302edb6d9d807aff2adb14d13247d2bd61bc3b1de0307d815cebbea09df8feb Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 8 Aug 2022 08:11:20 +0000 Subject: [PATCH] - Add patch remove-pathlib2.patch: * Drop install_requires on pathlib2. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Fabric?expand=0&rev=77 --- python-Fabric.changes | 6 ++++++ python-Fabric.spec | 3 ++- remove-pathlib2.patch | 13 +++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 remove-pathlib2.patch diff --git a/python-Fabric.changes b/python-Fabric.changes index e37c756..173ce5f 100644 --- a/python-Fabric.changes +++ b/python-Fabric.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Aug 8 08:09:01 UTC 2022 - Steve Kowalik + +- Add patch remove-pathlib2.patch: + * Drop install_requires on pathlib2. + ------------------------------------------------------------------- Tue Aug 2 13:31:00 UTC 2022 - Otto Hollmann diff --git a/python-Fabric.spec b/python-Fabric.spec index c1cd882..e41fdb2 100644 --- a/python-Fabric.spec +++ b/python-Fabric.spec @@ -28,6 +28,8 @@ Source: https://files.pythonhosted.org/packages/source/f/fabric/fabric-% Patch0: fix-executable.patch # PATCH-FIX-UPSTREAM gh#fabric/fabric#2210 Patch1: remove-mock.patch +# PATCH-FIX-OPENSUSE remove pathlib2 requirement gh#fabric/fabric#2180 +Patch2: remove-pathlib2.patch BuildRequires: %{python_module cryptography >= 1.1} BuildRequires: %{python_module decorator} BuildRequires: %{python_module invoke >= 1.3} @@ -41,7 +43,6 @@ Requires: python-cryptography >= 1.1 Requires: python-decorator Requires: python-invoke >= 1.3 Requires: python-paramiko >= 2.4 -Requires: python-pathlib2 Requires: python-setuptools Requires: python-six Requires(post): update-alternatives diff --git a/remove-pathlib2.patch b/remove-pathlib2.patch new file mode 100644 index 0000000..b3bdb01 --- /dev/null +++ b/remove-pathlib2.patch @@ -0,0 +1,13 @@ +Index: fabric-2.7.1/setup.py +=================================================================== +--- fabric-2.7.1.orig/setup.py ++++ fabric-2.7.1/setup.py +@@ -65,7 +65,7 @@ setuptools.setup( + "CI": "https://app.circleci.com/pipelines/github/fabric/fabric", + "Twitter": "https://twitter.com/pyfabric", + }, +- install_requires=["invoke>=1.3,<2.0", "paramiko>=2.4", "pathlib2"], ++ install_requires=["invoke>=1.3,<2.0", "paramiko>=2.4"], + extras_require={ + "testing:python_version<='3.3'": testing_deps, + "pytest:python_version<='3.3'": testing_deps + pytest_deps,