Browse code

python-botocore - fix make check

used nosetests to run the unit test.

Change-Id: I70308ba76283779d6b420411e3fa06a273df8e37
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6505
Tested-by: michellew <michellew@vmware.com>
Reviewed-by: Ankit Jain <ankitja@vmware.com>

Tapas Kundu authored on 2019/01/15 03:21:51
Showing 1 changed files
... ...
@@ -5,7 +5,7 @@
5 5
 Summary:        Amazon Web Services Library.
6 6
 Name:           python-botocore
7 7
 Version:        1.12.0
8
-Release:        1%{?dist}
8
+Release:        2%{?dist}
9 9
 License:        Apache 2.0
10 10
 Group:          Development/Languages/Python
11 11
 Vendor:         VMware, Inc.
... ...
@@ -18,6 +18,18 @@ BuildRequires:  python2-libs
18 18
 BuildRequires:  python2-devel
19 19
 BuildRequires:  python-setuptools
20 20
 BuildRequires:  python-xml
21
+BuildRequires:  python3-devel
22
+BuildRequires:  python3-libs
23
+BuildRequires:  python3-setuptools
24
+BuildRequires:  python3-xml
25
+%if %{with_check}
26
+BuildRequires:  python-pip
27
+BuildRequires:  python3-pip
28
+BuildRequires:  python-dateutil
29
+BuildRequires:  python-urllib3
30
+BuildRequires:  python3-dateutil
31
+BuildRequires:  python3-urllib3
32
+%endif
21 33
 Requires:       python2
22 34
 Requires:       python2-libs
23 35
 BuildArch:      noarch
... ...
@@ -27,10 +39,6 @@ A low-level interface to a growing number of Amazon Web Services. The botocore p
27 27
 
28 28
 %package -n     python3-botocore
29 29
 Summary:        python3-botocore
30
-BuildRequires:  python3-devel
31
-BuildRequires:  python3-libs
32
-BuildRequires:  python3-setuptools
33
-BuildRequires:  python3-xml
34 30
 Requires:       python3
35 31
 Requires:       python3-libs
36 32
 
... ...
@@ -55,9 +63,15 @@ popd
55 55
 python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
56 56
 
57 57
 %check
58
-python2 setup.py test
58
+pip install nose
59
+pip install mock
60
+pip install jmespath
61
+nosetests tests/unit
59 62
 pushd ../p3dir
60
-python3 setup.py test
63
+pip3 install nose
64
+pip3 install mock
65
+pip3 install jmespath
66
+nosetests tests/unit
61 67
 popd
62 68
 
63 69
 %files
... ...
@@ -69,6 +83,8 @@ popd
69 69
 %{python3_sitelib}/*
70 70
 
71 71
 %changelog
72
+*   Mon Jan 14 2019 Tapas Kundu <tkundu@vmware.com> 1.12.0-2
73
+-   Fix make check
72 74
 *   Sun Sep 09 2018 Tapas Kundu <tkundu@vmware.com> 1.12.0-1
73 75
 -   Update to version 1.12.0
74 76
 *   Sun Jan 07 2018 Kumar Kaushik <kaushikk@vmware.com> 1.8.15-1