Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix Celery SQS support using celery[sqs] extras (#17379)
Mario Gomes15b815ec7337
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 951178fd39..66390b684c 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -62,6 +62,6 @@ All notable, unreleased changes to this project will be documented in this file.- Fix checkout funds releasing task - #17198 by @IKarbowiak- Fixed 'healthcheck' middleware (`/health/` endpoint) not forwarding incoming traffic whenever the protocol wasn't HTTP (such as WebSocket or Lifespan) - #17248 by @NyanKiyoshi- Added support for the AWS_S3_URL_PROTOCOL environment variable - #17305 by @p-febis-- Fixed pycurl dependency and required system libraries to fix Celery worker issues when using SQS by @mariobrgomes+- Fixed Celery worker issues when using SQS by using celery[sqs] extras instead of direct pycurl dependency - by @mariobrgomes- Added [`alg`](https://datatracker.ietf.org/doc/html/rfc7517#section-4.4) key to JWKS available at `/.well-known/jwks.json` - #17363 by @lkostrowski- `checkout.shippingMethods` and `checkout.availableShippingMethods` will no longer return external shipping methods if their currency differs from the checkout's currency - #17350 by @korycinsdiff --git a/Dockerfile b/Dockerfileindex e289ecbee5..744c155379 100644--- a/Dockerfile+++ b/Dockerfile@@ -3,7 +3,6 @@ FROM python:3.12 AS build-pythonRUN apt-get -y update \&& apt-get install -y gettext \- libcurl4-openssl-dev libssl-dev \# Cleanup apt cache&& apt-get clean \&& rm -rf /var/lib/apt/lists/*@@ -31,6 +30,7 @@ RUN apt-get update \libtiff6 \libwebp7 \libpq5 \+ # Required by celery[sqs] which uses pycurl for AWS SQS supportlibcurl4 \shared-mime-info \mime-support \diff --git a/poetry.lock b/poetry.lockindex 223498a42b..9417fbc727 100644--- a/poetry.lock+++ b/poetry.lock@@ -416,14 +416,20 @@ files = [[package.dependencies]billiard = ">=4.2.0,<5.0"+boto3 = {version = ">=1.26.143", optional = true, markers = "extra == \"sqs\""}click = ">=8.1.2,<9.0"click-didyoumean = ">=0.3.0"click-plugins = ">=1.1.1"click-repl = ">=0.2.0"-kombu = ">=5.3.4,<6.0"+kombu = [+ {version = ">=5.3.4,<6.0"},+ {version = ">=5.3.4", extras = ["sqs"], optional = true, markers = "extra == \"sqs\""},+]+pycurl = {version = ">=7.43.0.5", optional = true, markers = "sys_platform != \"win32\" and platform_python_implementation == \"CPython\" and extra == \"sqs\""}python-dateutil = ">=2.8.2"redis = {version = ">=4.5.2,<4.5.5 || >4.5.5,<6.0.0", optional = true, markers = "extra == \"redis\""}tzdata = ">=2022.7"+urllib3 = {version = ">=1.26.16", optional = true, markers = "extra == \"sqs\""}vine = ">=5.1.0,<6.0"[package.extras]@@ -2269,7 +2275,10 @@ files = [[package.dependencies]amqp = ">=5.1.1,<6.0.0"+boto3 = {version = ">=1.26.143", optional = true, markers = "extra == \"sqs\""}+pycurl = {version = ">=7.43.0.5", optional = true, markers = "sys_platform != \"win32\" and platform_python_implementation == \"CPython\" and extra == \"sqs\""}tzdata = {version = "*", markers = "python_version >= \"3.9\""}+urllib3 = {version = ">=1.26.16", optional = true, markers = "extra == \"sqs\""}vine = "5.1.0"[package.extras]@@ -3722,6 +3731,7 @@ description = "PycURL -- A Python Interface To The cURL library"optional = falsepython-versions = ">=3.5"groups = ["main"]+markers = "sys_platform != \"win32\" and platform_python_implementation == \"CPython\""files = [{file = "pycurl-7.45.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:247b4af8eab7d04137a7f1a98391930e04ea93dc669b64db5625070fe15f80a3"},{file = "pycurl-7.45.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:561f88697f7540634b1c750146f37bdc0da367b15f6b4ab2bb780871ee6ab005"},@@ -5805,4 +5815,4 @@ type = ["pytest-mypy"][metadata]lock-version = "2.1"python-versions = "~3.12"-content-hash = "ee3d1bdbc410a32fc1c6e9e551aa0d5a57b6ab21f0e1203272e1ebaa90f233fc"+content-hash = "388145653cfa58862a66f9d2f6adacdfe4c064ad58e5d7583bed9ab3c40ca8ff"diff --git a/pyproject.toml b/pyproject.tomlindex 210b5b6e7e..256037afcc 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -102,7 +102,6 @@ package-mode = falseprices = "^1.0"promise = "^2.3"pybars3 = "^0.9.7"- pycurl = "^7.45.0"pyjwt = "^2.10.1"python-dateutil = "^2.8.2"python-http-client = "^3.3.7"@@ -125,7 +124,7 @@ package-mode = false[tool.poetry.dependencies.celery]version = ">=4.4.5,<6.0.0"- extras = [ "redis" ]+ extras = [ "redis", "sqs" ][tool.poetry.dependencies.django-storages]version = "^1.11"@@ -185,7 +184,7 @@ extend_exclude = ["conftest\\.py", ".*/conftest\\.py", ".*/tests/.*"][tool.deptry.per_rule_ignores]DEP001 = ["pkg_resources"]- DEP002 = ["azure-common", "azure-storage-blob", "azure-storage-common", "django-redis", "psycopg", "pyxb", "pycurl"]+ DEP002 = ["azure-common", "azure-storage-blob", "azure-storage-common", "django-redis", "psycopg", "pyxb"][tool.django-stubs]django_settings_module = "saleor.settings"