diff --git a/python-pytest-shutil.changes b/python-pytest-shutil.changes index a391759..96419e6 100644 --- a/python-pytest-shutil.changes +++ b/python-pytest-shutil.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 22 07:23:42 UTC 2019 - John Vandenberg + +- Remove dependency on contextlib2 on Python 3 + ------------------------------------------------------------------- Wed Feb 20 11:52:07 UTC 2019 - Tomáš Chvátal diff --git a/python-pytest-shutil.spec b/python-pytest-shutil.spec index a1c0835..6df5ec7 100644 --- a/python-pytest-shutil.spec +++ b/python-pytest-shutil.spec @@ -25,7 +25,6 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/manahl/pytest-plugins Source: https://files.pythonhosted.org/packages/source/p/pytest-shutil/pytest-shutil-%{version}.tar.gz -BuildRequires: %{python_module contextlib2} BuildRequires: %{python_module execnet} BuildRequires: %{python_module mock} BuildRequires: %{python_module path.py} @@ -35,15 +34,19 @@ BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} BuildRequires: %{python_module termcolor} BuildRequires: fdupes +BuildRequires: python-contextlib2 BuildRequires: python-rpm-macros -Requires: python-contextlib2 Requires: python-execnet Requires: python-mock Requires: python-path.py Requires: python-pytest Requires: python-six Requires: python-termcolor +%ifpython2 +Requires: python-contextlib2 +%endif BuildArch: noarch + %python_subpackages %description @@ -53,6 +56,7 @@ tools for automated tests. %prep %setup -q -n pytest-shutil-%{version} sed -i -e 's:pytest<4.0.0:pytest:g' setup.py +sed -i '/contextlib2/d' setup.py %build %python_build