Change-Id: I126e635c5a4b83c6031e28c018c09d8f214c93aa
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3310
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
| ... | ... |
@@ -4,7 +4,7 @@ |
| 4 | 4 |
Summary: Library for building powerful interactive command lines in Python. |
| 5 | 5 |
Name: python-prompt_toolkit |
| 6 | 6 |
Version: 1.0.14 |
| 7 |
-Release: 3%{?dist}
|
|
| 7 |
+Release: 4%{?dist}
|
|
| 8 | 8 |
License: BSD |
| 9 | 9 |
Group: Development/Languages/Python |
| 10 | 10 |
Vendor: VMware, Inc. |
| ... | ... |
@@ -17,11 +17,18 @@ BuildRequires: python2 |
| 17 | 17 |
BuildRequires: python2-libs |
| 18 | 18 |
BuildRequires: python2-devel |
| 19 | 19 |
BuildRequires: python-setuptools |
| 20 |
+BuildRequires: python-Pygments |
|
| 21 |
+BuildRequires: python-wcwidth |
|
| 22 |
+BuildRequires: python-six |
|
| 20 | 23 |
%if %{with_check}
|
| 21 |
-BuildRequires: python-pytest, python-six, python-wcwidth |
|
| 24 |
+BuildRequires: python-pytest |
|
| 22 | 25 |
%endif |
| 26 |
+ |
|
| 23 | 27 |
Requires: python2 |
| 24 | 28 |
Requires: python2-libs |
| 29 |
+Requires: python-Pygments |
|
| 30 |
+Requires: python-six |
|
| 31 |
+Requires: python-wcwidth |
|
| 25 | 32 |
|
| 26 | 33 |
BuildArch: noarch |
| 27 | 34 |
|
| ... | ... |
@@ -34,11 +41,18 @@ BuildRequires: python3-devel |
| 34 | 34 |
BuildRequires: python3-libs |
| 35 | 35 |
BuildRequires: python3-setuptools |
| 36 | 36 |
BuildRequires: python3-xml |
| 37 |
+BuildRequires: python3-Pygments |
|
| 38 |
+BuildRequires: python3-wcwidth |
|
| 39 |
+BuildRequires: python3-six |
|
| 37 | 40 |
%if %{with_check}
|
| 38 |
-BuildRequires: python3-pytest, python3-six, python3-wcwidth |
|
| 41 |
+BuildRequires: python3-pytest |
|
| 39 | 42 |
%endif |
| 43 |
+ |
|
| 40 | 44 |
Requires: python3 |
| 41 | 45 |
Requires: python3-libs |
| 46 |
+Requires: python3-Pygments |
|
| 47 |
+Requires: python3-six |
|
| 48 |
+Requires: python3-wcwidth |
|
| 42 | 49 |
|
| 43 | 50 |
%description -n python3-prompt_toolkit |
| 44 | 51 |
Python 3 version. |
| ... | ... |
@@ -62,12 +76,11 @@ popd |
| 62 | 62 |
|
| 63 | 63 |
%check |
| 64 | 64 |
export PYTHONPATH="%{buildroot}%{python2_sitelib}"
|
| 65 |
-sed -i 's/assert/#assert/g' tests/test_print_tokens.py |
|
| 66 | 65 |
py.test2 |
| 67 | 66 |
pushd ../p3dir |
| 68 | 67 |
export PYTHONPATH="%{buildroot}%{python3_sitelib}"
|
| 69 |
-sed -i 's/assert/#assert/g' tests/test_print_tokens.py |
|
| 70 | 68 |
py.test3 |
| 69 |
+popd |
|
| 71 | 70 |
|
| 72 | 71 |
%files |
| 73 | 72 |
%defattr(-,root,root) |
| ... | ... |
@@ -78,6 +91,8 @@ py.test3 |
| 78 | 78 |
%{python3_sitelib}/*
|
| 79 | 79 |
|
| 80 | 80 |
%changelog |
| 81 |
+* Fri Jul 21 2017 Divya Thaluru <dthaluru@vmware.com> 1.0.14-4 |
|
| 82 |
+- Added packages which are required during runtime |
|
| 81 | 83 |
* Wed Jul 12 2017 Chang Lee <changlee@vmware.com> 1.0.14-3 |
| 82 | 84 |
- Updated %check and added six, wcwidth, and pytest in BuildRequires |
| 83 | 85 |
* Wed Jun 07 2017 Xiaolin Li <xiaolinl@vmware.com> 1.0.14-2 |