-
-
Notifications
You must be signed in to change notification settings - Fork 939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switching to boto3 only #693
Merged
Merged
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
b1169d7
Switch Boto2 to Boto3 for SQS messaging
fad9250
Fixed region support
39b7bd3
Add SQS FIFO queue support
04ee160
Add sensible defaults for message attributes
c270e92
Asynchronous support, plus boto3 for region endpoint lookups
1e4b1e3
Clean up imports
66870de
Fix Python 2 support
5f20c80
Fix receive_message tests
8a6fb0e
Reformat docstring
bc8e108
boto3 import changes for CI
759e09e
skip tests if boto3 not installed
c4b5564
skip tests if boto3 not installed
90c23b0
flake8
1389269
Merge commit 'b1169d7f5e564bae85f0026af0e58d2457d56ae2'
revmischa cd29d56
Merge remote-tracking branch 'pr/boto3-service-resource'
revmischa 2d492a4
noboto
revmischa 57ea7f1
ditching boto2. got queue URL fetching, async HTTP request generation…
revmischa fbab896
request signing working kinda
revmischa f8f568a
async parsing of SQS message response more or less working
revmischa 053db8c
botocore sqs dep
revmischa bf8148e
ripping out more old boto2 stuff
revmischa aebabd8
removing tests that are no longer valid with boto3/SQS
revmischa 17f4ab0
fix boto3 dep, min version and no botocore
revmischa a446e9d
no boto2 for test
revmischa b4911a4
cleaning up some SQS tests. fixing header parsing of response to msg
revmischa 5729ff8
fixing some sqs tests
revmischa 07bf709
removing response-parsing tests that are no longer necessary as we're…
revmischa b28bc7c
fixing more SQS tests
revmischa e67ec19
wants a region
revmischa 78158a9
trying to fix py2 parsing of sqs message
revmischa 1708986
lint
revmischa fefd287
py2/py2 message header parsing stupidness
revmischa 56a38f0
forgot
revmischa a8c551f
python 2 sux
revmischa 7c04093
flake8
revmischa b137cd3
Import boto3 from the right place
revmischa 7377d71
Changes
adamszeptycki 87d5f88
Update encode fuction
adamszeptycki e26deb7
Fix lint
adamszeptycki 483f5bd
remove some unused things
revmischa 4829931
Merge branch 'noboto2' of github.com:jetbridge/kombu into noboto2
revmischa c2d4e1a
removing unused stuff
revmischa 6c09344
ugh
revmischa a738a00
ugh
revmischa ec7d0bf
ugh
revmischa 1659c6c
landscape ignoring
revmischa 06b56a4
shut up, landscape
revmischa 5f66684
Merge branch 'master' into noboto2
auvipy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,26 @@ | ||
# -*- coding: utf-8 -*- | ||
"""Amazon boto interface.""" | ||
"""Amazon boto3 interface.""" | ||
from __future__ import absolute_import, unicode_literals | ||
|
||
try: | ||
import boto | ||
except ImportError: # pragma: no cover | ||
boto = get_regions = ResultSet = RegionInfo = XmlHandler = None | ||
import boto3 | ||
from botocore import exceptions | ||
from botocore.awsrequest import AWSRequest | ||
from botocore.response import get_response | ||
except ImportError: | ||
boto3 = None | ||
|
||
class _void(object): | ||
pass | ||
AWSAuthConnection = AWSQueryConnection = _void # noqa | ||
|
||
class BotoError(Exception): | ||
class BotoCoreError(Exception): | ||
pass | ||
exception = _void() | ||
exception.SQSError = BotoError | ||
exception.SQSDecodeError = BotoError | ||
else: | ||
from boto import exception | ||
from boto.connection import AWSAuthConnection, AWSQueryConnection | ||
from boto.handler import XmlHandler | ||
from boto.resultset import ResultSet | ||
from boto.regioninfo import RegionInfo, get_regions | ||
exceptions = _void() | ||
exceptions.BotoCoreError = BotoCoreError | ||
AWSRequest = _void() | ||
get_response = _void() | ||
|
||
|
||
__all__ = [ | ||
'exception', 'AWSAuthConnection', 'AWSQueryConnection', | ||
'XmlHandler', 'ResultSet', 'RegionInfo', 'get_regions', | ||
'exceptions', 'AWSRequest', 'get_response' | ||
] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit of cleanup needed here