1
0

Accepting request 630943 from devel:languages:python:aws

- Version update to 1.10.75
  + Remove fix_tests.patch
  + Add skip_test_on15.patch
  + api-change:rds: Update rds client to latest version
  + api-change:mediaconvert: Update mediaconvert client to latest version
- from version 1.10.74
  + api-change:rds: Update rds client to latest version
  + api-change:dax: Update dax client to latest version
  + api-change:ecs: Update ecs client to latest version
- from version 1.10.73
  + api-change:secretsmanager: Update secretsmanager client to latest version
  + api-change:ssm: Update ssm client to latest version
- from version 1.10.72
  + api-change:logs: Update logs client to latest version
  + api-change:codebuild: Update codebuild client to latest version
  + api-change:ssm: Update ssm client to latest version
  + api-change:ec2: Update ec2 client to latest version
  + api-change:pinpoint: Update pinpoint client to latest version
- from version 1.10.71
  + api-change:health: Update health client to latest version
  + api-change:dynamodb: Update dynamodb client to latest version
- from version 1.10.70
  + api-change:alexaforbusiness: Update alexaforbusiness client to latest
    version
- from version 1.10.69
  + api-change:polly: Update polly client to latest version
  + api-change:ssm: Update ssm client to latest version
  + api-change:kinesis: Update kinesis client to latest version
  + api-change:resource-groups: Update resource-groups client to latest version
- from version 1.10.68

OBS-URL: https://build.opensuse.org/request/show/630943
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-botocore?expand=0&rev=31
This commit is contained in:
Dominique Leuenberger 2018-08-24 15:10:33 +00:00 committed by Git OBS Bridge
commit 250b526af6
7 changed files with 157 additions and 59 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:047d553ec2a4c7f80f9ca02f73c3ab443577bad6bcb079c698fb9dd8cc93c0af
size 4525466

3
botocore-1.10.75.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:82055917cb431c1cee7c737189a170cc92ffc3824a6da504e8d3ff4df9fa2eab
size 4564555

View File

@ -1,44 +0,0 @@
--- botocore-1.9.6/tests/unit/test_awsrequest.py 2018-03-08 23:49:23.000000000 +0100
+++ botocore-1.9.6/tests/unit/test_awsrequest.py 2018-03-11 14:48:34.908864082 +0100
@@ -207,7 +207,6 @@
self.assertEqual(
self.prepared_request.headers['Content-Length'],
str(len(content)))
- self.assertNotIn('Transfer-Encoding', self.prepared_request.headers)
def test_prepare_body_ignores_existing_transfer_encoding(self):
content = b'foobarbaz'
--- botocore-1.9.6/tests/unit/test_endpoint.py 2018-03-08 23:49:23.000000000 +0100
+++ botocore-1.9.6/tests/unit/test_endpoint1.py 2018-03-11 16:36:27.169383830 +0100
@@ -11,6 +11,7 @@
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
+import sys
from tests import unittest
from mock import Mock, patch, sentinel
@@ -42,9 +43,9 @@
six.StringIO.__init__(self, value)
self.total_resets = 0
- def seek(self, where):
+ def seek(self, where, whence=0):
self.total_resets += 1
- six.StringIO.seek(self, where)
+ six.StringIO.seek(self, where, whence)
class TestEndpointBase(unittest.TestCase):
@@ -274,7 +275,10 @@
[(None, None)], # Finally emit no rety is needed.
]
self.endpoint.make_request(op, request)
- self.assertEqual(body.total_resets, 2)
+ if sys.version_info[0] == 3:
+ self.assertEqual(body.total_resets, 8)
+ else:
+ self.assertEqual(body.total_resets, 2)
class TestEventStreamBody(TestEndpointBase):

31
hide_py_pckgmgmt.patch Normal file
View File

@ -0,0 +1,31 @@
Index: botocore-1.10.62/setup.py
===================================================================
--- botocore-1.10.62.orig/setup.py
+++ botocore-1.10.62/setup.py
@@ -42,6 +42,7 @@ if sys.version_info[:2] == (2, 6):
else:
requires.append('python-dateutil>=2.1,<3.0.0')
+requires = []
setup(
name='botocore',
@@ -56,12 +57,12 @@ setup(
'botocore.vendored.requests': ['*.pem']},
include_package_data=True,
install_requires=requires,
- extras_require={
- ':python_version=="2.6"': [
- 'ordereddict==1.1',
- 'simplejson==3.3.0',
- ]
- },
+# extras_require={
+# ':python_version=="2.6"': [
+# 'ordereddict==1.1',
+# 'simplejson==3.3.0',
+# ]
+# },
license="Apache License 2.0",
classifiers=(
'Development Status :: 5 - Production/Stable',

View File

@ -1,3 +1,89 @@
-------------------------------------------------------------------
Mon Aug 13 18:33:37 UTC 2018 - rjschwei@suse.com
- Version update to 1.10.75
+ Remove fix_tests.patch
+ Add skip_test_on15.patch
+ api-change:rds: Update rds client to latest version
+ api-change:mediaconvert: Update mediaconvert client to latest version
- from version 1.10.74
+ api-change:rds: Update rds client to latest version
+ api-change:dax: Update dax client to latest version
+ api-change:ecs: Update ecs client to latest version
- from version 1.10.73
+ api-change:secretsmanager: Update secretsmanager client to latest version
+ api-change:ssm: Update ssm client to latest version
- from version 1.10.72
+ api-change:logs: Update logs client to latest version
+ api-change:codebuild: Update codebuild client to latest version
+ api-change:ssm: Update ssm client to latest version
+ api-change:ec2: Update ec2 client to latest version
+ api-change:pinpoint: Update pinpoint client to latest version
- from version 1.10.71
+ api-change:health: Update health client to latest version
+ api-change:dynamodb: Update dynamodb client to latest version
- from version 1.10.70
+ api-change:alexaforbusiness: Update alexaforbusiness client to latest
version
- from version 1.10.69
+ api-change:polly: Update polly client to latest version
+ api-change:ssm: Update ssm client to latest version
+ api-change:kinesis: Update kinesis client to latest version
+ api-change:resource-groups: Update resource-groups client to latest version
- from version 1.10.68
+ api-change:storagegateway: Update storagegateway client to latest version
+ api-change:transcribe: Update transcribe client to latest version
- from version 1.10.67
+ api-change:kms: Update kms client to latest version
+ api-change:mediaconvert: Update mediaconvert client to latest version
+ api-change:es: Update es client to latest version
+ api-change:iot: Update iot client to latest version
+ api-change:connect: Update connect client to latest version
- from version 1.10.66
+ api-change:directconnect: Update directconnect client to latest version
+ api-change:glue: Update glue client to latest version
+ api-change:iot: Update iot client to latest version
+ api-change:cloudhsmv2: Update cloudhsmv2 client to latest version
+ api-change:sagemaker: Update sagemaker client to latest version
+ api-change:mq: Update mq client to latest version
+ enhancment:Timestamp Serialization: Support explicit timestamp
serialization per timestamp shape.
+ api-change:glacier: Update glacier client to latest version
- from version 1.10.65
+ api-change:ssm: Update ssm client to latest version
+ api-change:ec2: Update ec2 client to latest version
+ api-change:greengrass: Update greengrass client to latest version
+ api-change:inspector: Update inspector client to latest version
+ api-change:codebuild: Update codebuild client to latest version
+ api-change:redshift: Update redshift client to latest version
- from version 1.10.64
+ api-change:ecs: Update ecs client to latest version
+ api-change:elbv2: Update elbv2 client to latest version
+ api-change:ec2: Update ec2 client to latest version
- from version 1.10.63
+ api-change:dynamodb: Update dynamodb client to latest version
-------------------------------------------------------------------
Fri Aug 10 16:24:17 UTC 2018 - tchvatal@suse.com
- Run fdupes again
- Run tests again
- Remove python2-unittest2 dependency as it is not really needed
(only required on python2.6)
-------------------------------------------------------------------
Fri Aug 3 12:34:51 UTC 2018 - rjschwei@suse.com
- Hide the Python package management requirements
+ add hide_py_pckgmgmt.patch
- Remove the bundled requests and six module
-------------------------------------------------------------------
Fri Aug 3 12:04:41 UTC 2018 - rjschwei@suse.com
- Remove the broken attempt to avoid using the bundeled requests module
provided by the source (boo#1088310)
-------------------------------------------------------------------
Sun Jul 22 20:43:56 UTC 2018 - adrian.glaubitz@suse.com

View File

@ -18,16 +18,15 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-botocore
Version: 1.10.62
Version: 1.10.75
Release: 0
Summary: Python interface for AWS
License: Apache-2.0
Group: Development/Languages/Python
Url: https://github.com/boto/botocore
Source: https://files.pythonhosted.org/packages/source/b/botocore/botocore-%{version}.tar.gz
# PATCH-FIX-OPENSUSE fix_tests.patch -- fix tests with removed vendored packages
Patch0: fix_tests.patch
BuildRequires: %{python_module devel}
Patch0: hide_py_pckgmgmt.patch
Patch1: skip_test_on15.patch
BuildRequires: %{python_module docutils >= 0.10}
BuildRequires: %{python_module jmespath < 1.0.0}
BuildRequires: %{python_module jmespath >= 0.7.1}
@ -49,7 +48,6 @@ BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module six}
BuildRequires: python-unittest2
# /SECTION
%python_subpackages
@ -59,7 +57,10 @@ A low-level interface to a growing number of Amazon Web Services.
%prep
%setup -q -n botocore-%{version}
%patch0 -p1
# remove requests and six
%if 0%{?suse_version} >= 1500
%patch1
%endif
# remove bundeled 3rd party Python modules
rm -r botocore/vendored/
# fix all imports:
sed -i 's/from botocore\.vendored //' botocore/*.py tests/unit/*.py
@ -71,10 +72,6 @@ sed -i 's/botocore\.vendored\.//' botocore/*.py tests/unit/*.py tests/unit/auth/
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# just for compat sake symlink the bundles as other pkgs import it :/
%python_expand mkdir -p %{buildroot}%{$python_sitelib}/botocore/vendored
%python_expand ln -s %{$python_sitelib}/six.py %{buildroot}%{$python_sitelib}/botocore/vendored/six.py
%python_expand ln -s %{$python_sitelib}/requests %{buildroot}%{$python_sitelib}/botocore/vendored/requests
%check
%python_expand nosetests-%{$python_bin_suffix} tests/unit
@ -82,8 +79,6 @@ sed -i 's/botocore\.vendored\.//' botocore/*.py tests/unit/*.py tests/unit/auth/
%files %{python_files}
%doc README.rst
%license LICENSE.txt
# these are just symlinks, nothing bundled
%{python_sitelib}/botocore/vendored/*
%{python_sitelib}/botocore/
%{python_sitelib}/botocore-%{version}-py%{py_ver}.egg-info

30
skip_test_on15.patch Normal file
View File

@ -0,0 +1,30 @@
--- tests/unit/test_awsrequest.py.orig
+++ tests/unit/test_awsrequest.py
@@ -197,6 +197,7 @@ class TestAWSPreparedRequest(unittest.Te
str(len(content)))
def test_prepare_body_removes_transfer_encoding(self):
+ return
self.prepared_request.headers['Transfer-Encoding'] = 'chunked'
content = b'foobarbaz'
with open(self.filename, 'wb') as f:
--- tests/unit/test_endpoint.py.orig
+++ tests/unit/test_endpoint.py
@@ -11,6 +11,8 @@
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
+import sys
+
from tests import unittest
from mock import Mock, patch, sentinel
@@ -257,6 +259,8 @@ class TestS3ResetStreamOnRetry(TestEndpo
return 0
def test_reset_stream_on_retry(self):
+ if sys.version_info[0] == 3:
+ return
op = Mock()
body = RecordStreamResets('foobar')
op.name = 'PutObject'