Accepting request 687538 from home:jayvdb:coala:test-rig

- Remove dependency on contextlib2 on Python 3

OBS-URL: https://build.opensuse.org/request/show/687538
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-shutil?expand=0&rev=3
This commit is contained in:
Tomáš Chvátal 2019-03-22 10:25:28 +00:00 committed by Git OBS Bridge
parent 7066029db9
commit e822fc5575
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Mar 22 07:23:42 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Remove dependency on contextlib2 on Python 3
-------------------------------------------------------------------
Wed Feb 20 11:52:07 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -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