Accepting request 829838 from home:mcepl:branches:devel:languages:python:aws

- Add remove_nose.patch which ports test suite from nose to
  pytest (mostly just plain unittest, I just don't know how to
  mark tests as slow). Filed upstream as gh#boto/botocore#2134.

OBS-URL: https://build.opensuse.org/request/show/829838
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-botocore?expand=0&rev=82
This commit is contained in:
Robert Schweikert 2020-09-14 13:56:56 +00:00 committed by Git OBS Bridge
parent eff65cd6a8
commit 958455abf6
3 changed files with 3839 additions and 4 deletions

View File

@ -92,6 +92,13 @@ Mon Sep 7 10:47:56 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.c
* api-change:``iot``: Update iot client to latest version * api-change:``iot``: Update iot client to latest version
* api-change:``cloud9``: Update cloud9 client to latest version * api-change:``cloud9``: Update cloud9 client to latest version
-------------------------------------------------------------------
Wed Aug 26 16:54:07 UTC 2020 - Matej Cepl <mcepl@suse.com>
- Add remove_nose.patch which ports test suite from nose to
pytest (mostly just plain unittest, I just don't know how to
mark tests as slow). Filed upstream as gh#boto/botocore#2134.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Aug 12 10:45:22 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com> Wed Aug 12 10:45:22 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@ -25,6 +25,9 @@ License: Apache-2.0
URL: https://github.com/boto/botocore URL: https://github.com/boto/botocore
Source: https://files.pythonhosted.org/packages/source/b/botocore/botocore-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/b/botocore/botocore-%{version}.tar.gz
Patch0: hide_py_pckgmgmt.patch Patch0: hide_py_pckgmgmt.patch
# PATCH-FEATURE-UPSTREAM remove_nose.patch gh#boto/botocore#2134 mcepl@suse.com
# Port test suite from nose to pytest (mostly just plain unittest)
Patch1: remove_nose.patch
BuildRequires: %{python_module docutils >= 0.10} BuildRequires: %{python_module docutils >= 0.10}
BuildRequires: %{python_module jmespath < 1.0.0} BuildRequires: %{python_module jmespath < 1.0.0}
BuildRequires: %{python_module jmespath >= 0.7.1} BuildRequires: %{python_module jmespath >= 0.7.1}
@ -50,8 +53,9 @@ BuildArch: noarch
BuildRequires: python BuildRequires: python
%endif %endif
# SECTION Testing requirements # SECTION Testing requirements
BuildRequires: %{python_module mock} BuildRequires: %{python_module pluggy >= 0.7}
BuildRequires: %{python_module nose} BuildRequires: %{python_module py >= 1.5.0}
BuildRequires: %{python_module pytest >= 4.6}
BuildRequires: %{python_module requests} BuildRequires: %{python_module requests}
BuildRequires: %{python_module six} BuildRequires: %{python_module six}
# /SECTION # /SECTION
@ -62,7 +66,8 @@ A low-level interface to a growing number of Amazon Web Services.
%prep %prep
%setup -q -n botocore-%{version} %setup -q -n botocore-%{version}
%patch0 -p1 %autopatch -p1
# remove bundled cacert.pem # remove bundled cacert.pem
rm botocore/cacert.pem rm botocore/cacert.pem
# remove bundled 3rd party Python modules # remove bundled 3rd party Python modules
@ -80,7 +85,7 @@ sed -i 's/botocore\.vendored\.//' botocore/*.py tests/functional/*.py tests/inte
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%python_expand nosetests-%{$python_bin_suffix} -v tests/unit %pytest tests/unit
%files %{python_files} %files %{python_files}
%doc README.rst %doc README.rst

3823
remove_nose.patch Normal file

File diff suppressed because it is too large Load Diff