Commit Graph

2862 Commits

Author SHA1 Message Date
isv1nd 220f3788b8 Invalid indent was fixed. (#778) 2017-08-05 21:36:28 +06:00
Anthony Lukach 0f4da8d450 Pass connection options from broker_options to default_channel (#769)
* Pass connection options from broker_options to default_channel (fixes #765)

* Fixup

* Fixup
2017-08-02 12:06:47 +03:00
Omer Katz 802e77b6c3
Bump version: 4.0.2 → 4.1.0 2017-07-20 19:21:00 +03:00
Geoffrey Bauduin 883aefe84c fix(doc): updating pydoc for redis sentinel (#766)
Signed-off-by: Geoffrey Bauduin <geoffrey.bauduin@corp.ovh.com>
2017-07-18 23:57:56 +06:00
Anthony Lukach 9038f4c4b3 Cleanup Changelog (resolve failing build) (#768)
* Cleanup Changelog

* Fixup
2017-07-18 23:42:36 +06:00
Anthony Lukach 55663e0b2c Bump version in README (#767) 2017-07-18 21:55:40 +06:00
Anthony Lukach fe16de1a1d v4.1.0 Release (#764)
* Prepare v4.1.0 release

* Fix typo

* Mark text as code
2017-07-18 11:58:58 +06:00
Anthony Lukach b1e6fa5bb1 Fix SQS requests and response handling (#754)
* Fix SQS requests and response handling

* Accurately portray empty message response
2017-07-17 18:22:40 +03:00
Gabriel Amram b2f2128928 Fix infinite loop in create_loop (#760)
* Fix infinite loop in create_loop

fixes https://github.com/celery/celery/issues/3712 

Before handling the todo items we "freeze" them by copying them aside and clearing the list.
This way if an item in the todo list appends a new callable to the list itself it will be taken care of in the next iteration of the parent loop instead of producing an infinite loop by adding it to the list we're running on.

* Changed the test to be aligned with the new implementation

* passing flake8

* Avoid copying results with each iteration of the async loop.

* Pop instead of slicing.

* fixed: todos -> todo, fixed test to use MagicMock so we can use the len() method

* MagicMock not supported in 2.7, implemented __len__ on Mock instead

* added entry to changelog
2017-07-10 21:21:49 +03:00
Omer Katz ad54980ddb Bump actual version in the docs. 2017-07-06 16:25:53 +03:00
bmbouter 09bd23bbd8 Adds `multiple` kwarg to Qpid `Channel.basic_ack` (#755)
Celery 4.0.2 passes the `multiple` keyword argument to `basic_ack`.
This did not used to occur with 3.1.20- so this change is only being
merged into the 4.0 branch. The desired functionality of this param is
documented here [0], but the Qpid transport uses UUIDs as the
delivery_tags so we don't have a record of the sequential messages
required to implement this. We use UUIDs as the deliver_tag to avoid
Issue #563.

With the functionality for the `multiple` parameter not implemented, an
AssertionError is raised if Celery attempts to meaningfully use the
`multiple` parameter with the Qpid transport. A developer or user who
encounters this AssertionError should file a bug with Kombu.

[0] http://amqp.readthedocs.io/en/latest/reference/amqp.connection.html#amqp.connection.Connection.Channel.basic_ack

closes #699
2017-06-20 09:10:11 -04:00
Mads Jensen 8fa14ce8d7 E302 violations fixed 2017-06-08 21:13:42 +03:00
Mikhail Elovskikh ba873ba4f2 Fix readpreference option parsing in MongoDB transport (#751)
* Fix readpreference option parsing in MongoDB transport

* Update changelog
2017-06-08 22:41:15 +06:00
Jon Dufresne 645bbd3078 Rename [wheel] section to [bdist_wheel] as the former is legacy (#749)
See:

54ddbcc9ce/wheel/bdist_wheel.py?fileviewer=file-view-default#bdist_wheel.py-119:125

http://pythonwheels.com/
2017-06-02 21:59:57 +06:00
Mads Jensen a600ab87d9 Prefer https over http and updated links to new locations. (#745) 2017-05-30 19:53:40 +06:00
Mads Jensen bc060c7f9c Fixed broken link to AMQP documentation (#743) 2017-05-30 16:23:37 +06:00
Amin Ghadersohi be79b3d4cd Re-Adding support for sqlalchemy as it is needed by Apache project Airflow (#687)
* Re-Adding support for sqlalchemy as it is needed by Apache project Airflow

* Re-Adding support for sqlalchemy as it is needed by Apache project Airflow
2017-05-17 14:17:47 +06:00
Anthony Lukach 25a9e76f3a Prevent SQS from defaulting to localhost hostname (#733)
* Prevent SQS from defaulting to localhost hostname

* Ensure cloned connection maintains NoneType hostname
2017-05-05 21:40:57 +06:00
George Psarakis da047e9c3b Parse password from Redis transport URL (#710) 2017-04-27 10:47:37 +03:00
Robert Kopaczewski 7152705d36 Fix librabbitmq queue handling (#726) 2017-04-27 10:46:04 +03:00
georgepsarakis d27abc837d Use pydocstyle version 1.1.1 for now 2017-04-26 21:45:17 +03:00
georgepsarakis 816e3dcf34 Use ensure_connection to allow broker failover 2017-04-26 21:45:17 +03:00
George Psarakis 259ac2e2bf Add missing function import 2017-04-26 21:44:34 +03:00
George Psarakis a875363730 Test cases for generate_oid 2017-04-26 21:44:34 +03:00
Bill Nottingham 4e28c0b839 Use uuid5() as an option in generate_oid if uuid3 fails.
uuid3() uses md5, which is disallowed on systems running in FIPS mode,
and will cause a traceback if called.
(http://csrc.nist.gov/groups/STM/cavp/validation.html)
2017-04-26 21:44:34 +03:00
c-nichols 075cd73206 Address shortcomings with timeout parameter described in issue #720 (#729) 2017-04-26 12:03:02 +06:00
Dima Kurguzov 221685618f Refactor chroot normalization 2017-04-21 19:29:21 +03:00
Dima Kurguzov 5f35ef996c Fix last chroot character trimming 2017-04-21 19:29:21 +03:00
eavictor 2e528de742 Fix Closed connection and with statement blows up (#721)
https://github.com/celery/kombu/issues/690
Add self.channel.connection check to prevent AttributeError.
2017-04-18 14:40:48 +06:00
Jon Dufresne b734d7a8f5 Fix invalid escape sequence (#717)
Fixes the following warning when running tests on Python 3.6:

DeprecationWarning: invalid escape sequence \.

See:

- https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
- https://bugs.python.org/issue27364
2017-04-17 10:27:15 +06:00
Jon Dufresne b39184c11a Remove deprecated use of StopIteration in generators (#718)
Removes warning during tests:

DeprecationWarning: generator '...' raised StopIteration

For additional information, see:

- https://docs.python.org/3/whatsnew/3.5.html#pep-479-change-stopiteration-handling-inside-generators
- https://www.python.org/dev/peps/pep-0479/
2017-04-17 10:26:21 +06:00
Jon Dufresne ba82a72c21 Add Python 3.6 to CI testing (#716)
Enabled pip cache for Travis CI
2017-04-17 10:24:52 +06:00
Jon Dufresne f4fda3858f Remove print from tests; looks like it was left in from debugging (#719) 2017-04-17 10:24:00 +06:00
georgepsarakis 90149e4c5c PEP8 fix 2017-04-16 11:28:24 +03:00
georgepsarakis b701805cfc Re-enable unit tests and add case for endpoint URL property 2017-04-16 11:28:24 +03:00
georgepsarakis cdbfe9a64e Allow endpoint URL to be specified in the boto3 connection
- Minor fixes after re-enabling unit tests
2017-04-16 11:28:24 +03:00
Anthony Lukach 6c3bb07e19 Bugfix: Support Python 3.4, decode from base64 when converting messag… (#714)
* Bugfix: Support Python 3.4, decode from base64 when converting message to Python

* Use str_to_bytes
2017-04-14 23:43:06 +06:00
Mischa Spiegelmock 129a9e4ed0 Switching to boto3 only (#693)
* 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
2017-04-14 11:22:18 +06:00
Dima Kurguzov bf820b20b0 Fix byte string for kazoo.Queue in Python 3 (#713)
* Fix byte string for kazoo.Queue in Python 3

* Add test for message conversion to bytes in ZooKeeper channel
2017-04-12 11:24:04 +06:00
Michael Montgomery 35270dd970 Fixing sqs drain_events issues (#698) 2017-04-01 22:23:38 +06:00
Matias Insaurralde 3bc3b3d3b6 Add syntax highlighting 2017-03-25 19:13:24 +02:00
Christopher Hoskin 8ef988a0e0 Remove non-Free ICC Profile from kombu.jpg and kombusmall.jpg (#696) 2017-02-21 23:52:39 +06:00
Felix Yan 2940a4b183 Don't modify dict size while iterating over it (#676)
This fixes #675.
2017-02-21 23:52:18 +06:00
Stephen Milner 655d6cdd92 etcd: Replace EtcdError with EtcdException (#683) 2017-01-18 14:06:58 +06:00
Dmitry Dygalo 69989864a4 Fix example in docstring (#679) 2017-01-04 21:41:31 +06:00
Jerry Seutter e2322998fc Fix a broken test in python 3 (#674) 2016-12-24 15:34:28 +06:00
Ask Solem 4a690cef93 Bump version: 4.0.1 → 4.0.2 2016-12-15 15:33:22 -08:00
Ask Solem 9fbda5bc58 Updates Changelog 2016-12-15 15:33:18 -08:00
Ask Solem 34eb5c714b Now depends on amqp 2.1.4 2016-12-15 15:30:53 -08:00
Ask Solem 1464a2afbe Redis: Fixes priority tests 2016-12-08 17:06:12 -08:00