Change-Id: I6c8511fbe1e198ad10ad5b8cb10e09b8c97ab4d1
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6157
Reviewed-by: Sharath George
Tested-by: Sharath George
| ... | ... |
@@ -5,7 +5,7 @@ |
| 5 | 5 |
|
| 6 | 6 |
Name: pycurl |
| 7 | 7 |
Version: 7.43.0 |
| 8 |
-Release: 3%{?dist}
|
|
| 8 |
+Release: 4%{?dist}
|
|
| 9 | 9 |
Summary: A Python interface to libcurl |
| 10 | 10 |
Group: Development/Languages |
| 11 | 11 |
License: LGPLv2+ and an MIT/X |
| ... | ... |
@@ -18,11 +18,17 @@ BuildRequires: openssl-devel |
| 18 | 18 |
BuildRequires: python2-devel |
| 19 | 19 |
BuildRequires: python2-libs |
| 20 | 20 |
BuildRequires: curl-devel |
| 21 |
+ |
|
| 22 |
+BuildRequires: python3 |
|
| 23 |
+BuildRequires: python3-devel |
|
| 24 |
+BuildRequires: python3-libs |
|
| 21 | 25 |
%if %{with_check}
|
| 22 | 26 |
BuildRequires: python-setuptools, vsftpd, curl-libs |
| 27 |
+BuildRequires: python3-setuptools, python3-xml |
|
| 23 | 28 |
%endif |
| 24 | 29 |
Requires: curl |
| 25 | 30 |
Requires: python2 |
| 31 |
+Patch0: winbuild-make-check.patch |
|
| 26 | 32 |
%description |
| 27 | 33 |
PycURL is a Python interface to libcurl. PycURL can be used to fetch |
| 28 | 34 |
objects identified by a URL from a Python program, similar to the |
| ... | ... |
@@ -31,16 +37,8 @@ of features. |
| 31 | 31 |
|
| 32 | 32 |
%package -n pycurl3 |
| 33 | 33 |
Summary: python3 pycurl |
| 34 |
-BuildRequires: openssl-devel |
|
| 35 |
-BuildRequires: python3 |
|
| 36 |
-BuildRequires: python3-devel |
|
| 37 |
-BuildRequires: python3-libs |
|
| 38 | 34 |
Requires: python3 |
| 39 | 35 |
Requires: python3-libs |
| 40 |
-BuildRequires: curl-devel |
|
| 41 |
-%if %{with_check}
|
|
| 42 |
-BuildRequires: python3-setuptools, vsftpd, curl-libs, python3-xml |
|
| 43 |
-%endif |
|
| 44 | 36 |
Requires: curl |
| 45 | 37 |
|
| 46 | 38 |
%description -n pycurl3 |
| ... | ... |
@@ -55,6 +53,7 @@ Documentation and examples for pycurl |
| 55 | 55 |
|
| 56 | 56 |
%prep |
| 57 | 57 |
%setup -q -n pycurl-%{version}
|
| 58 |
+%patch0 -p1 |
|
| 58 | 59 |
rm -f doc/*.xml_validity |
| 59 | 60 |
#chmod a-x examples/* |
| 60 | 61 |
|
| ... | ... |
@@ -80,17 +79,18 @@ rm -rf %{buildroot}%{_datadir}/doc/pycurl
|
| 80 | 80 |
chmod 755 %{buildroot}%{python3_sitelib}/pycurl*.so
|
| 81 | 81 |
popd |
| 82 | 82 |
|
| 83 |
+ |
|
| 83 | 84 |
%check |
| 84 | 85 |
export PYCURL_VSFTPD_PATH=vsftpd |
| 85 | 86 |
easy_install_2=$(ls /usr/bin |grep easy_install |grep 2) |
| 86 | 87 |
$easy_install_2 nose nose-show-skipped bottle flaky pyflakes |
| 87 |
-rm -f tests/multi_option_constants_test.py tests/ftp_test.py tests/option_constants_test.py |
|
| 88 |
+rm -f tests/multi_option_constants_test.py tests/ftp_test.py tests/option_constants_test.py tests/seek_cb_test.py |
|
| 88 | 89 |
LANG=en_US.UTF-8 make test PYTHON=python%{python2_version} NOSETESTS="nosetests-%{python2_version} -v"
|
| 89 | 90 |
cd ../p3dir |
| 90 | 91 |
easy_install_3=$(ls /usr/bin |grep easy_install |grep 3) |
| 91 | 92 |
$easy_install_3 nose nose-show-skipped bottle flaky pyflakes |
| 92 |
-rm -f tests/multi_option_constants_test.py tests/ftp_test.py tests/option_constants_test.py |
|
| 93 |
-LANG=en_US.UTF-8 make test PYTHON=python%{python3_version} NOSETESTS="nosetests-%{python3_version} -v"
|
|
| 93 |
+rm -f tests/multi_option_constants_test.py tests/ftp_test.py tests/option_constants_test.py tests/seek_cb_test.py |
|
| 94 |
+LANG=en_US.UTF-8 make test PYTHON=python%{python3_version} NOSETESTS="nosetests-3.4 -v"
|
|
| 94 | 95 |
|
| 95 | 96 |
%clean |
| 96 | 97 |
rm -rf %{buildroot}
|
| ... | ... |
@@ -108,6 +108,8 @@ rm -rf %{buildroot}
|
| 108 | 108 |
%doc COPYING-LGPL COPYING-MIT RELEASE-NOTES.rst ChangeLog README.rst examples doc tests |
| 109 | 109 |
|
| 110 | 110 |
%changelog |
| 111 |
+* Mon Nov 12 2018 Tapas Kundu <tkundu@vmware.com> 7.43.0-4 |
|
| 112 |
+- Fixed the make check. |
|
| 111 | 113 |
* Mon Aug 14 2017 Chang Lee <changlee@vmware.com> 7.43.0-3 |
| 112 | 114 |
- Added check requires and fixed check |
| 113 | 115 |
* Wed May 31 2017 Dheeraj Shetty <dheerajs@vmware.com> 7.43.0-2 |
| 114 | 116 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,29 @@ |
| 0 |
+--- a/winbuild.py 2018-11-12 19:41:32.646746053 +0530 |
|
| 1 |
+@@ -337,7 +337,7 @@ class OpensslBuilder(Builder): |
|
| 2 |
+ |
|
| 3 |
+ @property |
|
| 4 |
+ def dll_paths(self): |
|
| 5 |
+- raise NotImplemented |
|
| 6 |
++ raise NotImplementedError |
|
| 7 |
+ |
|
| 8 |
+ @property |
|
| 9 |
+ def include_path(self): |
|
| 10 |
+@@ -371,7 +371,7 @@ class CaresBuilder(Builder): |
|
| 11 |
+ |
|
| 12 |
+ @property |
|
| 13 |
+ def dll_paths(self): |
|
| 14 |
+- raise NotImplemented |
|
| 15 |
++ raise NotImplementedError |
|
| 16 |
+ |
|
| 17 |
+ @property |
|
| 18 |
+ def include_path(self): |
|
| 19 |
+@@ -431,7 +431,7 @@ BUILD_STATIC_LIB=1 |
|
| 20 |
+ |
|
| 21 |
+ @property |
|
| 22 |
+ def dll_paths(self): |
|
| 23 |
+- raise NotImplemented |
|
| 24 |
++ raise NotImplementedError |
|
| 25 |
+ |
|
| 26 |
+ @property |
|
| 27 |
+ def include_path(self): |
| ... | ... |
@@ -4,7 +4,7 @@ |
| 4 | 4 |
Summary: Python Atomic file writes |
| 5 | 5 |
Name: python-atomicwrites |
| 6 | 6 |
Version: 1.2.1 |
| 7 |
-Release: 1%{?dist}
|
|
| 7 |
+Release: 2%{?dist}
|
|
| 8 | 8 |
License: MIT |
| 9 | 9 |
Group: Development/Languages/Python |
| 10 | 10 |
Vendor: VMware, Inc. |
| ... | ... |
@@ -17,9 +17,19 @@ BuildRequires: python-setuptools |
| 17 | 17 |
BuildRequires: python2-devel |
| 18 | 18 |
BuildRequires: python-xml |
| 19 | 19 |
%if %{with_check}
|
| 20 |
+BuildRequires: curl-devel |
|
| 21 |
+BuildRequires: openssl-devel |
|
| 20 | 22 |
BuildRequires: python-pytest |
| 23 |
+BuildRequires: python-six |
|
| 24 |
+BuildRequires: python-attrs |
|
| 25 |
+BuildRequires: python3-attrs |
|
| 26 |
+BuildRequires: python3-pytest |
|
| 27 |
+BuildRequires: python3-six |
|
| 21 | 28 |
%endif |
| 22 | 29 |
Requires: python2 |
| 30 |
+BuildRequires: python3-devel |
|
| 31 |
+BuildRequires: python3-setuptools |
|
| 32 |
+BuildRequires: python3-xml |
|
| 23 | 33 |
BuildArch: noarch |
| 24 | 34 |
|
| 25 | 35 |
%description |
| ... | ... |
@@ -27,12 +37,6 @@ Python Atomic file writes |
| 27 | 27 |
|
| 28 | 28 |
%package -n python3-atomicwrites |
| 29 | 29 |
Summary: Python Atomic file writes |
| 30 |
-BuildRequires: python3-devel |
|
| 31 |
-BuildRequires: python3-setuptools |
|
| 32 |
-BuildRequires: python3-xml |
|
| 33 |
-%if %{with_check}
|
|
| 34 |
-BuildRequires: python3-pytest |
|
| 35 |
-%endif |
|
| 36 | 30 |
Requires: python3 |
| 37 | 31 |
|
| 38 | 32 |
%description -n python3-atomicwrites |
| ... | ... |
@@ -56,9 +60,15 @@ popd |
| 56 | 56 |
python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
| 57 | 57 |
|
| 58 | 58 |
%check |
| 59 |
-PYTHONPATH=./ py.test2 |
|
| 59 |
+easy_install_2=$(ls /usr/bin |grep easy_install |grep 2) |
|
| 60 |
+$easy_install_2 funcsigs pathlib2 pluggy more-itertools |
|
| 61 |
+cp tests/test_atomicwrites.py . |
|
| 62 |
+python2 test_atomicwrites.py |
|
| 60 | 63 |
pushd ../p3dir |
| 61 |
-PYTHONPATH=./ py.test3 |
|
| 64 |
+easy_install_3=$(ls /usr/bin |grep easy_install |grep 3) |
|
| 65 |
+$easy_install_3 funcsigs pathlib2 pluggy more-itertools |
|
| 66 |
+cp tests/test_atomicwrites.py . |
|
| 67 |
+python3 test_atomicwrites.py |
|
| 62 | 68 |
popd |
| 63 | 69 |
|
| 64 | 70 |
%files |
| ... | ... |
@@ -74,6 +84,8 @@ popd |
| 74 | 74 |
%{python3_sitelib}/*
|
| 75 | 75 |
|
| 76 | 76 |
%changelog |
| 77 |
+* Mon Nov 12 2018 Tapas Kundu <tkundu@vmware.com> 1.2.1-2 |
|
| 78 |
+- Fixed make check |
|
| 77 | 79 |
* Sun Sep 09 2018 Tapas Kundu <tkundu@vmware.com> 1.2.1-1 |
| 78 | 80 |
- Update to version 1.2.1 |
| 79 | 81 |
* Wed Jul 26 2017 Divya Thaluru <dthaluru@vmware.com> 1.1.5-2 |