-
-
Notifications
You must be signed in to change notification settings - Fork 940
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Switch Boto2 to Boto3 for SQS messaging * Fixed region support * Add SQS FIFO queue support * Add sensible defaults for message attributes * Asynchronous support, plus boto3 for region endpoint lookups * Clean up imports * Fix Python 2 support * Fix receive_message tests * Reformat docstring * boto3 import changes for CI * skip tests if boto3 not installed * skip tests if boto3 not installed * flake8 * noboto * ditching boto2. got queue URL fetching, async HTTP request generation and signing working. * request signing working kinda * async parsing of SQS message response more or less working * botocore sqs dep * ripping out more old boto2 stuff * removing tests that are no longer valid with boto3/SQS * fix boto3 dep, min version and no botocore * no boto2 for test * cleaning up some SQS tests. fixing header parsing of response to msg * fixing some sqs tests * removing response-parsing tests that are no longer necessary as we're using the botocore response parsing machinery instead of implementing SAX parsing in kombu. * fixing more SQS tests * wants a region * trying to fix py2 parsing of sqs message * lint * py2/py2 message header parsing stupidness * forgot * python 2 sux * flake8 * Import boto3 from the right place * Changes * Update encode fuction * Fix lint * remove some unused things * removing unused stuff * ugh * ugh * ugh * landscape ignoring * shut up, landscape
- Loading branch information
Showing
22 changed files
with
491 additions
and
803 deletions.
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.
129a9e4
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.
π π― π¦ π π― π