Commit Graph

3545 Commits

Author SHA1 Message Date
mbierma 492776eb7f
fix: Prevent redis task loss when closing connection while in poll (#1733)
* Catch brpop before closing connection

* Update unit test

---------

Co-authored-by: mbierma <3448579-mbierma@users.noreply.gitlab.com>
2023-08-15 10:16:49 +06:00
Jason Barnett 6f8676630d
azure service bus: add managed identity support (#1641) 2023-08-14 20:27:15 +03:00
Tomer Nosrati 55370c7e4c
Fixed pre-commit issues (#1773)
* Fixed pre-commit issues

* Excluded kombu/messaging.py and kombu/serialization.py from yesqa pre-commit
2023-08-04 12:12:20 +06:00
pre-commit-ci[bot] 7090de2f90 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v3.9.0 → v3.10.1](https://github.com/asottile/pyupgrade/compare/v3.9.0...v3.10.1)
- [github.com/PyCQA/flake8: 6.0.0 → 6.1.0](https://github.com/PyCQA/flake8/compare/6.0.0...6.1.0)
2023-08-02 11:20:09 +06:00
pre-commit-ci[bot] dc50c0b4f5 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v3.8.0 → v3.9.0](https://github.com/asottile/pyupgrade/compare/v3.8.0...v3.9.0)
2023-07-11 13:14:49 +06:00
JaeyoungHeo c73e560def Remove SimpleQueue import 2023-07-07 20:45:00 +06:00
pre-commit-ci[bot] 82b2529703
[pre-commit.ci] pre-commit autoupdate (#1763)
updates:
- [github.com/asottile/pyupgrade: v3.7.0 → v3.8.0](https://github.com/asottile/pyupgrade/compare/v3.7.0...v3.8.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-04 13:25:20 +03:00
Rafid K 862d0bc728
[fix #1726] Use boto3 for SQS async requests (#1759)
* [fix #1726] Use boto3 for SQS async requests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-06-27 10:06:41 +06:00
pre-commit-ci[bot] 68cb9ce011
[pre-commit.ci] pre-commit autoupdate (#1760)
updates:
- [github.com/PyCQA/autoflake: v2.1.1 → v2.2.0](https://github.com/PyCQA/autoflake/compare/v2.1.1...v2.2.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-06-27 05:02:40 +03:00
Cyril Roelandt 6ef88c3445 Python3.12: fix imports in kombu/utils/objects.py
Consider the following piece of code, very similar to what can be found
in kombu/utils/objects.py:
---8<------------------------------------------------------------------
$ cat  /tmp/x.py
try:
    from functools import _NOT_FOUND
    from functools import cached_property as _cached_property
except ImportError:
    from cached_property import threaded_cached_property as _cached_property
    _NOT_FOUND = object()

print("OK!")
---8<------------------------------------------------------------------

This works well in Python3.11:
---8<------------------------------------------------------------------
$ podman run -it --rm -v /tmp:/tmp python:3.11.4  python /tmp/x.py
OK!
---8<------------------------------------------------------------------

But fails in Python3.12:
---8<------------------------------------------------------------------
$ podman run -it --rm -v /tmp:/tmp python:3.12.0b2  python /tmp/x.py
Traceback (most recent call last):
  File "/tmp/x.py", line 2, in <module>
    from functools import _NOT_FOUND
ImportError: cannot import name '_NOT_FOUND' from 'functools' (/usr/local/lib/python3.12/functools.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/x.py", line 6, in <module>
    from cached_property import threaded_cached_property as _cached_property
ModuleNotFoundError: No module named 'cached_property'
---8<------------------------------------------------------------------

This is because Python3.12 removed functools._NOT_FOUND (see commit
056dfc71dce15f81887f0bd6da09d6099d71f979), which prevents
cached_property from being imported from functools in our code. If the
cached_property library is not installed, then the imports fail.

We should be using two different try/except blocks, but since
functools._NOT_FOUND was defined as "object()" in the standard library
anyway, let's just not bother importing it.
2023-06-22 12:38:35 +06:00
Tomer Nosrati b21592bab3
Doc fix (hotfix for #1755) (#1758) 2023-06-20 23:03:10 +03:00
pre-commit-ci[bot] 18344cd0a4
[pre-commit.ci] pre-commit autoupdate (#1757)
updates:
- [github.com/asottile/pyupgrade: v3.6.0 → v3.7.0](https://github.com/asottile/pyupgrade/compare/v3.6.0...v3.7.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-06-19 22:38:11 +03:00
Tomer Nosrati 18edd4c848 Reverted unwanted constraint introduced in #1629 with max_retries not being able to be None (when it should) 2023-06-19 09:54:28 +06:00
Asif Saif Uddin a32c0c8baf Bump version: 5.3.0 → 5.3.1 2023-06-15 19:14:40 +06:00
Asif Saif Uddin 66c5ac3e4b added changelog for v5.3.1 2023-06-15 19:12:10 +06:00
Sebastian Kreft dd341709bf fix: allow deserializing any version of UUID
In PR #1575 a new serializer for UUIDs was introduced, however it fails when deserializing UUIDs which version is not within 1 and 5. Given that there's a new standard (https://datatracker.ietf.org/doc/html/draft-peabody-dispatch-new-uuid-format-04) ganining traction that introduces UUIDs v6, v7 and v8, we change the code to allow such versions.

In the test, we generate one UUID for each version using the package `uuid6` (https://github.com/oittaa/uuid6-python)
2023-06-15 18:57:24 +06:00
pre-commit-ci[bot] ccd63ea2d2 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v3.3.1 → v3.6.0](https://github.com/asottile/pyupgrade/compare/v3.3.1...v3.6.0)
- [github.com/PyCQA/autoflake: v2.1.0 → v2.1.1](https://github.com/PyCQA/autoflake/compare/v2.1.0...v2.1.1)
- [github.com/asottile/yesqa: v1.4.0 → v1.5.0](https://github.com/asottile/yesqa/compare/v1.4.0...v1.5.0)
2023-06-13 09:08:57 +06:00
Asif Saif Uddin 6df5ce8775
try python 3.11 on CI (#1425)
* try python 3.10 on CI

* Update .github/workflows/ci.yaml

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>

* Update .github/workflows/ci.yaml

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>

* Update .github/workflows/ci.yaml

* Update .github/workflows/ci.yaml

---------

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2023-06-08 15:53:56 +06:00
Asif Saif Uddin 01f41a5db9
Update PyCurl version in SQS (#1747) 2023-06-07 17:38:04 +06:00
Asif Saif Uddin f0645fdaa2
Update librabbitmq restrict py3.11 (#1746) 2023-06-07 17:36:30 +06:00
Asif Saif Uddin a5a04e169b Update pycurl version 2023-06-07 17:32:16 +06:00
Asif Saif Uddin e56ea74691 Bump version: 5.3.0rc2 → 5.3.0 2023-06-03 21:10:20 +06:00
Asif Saif Uddin 1b50f0f4e9 added changelog highlights for v5.3.0 2023-06-03 21:04:21 +06:00
Asif Saif Uddin b25aa0448e Update lzma.txt
drop backports.lzma as kombu is py 3.8+ only
2023-06-03 11:14:21 +06:00
woutdenolf 46a67a4854 the actual timezone data is an optional dependency 2023-06-01 18:17:28 +06:00
Asif Saif Uddin 925e9e69ee Bump version: 5.3.0rc1 → 5.3.0rc2 2023-05-31 11:05:07 +06:00
Asif Saif Uddin 29d2a6f08c added changelog entry for v5.3.0rc2 2023-05-31 11:00:30 +06:00
Asif Saif Uddin 2df5be26ea
Update sqs.txt (#1739)
re adjust
2023-05-31 10:45:32 +06:00
Asif Saif Uddin c0be006efa
Update docs.txt (#1738) 2023-05-31 10:44:43 +06:00
Asif Saif Uddin a67debb9f3
Update test-ci.txt (#1736)
* Update test-ci.txt

* Update requirements/test-ci.txt

* Update requirements/test-ci.txt

* Update requirements/test-ci.txt

* Update requirements/test-ci.txt

* Update requirements/test-ci.txt
2023-05-31 09:50:10 +06:00
Asif Saif Uddin 112224e3e6
Update redis.txt
redis>=4.5.2
2023-05-30 11:24:02 +06:00
Daniel Garcia Moreno cb54c33f19 Support redis >= 4.5.2
The redis-py 4.5.2 changes the UnixDomainSocketConnection class so now
it inherits from AbstractConnection:
https://github.com/redis/redis-py/releases/tag/v4.5.2

This patch makes sure that the health_check_interval parameter is
checked for the __init__ method of the main class and also the bases, so
it doesn't fail with the newer version of redis-py.
2023-05-29 19:56:28 +06:00
woutdenolf 9abe689cd4
add missing zoneinfo dependency (#1732) 2023-05-26 12:20:39 +03:00
Asif Saif Uddin e5299379b0 Bump version: 5.3.0b3 → 5.3.0rc1 2023-05-24 20:53:17 +06:00
Asif Saif Uddin a759cef476 updated email 2023-05-24 20:49:11 +06:00
Asif Saif Uddin 2bb1415343 added changelog entry for v5.3.0rc1 2023-05-24 20:47:23 +06:00
Asif Saif Uddin a93b28fbfa
move shebang to python 3 2023-05-24 20:27:17 +06:00
Asif Saif Uddin d5c3b7543e
move shebang to py3 2023-05-24 20:26:40 +06:00
Asif Saif Uddin 6fe81450b9
Update sqs.txt 2023-05-24 20:12:16 +06:00
Asif Saif Uddin 0167778bc9
revert back to pyro4 for now 2023-05-24 18:45:20 +06:00
Asif Saif Uddin 45116797e7
Update sqs.txt (#1729) 2023-05-19 10:28:14 +06:00
Mehraz Hossain Rumman 360e817c68 moved shebang to python3 2023-05-18 20:50:17 +06:00
Asif Saif Uddin da908b281b
Update confluentkafka.txt version (#1727) 2023-05-18 12:41:32 +06:00
Asif Saif Uddin 098555ed40
clean setuptool imports to remove distutils import shim 2023-05-16 20:17:43 +06:00
Stevie Gayet 2ebb698932
chore(requirements): improve requirements management (#1710)
* chore(py2): get rid of Python 2 specific requirements

* chore(ci-windows): unify linux and windows requirements

---------

Co-authored-by: Stevie Gayet <stegayet@users.noreply.github.com>
2023-05-16 19:34:34 +06:00
Asif Saif Uddin e0392add4c
Delete test-ci-py2.txt 2023-05-16 19:33:46 +06:00
Asif Saif Uddin 02509ac85e
Delete extra directory 2023-05-15 09:54:12 +06:00
Asif Saif Uddin 9e8d07cafe
Update pkgutils.txt 2023-05-15 09:32:50 +06:00
Stevie Gayet 5e30a6941f
chore(python): remove Python 3.7 support (#1708)
* chore(python): remove Python 3.7 support

* Update setup.py

---------

Co-authored-by: Stevie Gayet <stegayet@users.noreply.github.com>
Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
2023-05-15 09:23:25 +06:00
Asif Saif Uddin 221f34c6e0
Update pkgutils.txt (#1722) 2023-05-15 08:48:57 +06:00