osc copypac from project:Cloud:OpenStack:Rocky package:python-pexpect revision:2, using keep-link, using expand

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pexpect?expand=0&rev=39
This commit is contained in:
2018-09-04 15:34:24 +00:00
committed by Git OBS Bridge
parent 6c5ae91d4c
commit 8a2da0dad8
3 changed files with 34 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ License: ISC
Group: Development/Libraries/Python
URL: http://pexpect.readthedocs.org/en/latest/
Source: https://files.pythonhosted.org/packages/source/p/pexpect/pexpect-%{version}.tar.gz
Patch0: fix-test.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module ptyprocess}
BuildRequires: %{python_module pytest}
@@ -44,6 +45,7 @@ controlling them; and responding to expected patterns in their output.
%prep
%setup -q -n pexpect-%{version}
%patch0 -p1
# Fix wrong-script-interpreter
find examples -type f -name "*.py" -exec sed -i "s|#!%{_bindir}/env python||" {} \;