Commit Graph

2997 Commits

Author SHA1 Message Date
Omer Katz c1351f59df
Use pytest-sugar for output. 2018-05-20 11:02:41 +03:00
Asif Saifuddin Auvi 629879b422
clened up redundant call of PY3 constants (#856) 2018-04-30 00:20:05 +06:00
Asif Saifuddin Auvi 491d7f389b
used unittest and remove unittest2 (#855) 2018-04-29 23:46:59 +06:00
Asif Saifuddin Auvi 824491b972
Cleaned up redundant PY3 constants (#854)
* Cleaned up redundent PY3 constants in utils/encoding

* Cleaned up redundent PY3 constants in utils/json

* fixed flake8 error
2018-04-29 22:01:35 +06:00
Alex Hill 0f6ef8c90b Update Changelog for 4.2.0 (#848)
I've gone through the commits since the last tag and added them, grouping the minor tweaks/fixups and doc changes. I think I've got everything.

Incidentally I've left a question in #689 but that needn't prevent release.
2018-04-16 16:39:06 +06:00
Jon Dufresne c9ea79f0f9 Pass python_requires argument to setuptools (#847)
Helps pip decide what version of the library to install.

https://packaging.python.org/tutorials/distributing-packages/#python-requires

> If your project only runs on certain Python versions, setting the
> python_requires argument to the appropriate PEP 440 version specifier
> string will prevent pip from installing the project on other Python
> versions.

https://setuptools.readthedocs.io/en/latest/setuptools.html#new-and-changed-setup-keywords

> python_requires
>
> A string corresponding to a version specifier (as defined in PEP 440)
> for the Python version, used to specify the Requires-Python defined in
> PEP 345.
2018-04-12 17:31:53 +06:00
Radha Krishna. S b19bb3dd32 Fixed mailing list detail (#846)
Fixed mailing list detail in Getting Help section
2018-04-10 00:25:44 +06:00
Alex Hill f246a66bed Prevent spurious exception on Resource.resize(0) (#826)
* Prevent spurious exception on Resource.resize(0)

`Resource.resize()` raises an exception if the pool is in use and the new size is smaller than the old size. However, it also raises this exception when the new size is zero, which should correspond to disabling the pool. Instead of shrinking the pool to zero and releasing all resources, we can simply dequeue all resources and forget about them.

* Add test for removing pool limit when in use
2018-04-08 12:06:02 +06:00
Jonas Lergell fdb8318aaf Add ConsumerProducerMixin to __all__ in mixins.py (#840) 2018-04-02 11:57:42 +03:00
Omer Katz 20aaab49df
Comment out 3.7 since the beta is not available in appveyor. 2018-03-23 10:45:46 +03:00
Thomas Achtemichuk 75695205f6 Rename `async` keyword to `asynchronous` (#839)
* Rename `async` keyword to `asynchronous`

* Fixes #742
* Resolves "DeprecationWarning: 'async' and 'await' will become reserved
  keywords in Python 3.7"

* Address PR feedback

* Update appveyor config

* Rename docs and tests
2018-03-19 19:28:43 +02:00
Omer Katz dba85e2d95
Always report coverage (#837)
* Always report coverage.

* Remove useless coverage env run.

* Remove useless cov testenv.
2018-03-05 23:47:28 +02:00
Omer Katz 7d13f9b95d
Enable pip cache in appveyor. 2018-02-20 12:55:59 +02:00
Asif Saifuddin Auvi e387a16368
update version tag to 4.2.0 2018-02-06 16:24:01 +06:00
John Koehl 39e733c143 Fixes #791 - SQS queue name gets mangled in Python 2.7 environment (#794)
* Fixes #791

* Changing to recommended patch by @georgepsarakis

* Revert "Fixes #791"

This reverts commit 5593505dd9.

* Updated to make tests pass

* Made _ensure_str a private function

* Code formatting for flake8

* Added a mock of the newstr and newbytes classes to create a failing test that simulates the issue with using python-future under 2.7.
2018-01-28 09:21:05 +02:00
Mads Jensen c13d91634d Removed an always true if-check in t/integration/transport.py (#827) 2018-01-27 11:22:49 +02:00
Mads Jensen 537e973e7e Replaced a dict-construct with a dictionary comprehension. (#828) 2018-01-27 11:22:12 +02:00
Harry Moreno 16ea4df217 Fix rabbit and warrens link (#825)
* fixes #793
2018-01-16 09:18:44 +06:00
Arcadiy Ivanov 2f9eb53128 Virtual transport timeout does not supesede period polling (#689)
fixes #688
2018-01-13 22:39:34 +06:00
dust8 e209fa6f84 Fixed ValueError caused by mongodb rc version: invalid literal for in… (#816)
* Fixed ValueError caused by mongodb rc version: invalid literal for int () with base 10

* add test fix ValueError caused by mongodb rc version
2018-01-13 20:52:52 +06:00
Nicolas Delaby 9883a300f6 msgpack package has been renamed (#822)
https://github.com/msgpack/msgpack-python#messagepack-for-python
2018-01-09 18:07:45 +06:00
j2gg0s 066bcab06e Fix typo with Timer's docstring (#821) 2018-01-07 14:22:43 +06:00
Omer Katz 3a7cdb07c9
Make flake8 happy. 2017-12-17 12:15:42 +02:00
Omer Katz 6fb1f33de4
Disable pip progress bar. 2017-12-17 12:03:32 +02:00
Omer Katz 81e52b1a9a
Install sphinx_celery from git for now. (#818) 2017-12-13 10:27:14 +02:00
Felix Yan 9f2fd403ef Fix a typo in transport/mongodb.py (#808) 2017-10-19 13:10:27 +03:00
Jon Dufresne de87d2f1fa Include license file in the generated wheel packages (#807)
The wheel package format supports including the license file. This is
done using the [metadata] section in the setup.cfg file. For additional
information on this feature, see:

https://wheel.readthedocs.io/en/stable/index.html#including-the-license-in-the-generated-wheel-file
2017-10-16 09:10:27 +03:00
Aaron Morris d782a0f7cd Update json utils. (#804)
Some environments bundle versions of simplejson that do not have
JSONDecodeError. Handle ImportErrors in these cases.
2017-10-01 19:16:17 +03:00
Mads Jensen 572a4c02ba Removed some unnecessary variable assignments and fix variable-typo in docs 2017-09-22 22:04:13 +03:00
Colin Jeanne 488ed977e0 Require Redis 2.10.4 or greater (#788)
* Require Redis 2.10.4 or greater

The Redis transport uses the `can_read`'s `timeout` parameter. This parameter was added in 2.10.4.

* Bump the version to what Celery uses
2017-09-08 07:45:35 +03:00
Mads Jensen 65d203c71e Prefer dict literal syntax over dict() (#787)
* Prefer dict literal syntax over dict()

* An overlooked dict-constructor in transport/SQS.py
2017-09-08 07:43:59 +03:00
Omer Katz c292e9d400 Fixed the link to Pyro. Fixes #798. 2017-09-08 07:42:32 +03:00
Wojciech Matyśkiewicz a44763fbef fixed import path to SimpleQueue and SimpleBuffer 2017-09-06 20:21:16 +03:00
David Davis 2a161a4408 Make messages durable by default in qpid (#785)
We were seeing messages disappear in durable queues when restarting
qpid. This coincides with the rabbitmq code (e.g. https://git.io/v7jNV).
2017-08-20 14:32:10 +03:00
Mads Jensen 584451e093 Update links in documentation to either https or to new locations (#786) 2017-08-20 14:31:10 +03:00
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