Commit Graph

3499 Commits

Author SHA1 Message Date
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
Stevie Gayet c03335e167
chore(ci): fix lint job (#1718)
* chore(ci): align python version between matrix and tox config

* chore(pydocstyle): upgrade pydocstyle to 6.3.0

* chore(pydocstyle): exclude rules

* fix(mypy): fix `[truthy-function]` error

* fix(pydocstyle): fix D205 rule

* fix(pydocstyle): fix D212 rule

* fix(pydocstyle): fix D407 rule

* fix(pydocstyle): fix D412 rule

* fix(pydocstyle): fix D406 rule

* fix(pydocstyle): fix D411 rule

---------

Co-authored-by: Stevie Gayet <stegayet@users.noreply.github.com>
2023-05-15 08:11:34 +06:00
Stevie Gayet 8426032ae2
chore(build): clean `setup.py` (#1711)
* chore(build): remove deprecated `zip_safe` parameter

* chore(build): remove `cmdclass` parameter

---------

Co-authored-by: Stevie Gayet <stegayet@users.noreply.github.com>
2023-05-14 21:12:24 +06:00
Stevie Gayet ae64a9f8ee
chore(ci): improve CI (#1707)
* chore(ci): use pypy3.9 to get rid of useless step

* chore(ci): pin setup-python to v4

---------

Co-authored-by: Stevie Gayet <stegayet@users.noreply.github.com>
2023-05-14 18:13:20 +06:00
Asif Saif Uddin defd50f7f2 Update tox.ini to pin kafka image 2023-05-14 13:22:55 +06:00
Asif Saif Uddin 3a2648207d Update ci.yaml 2023-05-14 13:03:22 +06:00
Kashif Khan ce50cccd32 update to latest ver of sb 2023-05-13 13:48:01 +06:00
Asif Saif Uddin a3c1278fd1
Update sqlalchemy>=1.4.48 (#1703) 2023-05-13 13:45:43 +06:00
Asif Saif Uddin 3e098dc94e
Update redis.txt to 4.3.6 to fix severe issue (#1676)
* Update redis.txt to 4.3.6 to fix severe issue

* Update requirements/extras/redis.txt

* Update requirements/extras/redis.txt
2023-04-19 10:30:53 +06:00
Asif Saif Uddin 0b3c35e6f5
Update test.txt (#1698) 2023-04-19 10:30:02 +06:00
Tom Sparrow 5062d53f94
SQS: avoid excessive GetQueueURL calls by using cached queue url (#1621)
* Fix #1618: avoid re-fetching queue URL when we already have it

`_get_from_sqs` was unnecessarily calling `get_queue_url` every
time even though the only place which calls `_get_from_sqs`
(that is `_get_async`) actually already knows the queue URL.

This change avoids hundreds of `GetQueueUrl` AWS API calls per hour
when using this SQS backend with celery.

Also `connection` is set by the one-and-only caller (and `queue` is
actually the queue name string now anyway so couldn't ever have
`.connection`) so remove the None default and unused fallback code.

* Clarify that `_new_queue` returns the queue URL

It seems that prior to 129a9e4ed0 it returned a queue
object but this is no longer the case so update comments
variable names accordingly to make it clearer.

Also remove the incorrect fallback which cannot
be correct any more given the return value has to
be the queue URL which must be a string.

* Unit test coverage for SQS async codepath

This key code path (which as far as I can see is
the main route when using celery with SQS) was
missing test coverage.

This test adds coverage for:
`_get_bulk_async` -> `_get_async` -> `_get_from_sqs`
2023-04-19 10:01:07 +06:00
Francis Charette-Migneault f86f1fc6e1
fix mongodb transport obsolete calls (#1694)
* fix mongodb transport obsolete calls + add test mock specs to check valid methods

* fix linting
2023-04-18 10:54:17 +06:00
pre-commit-ci[bot] 0dd813a819 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/PyCQA/autoflake: v2.0.2 → v2.1.0](https://github.com/PyCQA/autoflake/compare/v2.0.2...v2.1.0)
2023-04-18 10:38:59 +06:00
Asif Saif Uddin 8d3edf77b5
drop codecov pypi version (#1696) 2023-04-17 14:03:22 +06:00
Tomer Nosrati eea42fb1ac
Add Semgrep CI (#1695)
Co-authored-by: semgrep.dev on behalf of @Nusnus <support@r2c.dev>
2023-04-14 15:04:41 +03:00
Asif Saif Uddin 95f5194a8a
Update pkgutils.txt (#1692) 2023-04-12 13:13:25 +06:00
Asif Saif Uddin eeb13091de
Update azureservicebus.txt (#1693)
cpython only again
2023-04-12 13:12:48 +06:00
Ismael Jiménez Sánchez ff031f73f2
fix: handle keyerror in azureservicebus transport when message is not found in qos and perform basic_ack (#1691)
* fix: handle keyerror when message is not found in qos and perform basic_ack

* fix: added tests for basic_ack

* fix: limit line length
2023-04-11 22:33:26 +06:00
Maxwell Muoto 9659f11ae1
Deprecate pytz and use zoneinfo (#1680)
* Main

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

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

* Fix

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

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

* Fix

* Trigger Build

* Fix

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

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

* Fix

* Fix

* noqas

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

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

* Fix

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

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

* remove unused noqa

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

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

* re-add import

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

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

* Fix

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

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

* Fixes

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

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

* use pytest-freezer (#1683)

* Main

* Trigger Build

* Fixes

* remove

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

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

* lint

* Lint

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
2023-04-09 14:08:23 +06:00
Asif Saif Uddin 2de7f9f038
Update Changelog.rst 5.3.0b2 typo 2023-04-04 21:25:09 +06:00
Asif Saif Uddin 0c9d23cc48
Update sqs.txt typo error 2023-04-04 12:53:32 +06:00
Asif Saif Uddin e52975b1ef
Update pkgutils.txt (#1686) 2023-04-03 15:44:47 +06:00
Asif Saif Uddin 2e7cf80f21
Update brotli.txt (#1685) 2023-04-03 15:38:20 +06:00
Asif Saif Uddin c7e262d82c
Update sqs.txt (#1684) 2023-04-03 15:35:57 +06:00
Asif Saif Uddin 323e32f099
test azureservicebus pure ython beta (#1682) 2023-04-03 14:06:21 +06:00
Asif Saif Uddin 1cd524f98d
use pytest-freezer (#1683) 2023-04-01 14:13:06 +06:00
Asif Saif Uddin 5636900bea Bump version: 5.3.0b2 → 5.3.0b3 2023-03-20 17:01:33 +06:00
Asif Saif Uddin b75822dfa7 added changelog entry for v5.3.0b3 2023-03-20 16:57:11 +06:00
Asif Saif Uddin 91f6b27446
Update azureservicebus.txt cpython only (#1674)
* Update azureservicebus.txt cpython only

* Update azureservicebus.txt
2023-03-20 13:51:53 +06:00
Asif Saif Uddin b310e4f8eb azure-servicebus>=7.8.3 2023-03-20 10:51:17 +06:00
Asif Saif Uddin 376e9293bf azure-storage-queue>=12.6.0 2023-03-19 15:12:59 +06:00
Asif Saif Uddin 77be6e485e Update sqlalchemy.txt 2023-03-19 13:53:07 +06:00
pre-commit-ci[bot] 841b63c30e [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/PyCQA/autoflake: v2.0.1 → v2.0.2](https://github.com/PyCQA/autoflake/compare/v2.0.1...v2.0.2)
2023-03-14 14:00:58 +06:00
Asif Saif Uddin d66c5ced20
Update codeql part to v2 (#1665) 2023-03-13 11:22:16 +06:00
Asif Saif Uddin 208eccefd4
updated python versiions in CI (#1663)
* updated python versiions in CI

* updated python versiions in CI with

* updated tox

* updated ci

* Update .github/workflows/ci.yaml

* Update .github/workflows/ci.yaml

* Update .github/workflows/ci.yaml
2023-03-13 10:57:16 +06:00
Jason R. Coombs c310364cc0 Adapt the mock to correctly mock the behaviors as implemented on Python 3.10. Ref #1663. 2023-03-12 22:33:37 +06:00
Serhii Tereshchenko 35f24f1f01
docs: Add notes for kombu.utils.json.register_type (#1660)
Refs #1590
2023-03-02 16:11:03 +02:00
Serhii Tereshchenko 6fe50f5985
refactor: Refactor utils/json (#1659)
* refactor: Refactor utils/json

* Update kombu/utils/json.py

* Update kombu/utils/json.py

* chore: Use older syntax (no walrus)

* chore: Update doscstrings

* chore: Fix pydocstyle complaints

* chore: Restore previous docstring
2023-03-02 16:18:21 +06:00
Serhii Tereshchenko b4c033d556 Remove unused `_setupfuns` from serialization.py
Looks like `_setupfuns` is unused and should be removed.

If they're used somehow, please explain how, so i can add comment here to avoid future confusion.
2023-03-01 20:54:33 +06:00
Asif Saif Uddin 21d7df29c7 lets check it's compat 2023-02-19 18:07:51 +06:00
pre-commit-ci[bot] e15b6fbd3b [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/PyCQA/autoflake: v2.0.0 → v2.0.1](https://github.com/PyCQA/autoflake/compare/v2.0.0...v2.0.1)
- [github.com/pycqa/isort: 5.11.4 → 5.12.0](https://github.com/pycqa/isort/compare/5.11.4...5.12.0)
2023-02-07 16:11:50 +06:00
Aurelien Gateau 08a997439d Mark methods accepting Connection instances as such
In MaybeChannelBound, the `__call__()`, `bind()` and `maybe_bind()` methods
takes a channel argument. The type annotation say this argument must be a
Channel, but it goes through `maybe_channel()`, so it can also be a
Connection. Update the annotation to accept both Channel and Connection.
2023-02-02 20:14:19 +06:00
Asif Saif Uddin 16b8641c32
sqlalchemy>=1.4.1,<2.1 (#1642)
* sqlalchemy==1.4.46

* Update requirements/extras/sqlalchemy.txt

* bump
2023-02-01 21:47:05 +06:00
Craig Mulligan f907105b72
support sqla v2.0 (#1651)
* support sqla v2.0

* Update kombu/transport/sqlalchemy/models.py

* update (#1652)

---------

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
2023-02-01 21:32:45 +06:00
Asif Saif Uddin c62bdee24e
update (#1652) 2023-02-01 18:10:16 +06:00
Jason Barnett d3ca0d562e azure service bus: add type annotations and use cached property 2023-01-05 00:34:46 +06:00
Jason Barnett 54cd277bc3 add type annotations to kombu/transport/azurestoragequeues 2023-01-03 13:54:25 +06:00