Commit Graph

3060 Commits

Author SHA1 Message Date
Asif Saif Uddin (Auvi) 9272bd6bb1 changelog for 4.6.5 2019-09-30 19:22:33 +06:00
Asif Saif Uddin 2d72047861
pin py-amqo to 2.5.2 2019-09-30 19:09:01 +06:00
Shekhar Kamble c6b09a3ab5 fixes #1097 (#1099)
* sanitise url when include_password is false  (fixes #1085)

* fix flake8 error

* fixes #1097

* fix flake8 errors
2019-09-10 22:46:13 +06:00
Shekhar Kamble fcecc30aed sanitise url when include_password is false (fixes #1085) (#1095)
* sanitise url when include_password is false  (fixes #1085)

* fix flake8 error
2019-09-03 14:57:27 +03:00
Matt Davis 2f6f5f6a5d Issue #1087 redis fix (#1089)
* issue-1087 Revert _lookup api and correct redis implemetnation.  Update variable naming to be self documenting and more readable by non native speakers.  Major overhaul of redis test cases by adding more full featured fakeredis module.

* Add more test cases to boost coverage of kombu redis transport.

* Refactor the producer consumer test cases to be based on original mocks and be passing

* Fix lingering line length issue in test.
2019-08-31 23:54:01 +06:00
Matt Davis 8a974955a8 issue-1035 it might just work to include the prior version which was able to upload the various binary wheels to pypi. (#1083) 2019-08-18 10:40:41 +06:00
Asif Saif Uddin (Auvi) 5b44bf94fa changelog for 4.6.4 2019-08-14 22:37:41 +06:00
Asif Saif Uddin ab35032d05
bump py-amqp to 2.5.1 2019-08-14 22:11:46 +06:00
Eric Higdon 5f93e868cf Make sure that max_retries=0 is treated differently than None (#1080)
* Make sure that max_retries=0 is treated differently than None

When max_retries=0, it should not retry at all instead of retrying infinitely.

* retry_always should use max_retries=None instead of 0.

* Added test for zero retries

* Removed Offending spaces from blank line
2019-08-13 23:51:40 +06:00
Marcin Puhacz 0ad7d08c4c Fixing MongoDB backend to work properly with TTL (#1076)
* Fixing MongoDB backend to work properly with TTL
Bumping pymongo version to 3.8.0

* Updating authors

* Adding dependencies to travis config

* Fixing travis test cases

* Changing pymongo version to align with mongo result backend
2019-08-07 15:06:13 +03:00
David Szotten 193054d243 Switch from pkg_resources importlib-metadata (#1071)
See e.g. https://github.com/pypa/setuptools/issues/510#issuecomment-463667124

On a moderatly large project (~200 packages) at $work this saves ~150 ms on
`python -c 'from kombu import Exchange'`
2019-07-06 00:33:35 +06:00
Asif Saif Uddin 052f7601d3
Revert "Revert "Use SIMEMBERS instead of SMEMBERS to check for queue (redis broker) (#1041)" (#1058)" (#1068)
This reverts commit fcb8e05cc9.
2019-06-29 14:24:27 +06:00
Matt Davis ac6c7b9754 Issue 129 fix maybe declare (#1066)
* Factor out the binding of channel to entity into a method that can be shared and does not use assert.

* do not use assertion in production because it can be stripped in optimize and is best left for unit tests.

* dont reassign entity here because it breaks a bunch of tests.

* fix pydoc complaints

* Add TDD style test that fails in master and passes in my branch

* finish refactor of existing maybe_declare tests to use shared fixtures

* py2/py3 print difference means skip printing.

* fix pep8 line length
2019-06-29 11:34:35 +06:00
Eugene Beseda ffabaf31dd don't stop receiving tasks on 503 SQS error. (#1064)
* don't stop receiving tasks on 503 SQS error.

* fix linter errors
2019-06-25 00:18:15 +06:00
ngie-eign ec4313b034 Allow users to switch URLs while omitting the resource identifier (#1032)
Prior to this change, one needed to specify a URL using a URI
identifier, e.g., `pyamqp://foo.bar`. This change makes it so calling
`.switch(..)` again results in switching the host, not switching the
resource identifier.

This simplifies setting up connections with just hostnames specifying
the resource identifier once, separately.

Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
2019-06-24 11:39:18 +06:00
Bruno Alla ee4e7bd29b Fix broken build steps (#1062)
* Fix broken build steps

- Fix pydocstyle linting error
- Move apicheck to Python 3 to be able to install Sphinx 2.0+
  The rest will be moved when Python 2 is dropped

* Move pydocstyle linting steps to Python 3.6
2019-06-16 22:45:52 +06:00
Asif Saif Uddin 568dcd4189 Version 4.6.3 2019-06-15 03:29:22 +06:00
Asif Saif Uddin b91c81be43
Revert "Use fastuuid on CPython>=3.5 (#1056)" (#1061)
This reverts commit f9fbd8eb48.
2019-06-15 03:25:50 +06:00
Asif Saif Uddin 17d0ce18ef version 4.6.2 2019-06-15 00:35:43 +06:00
Eugene Beseda 73bed5f7e5 return an empty list on SQS internal error. (#1059)
* return empty list on SQS internal error.

* add test for on_list_ready error codes
2019-06-13 20:27:27 +06:00
Asif Saif Uddin fcb8e05cc9
Revert "Use SIMEMBERS instead of SMEMBERS to check for queue (redis broker) (#1041)" (#1058)
This reverts commit 73d2219887.
2019-06-11 17:49:25 +06:00
Omer Katz f9fbd8eb48
Use fastuuid on CPython>=3.5 (#1056)
* Use fastuuid on CPython>=3.5.

* Only install fastuuid on Linux.

* For some reason we're stillgetting the thrusty build env.
Specify xenial explictly.

* Specify Python versions for lint stages.

* Ensure pycurl deps are installed.

* Run update before.

* Upgrade tox and dependencies.

* Happify docstyle.
2019-06-10 18:14:25 +03:00
Asif Saif Uddin 44f0a4a88f
code updates (#1057) 2019-06-09 22:48:15 +06:00
Asif Saif Uddin 732353b80a
re order test matrix 2019-06-09 13:48:03 +06:00
Asif Saif Uddin 3e9bb44984 style n lint 2019-06-06 11:23:10 +06:00
Asif Saif Uddin 0f891967b3 version 4.6.1 2019-06-06 10:15:12 +06:00
Bruno Alla e65bddb9f5 Use a sentinel value as default instead of None (#1055)
The build from Celery is broken because one test tries to enable all serializers by calling `disable_insecure_serializers(allowed=None)``, but because `None` is the default value, the function fallback to the default behaviour.

Use a sentinel value as default instead of `None` should fix this.
2019-06-06 01:23:11 +06:00
Gabriele Santomaggio 772f1d7518 Add events field on memory channel (#1053)
* Add events field on memory channel

Part of https://github.com/celery/kombu/issues/1050, with this fix
the function does not raise the exception.
The init `defaultdict(set)` is the same init from amqp lib.

* Add unit test

* Add more detail test

* FIx flake8
2019-06-04 19:28:02 +06:00
Asif Saif Uddin f4c05ebf18 Merge branch 'master' of https://github.com/celery/kombu 2019-05-30 17:13:15 +06:00
Asif Saif Uddin 2c470ba457 version 4.6.0 2019-05-30 17:13:07 +06:00
Asif Saif Uddin 09adcc0caa
drop python 3.4 2019-05-30 17:12:32 +06:00
Asif Saif Uddin b20c8e0e7b
min 2.5 pyamqp 2019-05-30 17:09:37 +06:00
Asif Saif Uddin 1e3b093277
update travis 2019-05-29 19:46:37 +06:00
Stevan Milic 73d2219887 Use SIMEMBERS instead of SMEMBERS to check for queue (redis broker) (#1041)
* Add `_lookup_direct` method to virtual channel. (#994)

Add possibility to optimize lookup for queue in direct
exchange set.

* Add `_lookup_direct` method to redis virtual channel. (#994)

Use `SISMEMBER` instead of `SMEMBERS` command to check if queue
exists in a set. Time complexity is increased from O(N) to O(1)
where N is the set cardinality.
2019-05-29 19:45:09 +06:00
Asif Saif Uddin d4eab78ab4
create sponsor button 2019-05-29 14:36:29 +06:00
Asif Saif Uddin 0c1116e83d
added download badge 2019-05-25 22:59:18 +06:00
Omer Katz c1b1010daa Include priority in properties only if it's not None. (#1038)
Since we attempt to serialize the priority property if it exists in the dictionary (See 3fa1d38c4e/Modules/_librabbitmq/connection.c (L739)) it must be an integer.

Fixes celery/celery#5340.
2019-05-22 15:25:52 +06:00
Asif Saif Uddin 57d2ec8b65
update pypy (#1046) 2019-05-22 15:17:18 +06:00
Asif Saif Uddin 9f66a26c3f
drop py34 2019-05-22 14:53:59 +06:00
Omer Katz e83f1c5371 Fix windows build (#1044)
* Fix requirements for CI.

* Try to skip PyCurl on Windows CI when testing 3.7.

* Fix apicheck job.
2019-05-16 00:37:18 +06:00
Omer Katz a3e6f5f53f Drop Python 3.4 from the Windows build as well. 2019-05-15 12:52:01 +03:00
Omer Katz c5845ba950
Added an index with windows wheels for lzma. (#1043) 2019-05-15 12:51:23 +03:00
Asif Saif Uddin 066de17200
fixed packaging issue. 2019-05-12 17:54:26 +06:00
Asif Saif Uddin 19ffbff0e6
Changed test and lint build order 2019-05-06 14:41:33 +06:00
Asif Saif Uddin ca1f6399e5
dropped python 3.4 2019-05-06 14:40:52 +06:00
Todd Cook 95e148a547 Removed dangerous default mutable arguments from function definitions… (#1040)
* Removed dangerous default mutable arguments from function definitions where appropriate.

* fixes for lint error
2019-04-25 11:37:41 +06:00
Rohan McGovern 57f464895d qpid: ensure supported exchange types are declared (#1034)
This is a follow-up to ddba8aeaf0. Prior to that commit,
"implements" was missing entirely for qpid. The earlier commit
added it, but only declared that the transport was async-capable.

Turns out it's important also to declare the supported exchange
types. In particular, if the transport doesn't declare support
for the 'fanout' exchange type, pidbox wouldn't be used[1] and so
it would still not be possible to revoke a task with terminate=True
when using the qpid transport.

[1] https://github.com/celery/celery/commit/2f58c35340f648
2019-04-04 10:56:43 +03:00
Omer Katz fcc4c620bf Rename environments. 2019-04-03 11:54:49 +03:00
Omer Katz d8d523510b Make tox pick the correct compiler for Windows. 2019-04-03 11:52:30 +03:00
Omer Katz f3326a417e Run Windows build using tox. 2019-04-03 10:49:20 +03:00