From 8caf53a9a1fc5662e86de306bb98053bef92566c6f5e390cb0dfcd3fbca9c862 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Sat, 28 Dec 2019 17:37:01 +0000 Subject: [PATCH] - fix dependency on python-path.py OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-shutil?expand=0&rev=7 --- python-pytest-shutil.changes | 5 +++++ python-pytest-shutil.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/python-pytest-shutil.changes b/python-pytest-shutil.changes index 8db1594..43257eb 100644 --- a/python-pytest-shutil.changes +++ b/python-pytest-shutil.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Dec 28 17:36:29 UTC 2019 - Ondřej Súkup + +- fix dependency on python-path.py + ------------------------------------------------------------------- Mon Jun 3 09:07:17 UTC 2019 - Tomáš Chvátal diff --git a/python-pytest-shutil.spec b/python-pytest-shutil.spec index 4823278..a634875 100644 --- a/python-pytest-shutil.spec +++ b/python-pytest-shutil.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-shutil # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -38,12 +38,12 @@ BuildRequires: python-contextlib2 BuildRequires: python-rpm-macros Requires: python-execnet Requires: python-mock -Requires: python-path.py Requires: python-pytest Requires: python-six Requires: python-termcolor %ifpython2 Requires: python-contextlib2 +Requires: python-path.py %endif BuildArch: noarch @@ -55,7 +55,8 @@ tools for automated tests. %prep %setup -q -n pytest-shutil-%{version} -sed -i '/contextlib2/d' setup.py +sed -i 's/contextlib2/contextlib2;python_version<"3"/' setup.py +sed -i 's/path\.py/path\.py;python_version<"3"/' setup.py %build %python_build