Accepting request 838830 from devel:languages:python:aws

OBS-URL: https://build.opensuse.org/request/show/838830
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-botocore?expand=0&rev=62
This commit is contained in:
Dominique Leuenberger 2020-10-02 15:15:35 +00:00 committed by Git OBS Bridge
commit bb165165b8
3 changed files with 4017 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Sep 24 17:50:34 UTC 2020 - Hans-Peter Jansen <hpj@urpla.net>
- Adjust remove_nose.patch to apply again
-------------------------------------------------------------------
Mon Sep 7 10:47:56 UTC 2020 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
@ -92,6 +97,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:``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>

View File

@ -25,6 +25,9 @@ License: Apache-2.0
URL: https://github.com/boto/botocore
Source: https://files.pythonhosted.org/packages/source/b/botocore/botocore-%{version}.tar.gz
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 jmespath < 1.0.0}
BuildRequires: %{python_module jmespath >= 0.7.1}
@ -50,8 +53,9 @@ BuildArch: noarch
BuildRequires: python
%endif
# SECTION Testing requirements
BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module pluggy >= 0.7}
BuildRequires: %{python_module py >= 1.5.0}
BuildRequires: %{python_module pytest >= 4.6}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module six}
# /SECTION
@ -62,7 +66,8 @@ A low-level interface to a growing number of Amazon Web Services.
%prep
%setup -q -n botocore-%{version}
%patch0 -p1
%autopatch -p1
# remove bundled cacert.pem
rm botocore/cacert.pem
# 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}
%check
%python_expand nosetests-%{$python_bin_suffix} -v tests/unit
%pytest tests/unit
%files %{python_files}
%doc README.rst

3996
remove_nose.patch Normal file

File diff suppressed because it is too large Load Diff