Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Upgrade Saleor to Django version 4.0 (#10518)
Patryk Zawadzki9e2ea5b2f647
diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.ymlindex 9d08d541bf..daf793d42a 100644--- a/.github/workflows/pytest.yml+++ b/.github/workflows/pytest.yml@@ -27,7 +27,7 @@ env:jobs:build:runs-on: ubuntu-latest- container: python:3.8+ container: python:3.9services:postgres:diff --git a/.github/workflows/test-migrations-compatibility.yml b/.github/workflows/test-migrations-compatibility.ymlindex 28bc79b87e..6520a240bd 100644--- a/.github/workflows/test-migrations-compatibility.yml+++ b/.github/workflows/test-migrations-compatibility.yml@@ -15,7 +15,7 @@ env:jobs:build:runs-on: ubuntu-latest- container: python:3.8+ container: python:3.9services:postgres:diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex 3005a601ff..cfc630d0ba 100644--- a/.pre-commit-config.yaml+++ b/.pre-commit-config.yaml@@ -3,7 +3,7 @@ repos:rev: 22.6.0hooks:- id: black- language_version: python3.8+ language_version: python3.9- repo: https://github.com/pre-commit/pre-commit-hooksrev: v4.3.0diff --git a/poetry.lock b/poetry.lockindex 8d44347f7c..fa67d82111 100644--- a/poetry.lock+++ b/poetry.lock@@ -257,14 +257,14 @@ uvloop = ["uvloop (>=0.15.2)"][[package]]name = "boto3"-version = "1.24.61"+version = "1.24.62"description = "The AWS SDK for Python"category = "main"optional = falsepython-versions = ">= 3.7"[package.dependencies]-botocore = ">=1.27.61,<1.28.0"+botocore = ">=1.27.62,<1.28.0"jmespath = ">=0.7.1,<2.0.0"s3transfer = ">=0.6.0,<0.7.0"@@ -273,7 +273,7 @@ crt = ["botocore[crt] (>=1.21.0,<2.0a0)"][[package]]name = "botocore"-version = "1.27.61"+version = "1.27.62"description = "Low-level, data-driven core of boto 3."category = "main"optional = false@@ -371,7 +371,7 @@ s3 = ["boto3 (>=1.9.125)"]slmq = ["softlayer-messaging (>=1.0.3)"]solar = ["ephem"]sqlalchemy = ["sqlalchemy"]-sqs = ["kombu"]+sqs = ["kombu[sqs]"]tblib = ["tblib (>=1.3.0)", "tblib (>=1.5.0)"]yaml = ["PyYAML (>=3.10)"]zookeeper = ["kazoo (>=1.3.1)"]@@ -510,7 +510,7 @@ python-versions = ">=3.6"cffi = ">=1.12"[package.extras]-docs = ["sphinx (>=1.6.5,!=1.8.0,!=3.1.0,!=3.1.1)", "sphinx-rtd-theme"]+docs = ["sphinx (>=1.6.5,!=1.8.0,!=3.1.0,!=3.1.1)", "sphinx_rtd_theme"]docstest = ["pyenchant (>=1.6.11)", "sphinxcontrib-spelling (>=4.0.1)", "twine (>=1.12.0)"]pep8test = ["black", "flake8", "flake8-import-order", "pep8-naming"]sdist = ["setuptools_rust (>=0.11.4)"]@@ -530,8 +530,8 @@ tinycss2 = "*"webencodings = "*"[package.extras]-doc = ["sphinx", "sphinx-rtd-theme"]-test = ["coverage", "pytest", "pytest-cov", "pytest-flake8", "pytest-isort"]+doc = ["sphinx", "sphinx_rtd_theme"]+test = ["coverage[toml]", "pytest", "pytest-cov", "pytest-flake8", "pytest-isort"][[package]]name = "deprecated"@@ -545,7 +545,7 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"wrapt = ">=1.10,<2"[package.extras]-dev = ["PyTest (<5)", "PyTest-Cov (<2.6)", "bump2version (<1)", "configparser (<5)", "importlib-metadata (<3)", "importlib-resources (<4)", "pytest", "pytest-cov", "sphinx (<2)", "sphinxcontrib-websupport (<2)", "tox", "zipp (<2)"]+dev = ["PyTest", "PyTest (<5)", "PyTest-Cov", "PyTest-Cov (<2.6)", "bump2version (<1)", "configparser (<5)", "importlib-metadata (<3)", "importlib-resources (<4)", "sphinx (<2)", "sphinxcontrib-websupport (<2)", "tox", "zipp (<2)"][[package]]name = "dill"@@ -584,17 +584,17 @@ python-versions = "*"[[package]]name = "django"-version = "3.2.15"-description = "A high-level Python Web framework that encourages rapid development and clean, pragmatic design."+version = "4.0.7"+description = "A high-level Python web framework that encourages rapid development and clean, pragmatic design."category = "main"optional = false-python-versions = ">=3.6"+python-versions = ">=3.8"[package.dependencies]-asgiref = ">=3.3.2,<4"+asgiref = ">=3.4.1,<4"bcrypt = {version = "*", optional = true, markers = "extra == \"bcrypt\""}-pytz = "*"sqlparse = ">=0.2.2"+tzdata = {version = "*", markers = "sys_platform == \"win32\""}[package.extras]argon2 = ["argon2-cffi (>=19.1.0)"]@@ -647,7 +647,7 @@ typing-extensions = "*"[package.extras]dev = ["black", "django", "djangorestframework", "graphene-django", "pytest", "pytest-django", "tox"]-maintainer = ["django", "transifex-client", "zest.releaser"]+maintainer = ["django", "transifex-client", "zest.releaser[recommended]"]pyuca = ["pyuca"]test = ["djangorestframework", "graphene-django", "pytest", "pytest-cov", "pytest-django"]@@ -767,7 +767,7 @@ phonenumberslite = ["phonenumberslite (>=7.0.2)"][[package]]name = "django-prices"-version = "2.2.0"+version = "2.3.0"description = "Django fields for the prices module"category = "main"optional = false@@ -775,20 +775,20 @@ python-versions = "*"[package.dependencies]Babel = ">=2.2"-Django = ">=2.2,<4"+Django = ">=3.0,<5"enmerkar = ">=0.7.1"prices = ">=1.0.0"[[package]]name = "django-prices-openexchangerates"-version = "1.1.0"+version = "1.2.0"description = "openexchangerates.org support for django-prices"category = "main"optional = falsepython-versions = "*"[package.dependencies]-Django = ">=1.11"+Django = ">=3.0"django-prices = ">=1.0.0"prices = ">=1.0.0"@@ -1299,6 +1299,9 @@ category = "main"optional = falsepython-versions = ">=3.5"+[package.dependencies]+setuptools = ">=3.0"+[package.extras]eventlet = ["eventlet (>=0.24.1)"]gevent = ["gevent (>=1.4.0)"]@@ -1448,7 +1451,7 @@ thrift = "*"tornado = ">=4.3"[package.extras]-tests = ["codecov", "coverage", "flake8", "flake8-quotes", "flake8-typing-imports", "mock", "mypy", "opentracing_instrumentation (>=3,<4)", "prometheus_client (==0.11.0)", "pycurl", "pytest", "pytest-benchmark", "pytest-cov", "pytest-localserver", "pytest-timeout", "pytest-tornado", "tchannel (==2.1.0)"]+tests = ["codecov", "coverage", "flake8", "flake8-quotes", "flake8-typing-imports", "mock", "mypy", "opentracing_instrumentation (>=3,<4)", "prometheus_client (==0.11.0)", "pycurl", "pytest", "pytest-benchmark[histogram]", "pytest-cov", "pytest-localserver", "pytest-timeout", "pytest-tornado", "tchannel (==2.1.0)"][[package]]name = "jinja2"@@ -1530,7 +1533,7 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*"[package.extras]cssselect = ["cssselect (>=0.7)"]html5 = ["html5lib"]-htmlsoup = ["beautifulsoup4"]+htmlsoup = ["BeautifulSoup4"]source = ["Cython (>=0.29.7)"][[package]]@@ -1670,6 +1673,9 @@ category = "dev"optional = falsepython-versions = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*"+[package.dependencies]+setuptools = "*"+[[package]]name = "oauthlib"version = "3.2.0"@@ -1703,7 +1709,7 @@ optional = falsepython-versions = "*"[package.extras]-tests = ["doubles", "flake8", "flake8-quotes", "gevent", "mock", "pytest", "pytest-cov", "pytest-mock", "six (>=1.10.0,<2.0)", "sphinx", "sphinx-rtd-theme", "tornado"]+tests = ["Sphinx", "doubles", "flake8", "flake8-quotes", "gevent", "mock", "pytest", "pytest-cov", "pytest-mock", "six (>=1.10.0,<2.0)", "sphinx_rtd_theme", "tornado"][[package]]name = "packaging"@@ -1959,8 +1965,8 @@ optional = falsepython-versions = ">=3.7"[package.extras]-doc = ["sphinx", "sphinx-rtd-theme"]-test = ["coverage", "pillow", "pytest", "pytest-cov", "pytest-flake8", "pytest-isort", "pytest-xdist"]+doc = ["sphinx", "sphinx_rtd_theme"]+test = ["coverage[toml]", "pillow", "pytest", "pytest-cov", "pytest-flake8", "pytest-isort", "pytest-xdist"][[package]]name = "pyflakes"@@ -2034,7 +2040,7 @@ pylint-plugin-utils = ">=0.7"[package.extras]for_tests = ["coverage", "django-tables2", "django-tastypie", "factory-boy", "pylint (>=2.13)", "pytest", "wheel"]-with_django = ["django"]+with_django = ["Django"][[package]]name = "pylint-plugin-utils"@@ -2075,8 +2081,8 @@ optional = falsepython-versions = ">=3.7"[package.extras]-doc = ["sphinx", "sphinx-rtd-theme"]-test = ["coverage", "pytest", "pytest-cov", "pytest-flake8", "pytest-isort"]+doc = ["sphinx", "sphinx_rtd_theme"]+test = ["coverage[toml]", "pytest", "pytest-cov", "pytest-flake8", "pytest-isort"][[package]]name = "pytest"@@ -2138,7 +2144,7 @@ pytest = ">=5.4.0"[package.extras]docs = ["sphinx", "sphinx-rtd-theme"]-testing = ["django", "django-configurations (>=2.0)"]+testing = ["Django", "django-configurations (>=2.0)"][[package]]name = "pytest-django-queries"@@ -2157,8 +2163,8 @@ jinja2 = "*"pytest = ">=4.4.0"[package.extras]-dev = ["beautifulsoup4", "lxml", "mock", "pre-commit", "sphinx", "sphinx-rtd-theme"]-test = ["beautifulsoup4", "codecov", "coverage", "lxml", "mock", "pre-commit", "pytest-xdist", "sphinx", "sphinx-rtd-theme", "tox-travis"]+dev = ["beautifulsoup4", "lxml", "mock", "pre-commit", "sphinx", "sphinx_rtd_theme"]+test = ["beautifulsoup4", "codecov", "coverage", "lxml", "mock", "pre-commit", "pytest-xdist", "sphinx", "sphinx_rtd_theme", "tox-travis"][[package]]name = "pytest-forked"@@ -2478,6 +2484,19 @@ sqlalchemy = ["sqlalchemy (>=1.2)"]starlette = ["starlette (>=0.19.1)"]tornado = ["tornado (>=5)"]+[[package]]+name = "setuptools"+version = "65.3.0"+description = "Easily download, build, install, upgrade, and uninstall Python packages"+category = "main"+optional = false+python-versions = ">=3.7"++[package.extras]+docs = ["furo", "jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "pygments-github-lexers (==0.0.5)", "rst.linker (>=1.9)", "sphinx", "sphinx-favicon", "sphinx-hoverxref (<2)", "sphinx-inline-tabs", "sphinx-notfound-page (==0.8.3)", "sphinx-reredirects", "sphinxcontrib-towncrier"]+testing = ["build[virtualenv]", "filelock (>=3.4.0)", "flake8 (<5)", "flake8-2020", "ini2toml[lite] (>=0.9)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "mock", "pip (>=19.1)", "pip-run (>=8.8)", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-flake8", "pytest-mypy (>=0.9.1)", "pytest-perf", "pytest-xdist", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel"]+testing-integration = ["build[virtualenv]", "filelock (>=3.4.0)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "pytest", "pytest-enabler", "pytest-xdist", "tomli", "virtualenv (>=13.0.0)", "wheel"]+[[package]]name = "singledispatch"version = "3.7.0"@@ -2618,8 +2637,8 @@ python-versions = ">=3.6"webencodings = ">=0.4"[package.extras]-doc = ["sphinx", "sphinx-rtd-theme"]-test = ["coverage", "pytest", "pytest-cov", "pytest-flake8", "pytest-isort"]+doc = ["sphinx", "sphinx_rtd_theme"]+test = ["coverage[toml]", "pytest", "pytest-cov", "pytest-flake8", "pytest-isort"][[package]]name = "toml"@@ -2717,7 +2736,7 @@ python-versions = "*"[[package]]name = "types-redis"-version = "4.3.18"+version = "4.3.19"description = "Typing stubs for redis"category = "main"optional = false@@ -2892,8 +2911,8 @@ Pyphen = ">=0.9.1"tinycss2 = ">=1.0.0"[package.extras]-doc = ["sphinx", "sphinx-rtd-theme"]-test = ["coverage", "pytest", "pytest-cov", "pytest-flake8", "pytest-isort", "pytest-xdist"]+doc = ["sphinx", "sphinx_rtd_theme"]+test = ["coverage[toml]", "pytest", "pytest-cov", "pytest-flake8", "pytest-isort", "pytest-xdist"][[package]]name = "webencodings"@@ -2957,7 +2976,7 @@ test = ["pytest"][metadata]lock-version = "1.1"python-versions = "~3.9"-content-hash = "1cffe6e48ac55536dcfde99629383906f66c4a2b98e9570f3200b10f14130fd1"+content-hash = "9d3b1a6e7e2cb31297a314777180d6e0a71786107ff1b1cd243682ff89467c9f"[metadata.files]adyen = [@@ -3077,12 +3096,12 @@ black = [{file = "black-22.6.0.tar.gz", hash = "sha256:6c6d39e28aed379aec40da1c65434c77d75e65bb59a1e1c283de545fb4e7c6c9"},]boto3 = [- {file = "boto3-1.24.61-py3-none-any.whl", hash = "sha256:ec1aa3f4c2b68da1a9c01e175086f5f6b1b8b67780fa569ab8875be5bb3fd5ae"},- {file = "boto3-1.24.61.tar.gz", hash = "sha256:b72496c7eaa45afbdfa48a7c648c3211342582d91c8c1b7330d09c18242132d1"},+ {file = "boto3-1.24.62-py3-none-any.whl", hash = "sha256:84b962f18506ad495dc973aeb5168697ee882497c01430dddeba5e8339db7932"},+ {file = "boto3-1.24.62.tar.gz", hash = "sha256:818a40b82e4f66b4bdd4fa38fcc3ed0fb26542f7d8c4d15279d4ba1d4762cd95"},]botocore = [- {file = "botocore-1.27.61-py3-none-any.whl", hash = "sha256:535c8e97ed28a38fd09dd8f4735195e761bbee54e4c6021f3a709a97b1287dd6"},- {file = "botocore-1.27.61.tar.gz", hash = "sha256:99012965e2409665c7d86706862c5a141e01e1c4d2c81cb9409a44200ee59631"},+ {file = "botocore-1.27.62-py3-none-any.whl", hash = "sha256:69682c874dc8ed1856bffd203786c9591fb76a1946d3dcc516bda1ee6a6989f3"},+ {file = "botocore-1.27.62.tar.gz", hash = "sha256:8563c7d8b80e8041667cf35b397f1c399537f6c887e1c501f0064bfd7ae541ba"},]braintree = [{file = "braintree-4.16.0-py2.py3-none-any.whl", hash = "sha256:15e77c382f50d59e12cfd7e2e984ac6469e760ed56de82832a18aa8bf2e3f6f4"},@@ -3396,8 +3415,8 @@ dj-email-url = [{file = "dj_email_url-1.0.5-py2.py3-none-any.whl", hash = "sha256:64257c4f9d8139a4af8e5267229d32260e433fbf257b0cf8fc855bb0cc39ca7d"},]django = [- {file = "Django-3.2.15-py3-none-any.whl", hash = "sha256:115baf5049d5cf4163e43492cdc7139c306ed6d451e7d3571fe9612903903713"},- {file = "Django-3.2.15.tar.gz", hash = "sha256:f71934b1a822f14a86c9ac9634053689279cd04ae69cb6ade4a59471b886582b"},+ {file = "Django-4.0.7-py3-none-any.whl", hash = "sha256:41bd65a9e5f8a89cdbfa7a7bba45cd7431ae89e750af82dea8a35fd1a7ecbe66"},+ {file = "Django-4.0.7.tar.gz", hash = "sha256:9c6d5ad36be798e562ddcaa6b17b1c3ff2d3c4f529a47432b69fb9a30f847461"},]django-appconf = [{file = "django-appconf-1.0.5.tar.gz", hash = "sha256:be3db0be6c81fa84742000b89a81c016d70ae66a7ccb620cdef592b1f1a6aaa4"},@@ -3451,12 +3470,12 @@ django-phonenumber-field = [{file = "django_phonenumber_field-6.4.0-py3-none-any.whl", hash = "sha256:a31b4f05ac0ff898661516c84940f83adb5cdcf0ae4b9b1d31bb8ad3ff345b58"},]django-prices = [- {file = "django-prices-2.2.0.tar.gz", hash = "sha256:cdbea06db683c589d4cf3ec48d4b2385000ddc4df6e641f48cea563e19f645a3"},- {file = "django_prices-2.2.0-py3-none-any.whl", hash = "sha256:4ef054a660663c216a869126f1d209752381d5e311e5808438d29c944c2009d3"},+ {file = "django-prices-2.3.0.tar.gz", hash = "sha256:dc2ba039fcdeeffbcb8ba41e46821d509af4d50cca36f527990ed319ff83fed9"},+ {file = "django_prices-2.3.0-py3-none-any.whl", hash = "sha256:b72ec33ac9475b8a2a8fff1414427b17fd6df58d8dfde4d257f7d58fd7251b80"},]django-prices-openexchangerates = [- {file = "django-prices-openexchangerates-1.1.0.tar.gz", hash = "sha256:7d8d31c988dc42e9a90621eded3cef71de255bb6071aef942390bbd88edd4640"},- {file = "django_prices_openexchangerates-1.1.0-py3-none-any.whl", hash = "sha256:e8a8e85020ab62071bec29bf48eb7e688822141291e9d855b045efe1ab27ea74"},+ {file = "django-prices-openexchangerates-1.2.0.tar.gz", hash = "sha256:183cc2b6c15da7555d36b03634fef6c73c80e692a9f63ff0bfc1443f57f55740"},+ {file = "django_prices_openexchangerates-1.2.0-py3-none-any.whl", hash = "sha256:2daff7ae82632ca4fd23e1b5328d9520b9d6a9f75e652f93ea8c8935d94f2baf"},]django-prices-vatlayer = [{file = "django-prices-vatlayer-1.1.0.tar.gz", hash = "sha256:54cb240dfd2b7c5fd22498aaf6e9141e602eccb2b0672911c64dc5add3fa666e"},@@ -4435,6 +4454,10 @@ sentry-sdk = [{file = "sentry-sdk-1.9.5.tar.gz", hash = "sha256:2d7ec7bc88ebbdf2c4b6b2650b3257893d386325a96c9b723adcd31033469b63"},{file = "sentry_sdk-1.9.5-py2.py3-none-any.whl", hash = "sha256:b4b41f90951ed83e7b4c176eef021b19ecba39da5b73aca106c97a9b7e279a90"},]+setuptools = [+ {file = "setuptools-65.3.0-py3-none-any.whl", hash = "sha256:2e24e0bec025f035a2e72cdd1961119f557d78ad331bb00ff82efb2ab8da8e82"},+ {file = "setuptools-65.3.0.tar.gz", hash = "sha256:7732871f4f7fa58fb6bdcaeadb0161b2bd046c85905dbaa066bdcbcc81953b57"},+]singledispatch = [{file = "singledispatch-3.7.0-py2.py3-none-any.whl", hash = "sha256:bc77afa97c8a22596d6d4fc20f1b7bdd2b86edc2a65a4262bdd7cc3cc19aa989"},{file = "singledispatch-3.7.0.tar.gz", hash = "sha256:c1a4d5c1da310c3fd8fccfb8d4e1cb7df076148fd5d858a819e37fffe44f3092"},@@ -4539,8 +4562,8 @@ types-pytz = [{file = "types_pytz-2022.2.1.0-py3-none-any.whl", hash = "sha256:50ead2254b524a3d4153bc65d00289b66898060d2938e586170dce918dbaf3b3"},]types-redis = [- {file = "types-redis-4.3.18.tar.gz", hash = "sha256:2260532c157d4f64f6e266de67b0aaa1979cfb969e409a16445ec6976c4a1de6"},- {file = "types_redis-4.3.18-py3-none-any.whl", hash = "sha256:ba4dffd5f804af849ddd5399164abd04fbf87fa5295680d89ccec010c66bb110"},+ {file = "types-redis-4.3.19.tar.gz", hash = "sha256:c881ffb94bd47dca21ed503328544a56bb315851575eebb27fb371bff735844a"},+ {file = "types_redis-4.3.19-py3-none-any.whl", hash = "sha256:c74262197487a65e3f02db37d3f0e0f3bb2d5d370f7e6ba390814e865a45e56e"},]types-requests = [{file = "types-requests-2.28.9.tar.gz", hash = "sha256:feaf581bd580497a47fe845d506fa3b91b484cf706ff27774e87659837de9962"},diff --git a/pyproject.toml b/pyproject.tomlindex 61417f7de3..e3d7e652f8 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -16,14 +16,14 @@ documentation = "https://docs.saleor.io/"braintree = ">=4.2,<4.17"dj-database-url = "^0"dj-email-url = "^1"- django = {version = "^3.2.15", extras = ["bcrypt"]}+ django = {version = "^4.0.7", extras = ["bcrypt"]}django-countries = "^7.2"django-filter = "^22.1"django-measurement = "^3.0"django-mptt = "^0"django-phonenumber-field = ">=4,<7"- django-prices = "^2.1"- django-prices-openexchangerates = "^1.0.1"+ django-prices = "^2.3"+ django-prices-openexchangerates = "^1.2.0"django-prices-vatlayer = "^1.1.0"django-versatileimagefield = "^2.1"draftjs-sanitizer = "^1.0.0"@@ -118,8 +118,7 @@ documentation = "https://docs.saleor.io/"types-pytz = "^2022.1.1"types-pkg-resources = "^0.1.3"types-python-dateutil = "^2.8.0"- # django-stubs locked to 1.8.0 due to https://github.com/typeddjango/django-stubs/issues/700- django-stubs = "1.8.0"+ django-stubs = "^1.9.0"pytest-socket = "^0.5.1"before_after = "^1.0.1"types-certifi = "^2021.10.8"@@ -128,6 +127,9 @@ documentation = "https://docs.saleor.io/"fakeredis = "^1.8"types-redis = "^4.2.6"+[tool.poetry.group.dev.dependencies]+django-stubs = "1.8.0"+[tool.black]target_version = [ "py35", "py36", "py37", "py38" ]include = "\\.pyi?$"diff --git a/requirements.txt b/requirements.txtindex a9ca9e0d01..b565e97813 100644--- a/requirements.txt+++ b/requirements.txt@@ -1,165 +1,170 @@-adyen==4.0.0-amqp==5.1.1; python_version >= "3.7"-aniso8601==7.0.0-anyio==3.6.1; python_version >= "3.7" and python_full_version >= "3.6.2"-asgiref==3.5.2; python_version >= "3.7"-async-timeout==4.0.2; python_version >= "3.7"-authlib==1.0.1-authorizenet==1.1.4-azure-common==1.1.28-azure-core==1.25.0; python_version >= "3.7"-azure-storage-blob==12.13.1; python_version >= "3.6"-azure-storage-common==2.1.0-babel==2.10.3; python_version >= "3.6"-bcrypt==4.0.0; python_version >= "3.7"-beautifulsoup4==4.7.1-billiard==3.6.4.0; python_version >= "3.7"-boto3==1.24.61; python_version >= "3.7"-botocore==1.27.61; python_version >= "3.7"-braintree==4.16.0-brotli==1.0.9; platform_python_implementation == "CPython" and python_version >= "3.7"-brotlicffi==1.0.9.2; platform_python_implementation != "CPython" and python_version >= "3.7"-cachetools==5.2.0; python_version >= "3.7" and python_version < "4.0" and (python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version >= "3.7")-celery==5.2.7; python_version >= "3.7"-certifi==2022.6.15; python_version >= "3.7" and python_version < "4" and (python_version >= "3.0" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.0")-cffi==1.15.1; platform_python_implementation != "CPython" and python_version >= "3.7"-charset-normalizer==2.1.1; python_version >= "3.7" and python_version < "4" and python_full_version >= "3.6.0" and (python_version >= "3.0" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.0")-click-didyoumean==0.3.0; python_full_version >= "3.6.2" and python_full_version < "4.0.0" and python_version >= "3.7"-click-plugins==1.1.1; python_version >= "3.7"-click-repl==0.2.0; python_version >= "3.7"-click==8.1.3; python_full_version >= "3.6.2" and python_full_version < "4.0.0" and python_version >= "3.7"-colorama==0.4.5; python_version >= "3.7" and python_full_version < "3.0.0" and sys_platform == "win32" and platform_system == "Windows" or sys_platform == "win32" and python_version >= "3.7" and python_full_version >= "3.5.0" and platform_system == "Windows"-cryptography==37.0.4; python_version >= "3.6"-cssselect2==0.6.0; python_version >= "3.7"-deprecated==1.2.13; python_version >= "3.7" and python_full_version < "3.0.0" or python_version >= "3.7" and python_full_version >= "3.4.0"-dj-database-url==0.5.0-dj-email-url==1.0.5-django-appconf==1.0.5; python_version >= "3.6"-django-cache-url==3.4.2-django-celery-beat==2.3.0-django-countries==7.3.2-django-filter==22.1; python_version >= "3.7"-django-js-asset==2.0.0; python_version >= "3.6"-django-measurement==3.2.4-django-mptt==0.13.4; python_version >= "3.6"-django-phonenumber-field==6.4.0; python_version >= "3.7"-django-prices-openexchangerates==1.1.0-django-prices-vatlayer==1.1.0-django-prices==2.2.0-django-redis==5.2.0; python_version >= "3.6"-django-storages==1.13.1; python_version >= "3.7"-django-timezone-field==5.0; python_version >= "3.7" and python_version < "4.0"-django-versatileimagefield==2.2-django==3.2.15; python_version >= "3.6"-draftjs-sanitizer==1.0.0-enmerkar==0.7.1-et-xmlfile==1.1.0; python_version >= "3.6"-faker==14.1.0; python_version >= "3.6"-fonttools==4.37.1; python_version >= "3.7"-freezegun==1.2.2; python_version >= "3.6"-google-api-core==2.8.2; python_version >= "3.7"-google-auth==2.11.0; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version >= "3.7"-google-cloud-core==2.3.2; python_version >= "3.7"-google-cloud-pubsub==2.13.6; python_version >= "3.7"-google-cloud-storage==2.5.0; python_version >= "3.7"-google-crc32c==1.3.0; python_version >= "3.7"-google-i18n-address==2.5.2-google-measurement-protocol==1.1.0-google-resumable-media==2.3.3; python_version >= "3.7"-googleapis-common-protos==1.56.4; python_version >= "3.7"-graphene==2.1.9-graphql-core==2.3.2-graphql-relay==2.0.1-grpc-google-iam-v1==0.12.4; python_version >= "3.7"-grpcio-status==1.48.0; python_version >= "3.7"-grpcio==1.48.0; python_version >= "3.7"-gunicorn==20.1.0; python_version >= "3.5"-h11==0.13.0; python_version >= "3.7"-html-to-draftjs==1.0.1-html2text==2020.1.16; python_version >= "3.5"-html5lib==1.1; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7"-httptools==0.4.0; python_version >= "3.7" and python_full_version >= "3.5.0"-idna==3.3; python_version >= "3.7" and python_version < "4" and (python_version >= "3.0" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.0") and python_full_version >= "3.6.2"-importlib-metadata==4.12.0; python_version < "3.10" and python_version >= "3.7"-isodate==0.6.1; python_version >= "3.6"-jaeger-client==4.8.0; python_version >= "3.7"-jmespath==1.0.1; python_version >= "3.7"-jsonfield==3.1.0; python_version >= "3.6"-kombu==5.2.4; python_version >= "3.7"-lxml==4.9.1; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"-markdown==3.4.1; python_version >= "3.7"-maxminddb==2.2.0; python_version >= "3.6"-measurement==3.2.0-micawber==0.5.4-mpmath==1.2.1; python_version >= "3.8"-msrest==0.7.1; python_version >= "3.6"-oauthlib==3.2.0; python_version >= "3.6"-openpyxl==3.0.10; python_version >= "3.6"-opentracing==2.4.0-packaging==21.3; python_version >= "3.7"-petl==1.7.11; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.4.0")-phonenumberslite==8.12.54-pillow==9.2.0; python_version >= "3.7"-posuto==2022.8.0-prices==1.1.0-promise==2.3-prompt-toolkit==3.0.30; python_full_version >= "3.6.2" and python_version >= "3.7"-proto-plus==1.22.0; python_version >= "3.7"-protobuf==4.21.5; python_version >= "3.7"-psycopg2==2.9.3; python_version >= "3.6"-pyasn1-modules==0.2.8; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version >= "3.7"-pyasn1==0.4.8; python_version >= "3.7" and python_full_version < "3.0.0" and python_version < "4" and (python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version >= "3.7") or python_full_version >= "3.6.0" and python_version >= "3.7" and python_version < "4" and (python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version >= "3.7")-pybars3==0.9.7-pycparser==2.21; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.7"-pydyf==0.2.0; python_version >= "3.7"-pyjwt==2.4.0; python_version >= "3.6"-pymeta3==0.5.1-pyparsing==3.0.9; python_version >= "3.7" and python_full_version >= "3.6.8"-pyphen==0.12.0; python_version >= "3.7"-python-crontab==2.6.0-python-dateutil==2.8.2; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.3.0" and python_version >= "3.7"-python-dotenv==0.20.0; python_version >= "3.7"-python-http-client==3.3.7; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"-python-json-logger==2.0.4; python_version >= "3.5"-python-magic-bin==0.4.14; sys_platform == "win32"-python-magic==0.4.27; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"-pytimeparse==1.1.8-pytz==2022.2.1; python_version >= "3.7" and python_version < "4.0"-pyxb==1.2.5-pyyaml==6.0; python_version >= "3.7"-razorpay==1.3.0-redis==4.3.4; python_version >= "3.7"-requests-oauthlib==1.3.1; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"-requests==2.28.1; python_version >= "3.7" and python_version < "4"-rsa==4.9; python_version >= "3.6" and python_version < "4" and (python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version >= "3.7")-rx==1.6.1-s3transfer==0.6.0; python_version >= "3.7"-sendgrid==6.9.7; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.5.0")-sentry-sdk==1.9.5-six==1.16.0; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version >= "3.7"-sniffio==1.2.0; python_version >= "3.7" and python_full_version >= "3.6.2"-soupsieve==2.3.2.post1; python_version >= "3.6"-sqlparse==0.4.2; python_version >= "3.7"-starkbank-ecdsa==2.0.3; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"-stripe==3.5.0; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.4.0")-sympy==1.11; python_version >= "3.8"-text-unidecode==1.3-threadloop==1.0.2; python_version >= "3.7"-thrift==0.16.0; python_version >= "3.7"-tinycss2==1.1.1; python_version >= "3.7"-tornado==6.2; python_version >= "3.7"-types-redis==4.3.18-typing-extensions==4.3.0; python_version >= "3.7"-tzdata==2022.2; python_version >= "2"-urllib3==1.26.12; python_version >= "3.7" and python_full_version < "3.0.0" and python_version < "4" and (python_version >= "3.0" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.0") or python_full_version >= "3.6.0" and python_version < "4" and python_version >= "3.7" and (python_version >= "3.0" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.0")-uvicorn==0.17.6; python_version >= "3.7"-uvloop==0.16.0; sys_platform != "win32" and sys_platform != "cygwin" and platform_python_implementation != "PyPy" and python_version >= "3.7"-vine==5.0.0; python_version >= "3.7"-watchgod==0.8.2; python_version >= "3.7"-wcwidth==0.2.5; python_full_version >= "3.6.2" and python_version >= "3.7"-weasyprint==56.1; python_version >= "3.7"-webencodings==0.5.1; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7"-websockets==10.3; python_version >= "3.7"-wrapt==1.14.1; python_version >= "3.7" and python_full_version < "3.0.0" or python_version >= "3.7" and python_full_version >= "3.5.0"-zipp==3.8.1; python_version < "3.10" and python_version >= "3.7"-zopfli==0.2.1; python_version >= "3.7"+adyen==4.0.0 ; python_version >= "3.9" and python_version < "3.10"+amqp==5.1.1 ; python_version >= "3.9" and python_version < "3.10"+aniso8601==7.0.0 ; python_version >= "3.9" and python_version < "3.10"+anyio==3.6.1 ; python_version >= "3.9" and python_version < "3.10"+asgiref==3.5.2 ; python_version >= "3.9" and python_version < "3.10"+async-timeout==4.0.2 ; python_version >= "3.9" and python_version < "3.10"+authlib==1.0.1 ; python_version >= "3.9" and python_version < "3.10"+authorizenet==1.1.4 ; python_version >= "3.9" and python_version < "3.10"+azure-common==1.1.28 ; python_version >= "3.9" and python_version < "3.10"+azure-core==1.25.0 ; python_version >= "3.9" and python_version < "3.10"+azure-storage-blob==12.13.1 ; python_version >= "3.9" and python_version < "3.10"+azure-storage-common==2.1.0 ; python_version >= "3.9" and python_version < "3.10"+babel==2.10.3 ; python_version >= "3.9" and python_version < "3.10"+bcrypt==4.0.0 ; python_version >= "3.9" and python_version < "3.10"+beautifulsoup4==4.7.1 ; python_version >= "3.9" and python_version < "3.10"+billiard==3.6.4.0 ; python_version >= "3.9" and python_version < "3.10"+boto3==1.24.62 ; python_version >= "3.9" and python_version < "3.10"+botocore==1.27.62 ; python_version >= "3.9" and python_version < "3.10"+braintree==4.16.0 ; python_version >= "3.9" and python_version < "3.10"+brotli==1.0.9 ; platform_python_implementation == "CPython" and python_version >= "3.9" and python_version < "3.10"+brotlicffi==1.0.9.2 ; platform_python_implementation != "CPython" and python_version >= "3.9" and python_version < "3.10"+cachetools==5.2.0 ; python_version >= "3.9" and python_version < "3.10"+celery==5.2.7 ; python_version >= "3.9" and python_version < "3.10"+celery[redis]==5.2.7 ; python_version >= "3.9" and python_version < "3.10"+certifi==2022.6.15 ; python_version >= "3.9" and python_version < "3.10"+cffi==1.15.1 ; python_version >= "3.9" and python_version < "3.10"+charset-normalizer==2.1.1 ; python_version >= "3.9" and python_version < "3.10"+click-didyoumean==0.3.0 ; python_version >= "3.9" and python_version < "3.10"+click-plugins==1.1.1 ; python_version >= "3.9" and python_version < "3.10"+click-repl==0.2.0 ; python_version >= "3.9" and python_version < "3.10"+click==8.1.3 ; python_version >= "3.9" and python_version < "3.10"+colorama==0.4.5 ; sys_platform == "win32" and python_version >= "3.9" and python_version < "3.10" or python_version >= "3.9" and python_version < "3.10" and platform_system == "Windows"+cryptography==37.0.4 ; python_version >= "3.9" and python_version < "3.10"+cssselect2==0.6.0 ; python_version >= "3.9" and python_version < "3.10"+deprecated==1.2.13 ; python_version >= "3.9" and python_version < "3.10"+dj-database-url==0.5.0 ; python_version >= "3.9" and python_version < "3.10"+dj-email-url==1.0.5 ; python_version >= "3.9" and python_version < "3.10"+django-appconf==1.0.5 ; python_version >= "3.9" and python_version < "3.10"+django-cache-url==3.4.2 ; python_version >= "3.9" and python_version < "3.10"+django-celery-beat==2.3.0 ; python_version >= "3.9" and python_version < "3.10"+django-countries==7.3.2 ; python_version >= "3.9" and python_version < "3.10"+django-filter==22.1 ; python_version >= "3.9" and python_version < "3.10"+django-js-asset==2.0.0 ; python_version >= "3.9" and python_version < "3.10"+django-measurement==3.2.4 ; python_version >= "3.9" and python_version < "3.10"+django-mptt==0.13.4 ; python_version >= "3.9" and python_version < "3.10"+django-phonenumber-field==6.4.0 ; python_version >= "3.9" and python_version < "3.10"+django-prices-openexchangerates==1.2.0 ; python_version >= "3.9" and python_version < "3.10"+django-prices-vatlayer==1.1.0 ; python_version >= "3.9" and python_version < "3.10"+django-prices==2.3.0 ; python_version >= "3.9" and python_version < "3.10"+django-redis==5.2.0 ; python_version >= "3.9" and python_version < "3.10"+django-storages[google]==1.13.1 ; python_version >= "3.9" and python_version < "3.10"+django-timezone-field==5.0 ; python_version >= "3.9" and python_version < "3.10"+django-versatileimagefield==2.2 ; python_version >= "3.9" and python_version < "3.10"+django==4.0.7 ; python_version >= "3.9" and python_version < "3.10"+django[bcrypt]==4.0.7 ; python_version >= "3.9" and python_version < "3.10"+draftjs-sanitizer==1.0.0 ; python_version >= "3.9" and python_version < "3.10"+enmerkar==0.7.1 ; python_version >= "3.9" and python_version < "3.10"+et-xmlfile==1.1.0 ; python_version >= "3.9" and python_version < "3.10"+faker==14.1.0 ; python_version >= "3.9" and python_version < "3.10"+fonttools[woff]==4.37.1 ; python_version >= "3.9" and python_version < "3.10"+freezegun==1.2.2 ; python_version >= "3.9" and python_version < "3.10"+google-api-core==2.8.2 ; python_version >= "3.9" and python_version < "3.10"+google-api-core[grpc]==2.8.2 ; python_version >= "3.9" and python_version < "3.10"+google-auth==2.11.0 ; python_version >= "3.9" and python_version < "3.10"+google-cloud-core==2.3.2 ; python_version >= "3.9" and python_version < "3.10"+google-cloud-pubsub==2.13.6 ; python_version >= "3.9" and python_version < "3.10"+google-cloud-storage==2.5.0 ; python_version >= "3.9" and python_version < "3.10"+google-crc32c==1.3.0 ; python_version >= "3.9" and python_version < "3.10"+google-i18n-address==2.5.2 ; python_version >= "3.9" and python_version < "3.10"+google-measurement-protocol==1.1.0 ; python_version >= "3.9" and python_version < "3.10"+google-resumable-media==2.3.3 ; python_version >= "3.9" and python_version < "3.10"+googleapis-common-protos==1.56.4 ; python_version >= "3.9" and python_version < "3.10"+googleapis-common-protos[grpc]==1.56.4 ; python_version >= "3.9" and python_version < "3.10"+graphene==2.1.9 ; python_version >= "3.9" and python_version < "3.10"+graphql-core==2.3.2 ; python_version >= "3.9" and python_version < "3.10"+graphql-relay==2.0.1 ; python_version >= "3.9" and python_version < "3.10"+grpc-google-iam-v1==0.12.4 ; python_version >= "3.9" and python_version < "3.10"+grpcio-status==1.48.0 ; python_version >= "3.9" and python_version < "3.10"+grpcio==1.48.0 ; python_version >= "3.9" and python_version < "3.10"+gunicorn==20.1.0 ; python_version >= "3.9" and python_version < "3.10"+h11==0.13.0 ; python_version >= "3.9" and python_version < "3.10"+html-to-draftjs==1.0.1 ; python_version >= "3.9" and python_version < "3.10"+html2text==2020.1.16 ; python_version >= "3.9" and python_version < "3.10"+html5lib==1.1 ; python_version >= "3.9" and python_version < "3.10"+httptools==0.4.0 ; python_version >= "3.9" and python_version < "3.10"+idna==3.3 ; python_version >= "3.9" and python_version < "3.10"+importlib-metadata==4.12.0 ; python_version >= "3.9" and python_version < "3.10"+isodate==0.6.1 ; python_version >= "3.9" and python_version < "3.10"+jaeger-client==4.8.0 ; python_version >= "3.9" and python_version < "3.10"+jmespath==1.0.1 ; python_version >= "3.9" and python_version < "3.10"+jsonfield==3.1.0 ; python_version >= "3.9" and python_version < "3.10"+kombu==5.2.4 ; python_version >= "3.9" and python_version < "3.10"+lxml==4.9.1 ; python_version >= "3.9" and python_version < "3.10"+markdown==3.4.1 ; python_version >= "3.9" and python_version < "3.10"+maxminddb==2.2.0 ; python_version >= "3.9" and python_version < "3.10"+measurement==3.2.0 ; python_version >= "3.9" and python_version < "3.10"+micawber==0.5.4 ; python_version >= "3.9" and python_version < "3.10"+mpmath==1.2.1 ; python_version >= "3.9" and python_version < "3.10"+msrest==0.7.1 ; python_version >= "3.9" and python_version < "3.10"+oauthlib==3.2.0 ; python_version >= "3.9" and python_version < "3.10"+openpyxl==3.0.10 ; python_version >= "3.9" and python_version < "3.10"+opentracing==2.4.0 ; python_version >= "3.9" and python_version < "3.10"+packaging==21.3 ; python_version >= "3.9" and python_version < "3.10"+petl==1.7.11 ; python_version >= "3.9" and python_version < "3.10"+phonenumberslite==8.12.54 ; python_version >= "3.9" and python_version < "3.10"+pillow==9.2.0 ; python_version >= "3.9" and python_version < "3.10"+posuto==2022.8.0 ; python_version >= "3.9" and python_version < "3.10"+prices==1.1.0 ; python_version >= "3.9" and python_version < "3.10"+promise==2.3 ; python_version >= "3.9" and python_version < "3.10"+prompt-toolkit==3.0.30 ; python_version >= "3.9" and python_version < "3.10"+proto-plus==1.22.0 ; python_version >= "3.9" and python_version < "3.10"+protobuf==4.21.5 ; python_version >= "3.9" and python_version < "3.10"+psycopg2==2.9.3 ; python_version >= "3.9" and python_version < "3.10"+pyasn1-modules==0.2.8 ; python_version >= "3.9" and python_version < "3.10"+pyasn1==0.4.8 ; python_version >= "3.9" and python_version < "3.10"+pybars3==0.9.7 ; python_version >= "3.9" and python_version < "3.10"+pycparser==2.21 ; python_version >= "3.9" and python_version < "3.10"+pydyf==0.2.0 ; python_version >= "3.9" and python_version < "3.10"+pyjwt==2.4.0 ; python_version >= "3.9" and python_version < "3.10"+pymeta3==0.5.1 ; python_version >= "3.9" and python_version < "3.10"+pyparsing==3.0.9 ; python_version >= "3.9" and python_version < "3.10"+pyphen==0.12.0 ; python_version >= "3.9" and python_version < "3.10"+python-crontab==2.6.0 ; python_version >= "3.9" and python_version < "3.10"+python-dateutil==2.8.2 ; python_version >= "3.9" and python_version < "3.10"+python-dotenv==0.20.0 ; python_version >= "3.9" and python_version < "3.10"+python-http-client==3.3.7 ; python_version >= "3.9" and python_version < "3.10"+python-json-logger==2.0.4 ; python_version >= "3.9" and python_version < "3.10"+python-magic-bin==0.4.14 ; python_version >= "3.9" and python_version < "3.10" and sys_platform == "win32"+python-magic==0.4.27 ; python_version >= "3.9" and python_version < "3.10"+pytimeparse==1.1.8 ; python_version >= "3.9" and python_version < "3.10"+pytz==2022.2.1 ; python_version >= "3.9" and python_version < "3.10"+pyxb==1.2.5 ; python_version >= "3.9" and python_version < "3.10"+pyyaml==6.0 ; python_version >= "3.9" and python_version < "3.10"+razorpay==1.3.0 ; python_version >= "3.9" and python_version < "3.10"+redis==4.3.4 ; python_version >= "3.9" and python_version < "3.10"+requests-oauthlib==1.3.1 ; python_version >= "3.9" and python_version < "3.10"+requests==2.28.1 ; python_version >= "3.9" and python_version < "3.10"+rsa==4.9 ; python_version >= "3.9" and python_version < "3.10"+rx==1.6.1 ; python_version >= "3.9" and python_version < "3.10"+s3transfer==0.6.0 ; python_version >= "3.9" and python_version < "3.10"+sendgrid==6.9.7 ; python_version >= "3.9" and python_version < "3.10"+sentry-sdk==1.9.5 ; python_version >= "3.9" and python_version < "3.10"+setuptools==65.3.0 ; python_version >= "3.9" and python_version < "3.10"+six==1.16.0 ; python_version >= "3.9" and python_version < "3.10"+sniffio==1.2.0 ; python_version >= "3.9" and python_version < "3.10"+soupsieve==2.3.2.post1 ; python_version >= "3.9" and python_version < "3.10"+sqlparse==0.4.2 ; python_version >= "3.9" and python_version < "3.10"+starkbank-ecdsa==2.0.3 ; python_version >= "3.9" and python_version < "3.10"+stripe==3.5.0 ; python_version >= "3.9" and python_version < "3.10"+sympy==1.11 ; python_version >= "3.9" and python_version < "3.10"+text-unidecode==1.3 ; python_version >= "3.9" and python_version < "3.10"+threadloop==1.0.2 ; python_version >= "3.9" and python_version < "3.10"+thrift==0.16.0 ; python_version >= "3.9" and python_version < "3.10"+tinycss2==1.1.1 ; python_version >= "3.9" and python_version < "3.10"+tornado==6.2 ; python_version >= "3.9" and python_version < "3.10"+types-redis==4.3.19 ; python_version >= "3.9" and python_version < "3.10"+typing-extensions==4.3.0 ; python_version >= "3.9" and python_version < "3.10"+tzdata==2022.2 ; python_version >= "3.9" and python_version < "3.10"+urllib3==1.26.12 ; python_version >= "3.9" and python_version < "3.10"+uvicorn[standard]==0.17.6 ; python_version >= "3.9" and python_version < "3.10"+uvloop==0.16.0 ; sys_platform != "win32" and sys_platform != "cygwin" and platform_python_implementation != "PyPy" and python_version >= "3.9" and python_version < "3.10"+vine==5.0.0 ; python_version >= "3.9" and python_version < "3.10"+watchgod==0.8.2 ; python_version >= "3.9" and python_version < "3.10"+wcwidth==0.2.5 ; python_version >= "3.9" and python_version < "3.10"+weasyprint==56.1 ; python_version >= "3.9" and python_version < "3.10"+webencodings==0.5.1 ; python_version >= "3.9" and python_version < "3.10"+websockets==10.3 ; python_version >= "3.9" and python_version < "3.10"+wrapt==1.14.1 ; python_version >= "3.9" and python_version < "3.10"+zipp==3.8.1 ; python_version >= "3.9" and python_version < "3.10"+zopfli==0.2.1 ; python_version >= "3.9" and python_version < "3.10"diff --git a/requirements_dev.txt b/requirements_dev.txtindex 46720e283c..910a55cfc2 100644--- a/requirements_dev.txt+++ b/requirements_dev.txt@@ -1,240 +1,246 @@-adyen==4.0.0-amqp==5.1.1; python_version >= "3.7"-aniso8601==7.0.0; python_version >= "3.6" and python_version < "4.0"-anyio==3.6.1; python_version >= "3.7" and python_full_version >= "3.6.2"-asgiref==3.5.2; python_version >= "3.7" and python_version < "4.0"-astroid==2.12.5; python_full_version >= "3.7.2"-async-timeout==4.0.2; python_version >= "3.7" and python_version < "4.0"-atomicwrites==1.4.1; python_version >= "3.7" and python_full_version < "3.0.0" and sys_platform == "win32" and python_version < "4.0" or sys_platform == "win32" and python_version >= "3.7" and python_full_version >= "3.4.0" and python_version < "4.0"-attrs==22.1.0; python_version >= "3.7" and python_version < "4.0"-authlib==1.0.1-authorizenet==1.1.4-azure-common==1.1.28-azure-core==1.25.0; python_version >= "3.7"-azure-storage-blob==12.13.1; python_version >= "3.6"-azure-storage-common==2.1.0-babel==2.10.3; python_version >= "3.6"-bcrypt==4.0.0; python_version >= "3.7" and python_version < "4.0"-beautifulsoup4==4.7.1-beautifultable==0.7.0-before-after==1.0.1-billiard==3.6.4.0; python_version >= "3.7"-black==22.6.0; python_full_version >= "3.6.2"-boto3==1.24.61; python_version >= "3.7"-botocore==1.27.61; python_version >= "3.7"-braintree==4.16.0-brotli==1.0.9; platform_python_implementation == "CPython" and python_version >= "3.7"-brotlicffi==1.0.9.2; platform_python_implementation != "CPython" and python_version >= "3.7"-cachetools==5.2.0; python_version >= "3.7" and python_version < "4.0" and (python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version >= "3.7")-celery==5.2.7; python_version >= "3.7"-certifi==2022.6.15; python_version >= "3.7" and python_version < "4" and (python_version >= "3.0" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.0") and (python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.4.0")-cffi==1.15.1; platform_python_implementation != "CPython" and python_version >= "3.7"-cfgv==3.3.1; python_full_version >= "3.6.1" and python_version >= "3.7"-charset-normalizer==2.1.1; python_version >= "3.7" and python_version < "4" and python_full_version >= "3.6.0" and (python_version >= "3.0" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.0") and (python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.4.0")-click-didyoumean==0.3.0; python_full_version >= "3.6.2" and python_full_version < "4.0.0" and python_version >= "3.7"-click-plugins==1.1.1; python_version >= "3.7"-click-repl==0.2.0; python_version >= "3.7"-click==8.1.3; python_version >= "3.7" and python_full_version >= "3.6.2" and python_full_version < "4.0.0"-codecov==2.1.12; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.4.0")-colorama==0.4.5; sys_platform == "win32" and python_version >= "3.7" and python_full_version >= "3.7.2" and (python_version >= "3.7" and python_full_version < "3.0.0" and sys_platform == "win32" or sys_platform == "win32" and python_version >= "3.7" and python_full_version >= "3.5.0") and (python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0") and (python_version >= "2.7" and python_full_version < "3.0.0" and platform_system == "Windows" or python_full_version >= "3.5.0" and platform_system == "Windows") and platform_system == "Windows" and (python_version >= "3.7" and python_full_version < "3.0.0" and sys_platform == "win32" and python_version < "4.0" or sys_platform == "win32" and python_version >= "3.7" and python_version < "4.0" and python_full_version >= "3.5.0")-coverage==6.4.4; python_version >= "3.7"-cryptography==37.0.4; python_version >= "3.6"-cssselect2==0.6.0; python_version >= "3.7"-deprecated==1.2.13; python_version >= "3.7" and python_full_version < "3.0.0" and python_version < "4.0" or python_version >= "3.7" and python_version < "4.0" and python_full_version >= "3.4.0"-dill==0.3.5.1; python_full_version >= "3.7.2"-distlib==0.3.6; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7"-dj-database-url==0.5.0-dj-email-url==1.0.5-django-appconf==1.0.5; python_version >= "3.6"-django-cache-url==3.4.2-django-celery-beat==2.3.0-django-countries==7.3.2-django-debug-toolbar-request-history==0.1.4-django-debug-toolbar==3.6.0; python_version >= "3.7"-django-extensions==3.2.0; python_version >= "3.6"-django-filter==22.1; python_version >= "3.7"-django-graphiql-debug-toolbar==0.2.0; python_version >= "3.6" and python_version < "4.0"-django-js-asset==2.0.0; python_version >= "3.6"-django-measurement==3.2.4-django-mptt==0.13.4; python_version >= "3.6"-django-phonenumber-field==6.4.0; python_version >= "3.7"-django-prices-openexchangerates==1.1.0-django-prices-vatlayer==1.1.0-django-prices==2.2.0-django-redis==5.2.0; python_version >= "3.6"-django-storages==1.13.1; python_version >= "3.7"-django-stubs-ext==0.5.0; python_version >= "3.6"-django-stubs==1.8.0; python_version >= "3.6"-django-timezone-field==5.0; python_version >= "3.7" and python_version < "4.0"-django-versatileimagefield==2.2-django==3.2.15; python_version >= "3.6"-draftjs-sanitizer==1.0.0-enmerkar==0.7.1-et-xmlfile==1.1.0; python_version >= "3.6"-execnet==1.9.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"-faker==14.1.0; python_version >= "3.6"-fakeredis==1.9.0; python_version >= "3.7" and python_version < "4.0"-filelock==3.8.0; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7"-flake8==4.0.1; python_version >= "3.6"-fonttools==4.37.1; python_version >= "3.7"-freezegun==1.2.2; python_version >= "3.6"-google-api-core==2.8.2; python_version >= "3.7"-google-auth==2.11.0; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version >= "3.7"-google-cloud-core==2.3.2; python_version >= "3.7"-google-cloud-pubsub==2.13.6; python_version >= "3.7"-google-cloud-storage==2.5.0; python_version >= "3.7"-google-crc32c==1.3.0; python_version >= "3.7"-google-i18n-address==2.5.2-google-measurement-protocol==1.1.0-google-resumable-media==2.3.3; python_version >= "3.7"-googleapis-common-protos==1.56.4; python_version >= "3.7"-graphene-django==2.15.0; python_version >= "3.6" and python_version < "4.0"-graphene==2.1.9-graphql-core==2.3.2; python_version >= "3.6" and python_version < "4.0"-graphql-relay==2.0.1; python_version >= "3.6" and python_version < "4.0"-grpc-google-iam-v1==0.12.4; python_version >= "3.7"-grpcio-status==1.48.0; python_version >= "3.7"-grpcio==1.48.0; python_version >= "3.7"-gunicorn==20.1.0; python_version >= "3.5"-h11==0.13.0; python_version >= "3.7"-html-to-draftjs==1.0.1-html2text==2020.1.16; python_version >= "3.5"-html5lib==1.1; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7"-httptools==0.4.0; python_version >= "3.7" and python_full_version >= "3.5.0"-identify==2.5.3; python_version >= "3.7"-idna==3.3; python_version >= "3.7" and python_version < "4" and (python_version >= "3.0" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.0") and (python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.4.0") and python_full_version >= "3.6.2"-importlib-metadata==4.12.0; python_version < "3.10" and python_version >= "3.7"-iniconfig==1.1.1; python_version >= "3.7" and python_version < "4.0"-isodate==0.6.1; python_version >= "3.6"-isort==5.10.1; python_full_version >= "3.6.1" and python_version < "4.0"-jaeger-client==4.8.0; python_version >= "3.7"-jinja2==3.1.2; python_version >= "3.7"-jmespath==1.0.1; python_version >= "3.7"-jsonfield==3.1.0; python_version >= "3.6"-kombu==5.2.4; python_version >= "3.7"-lazy-object-proxy==1.7.1; python_version >= "3.6" and python_full_version >= "3.7.2"-lxml==4.9.1; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"-markdown==3.4.1; python_version >= "3.7"-markupsafe==2.1.1; python_version >= "3.7"-maxminddb==2.2.0; python_version >= "3.6"-mccabe==0.6.1; python_version >= "3.6" and python_full_version >= "3.7.2"-measurement==3.2.0-micawber==0.5.4-mock==1.0.1-mpmath==1.2.1; python_version >= "3.8"-msrest==0.7.1; python_version >= "3.6"-multidict==6.0.2; python_version >= "3.7"-mypy-extensions==0.4.3; python_full_version >= "3.6.2" and python_version >= "3.6"-mypy==0.971; python_version >= "3.6"-nodeenv==1.7.0; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.7.0" and python_version >= "3.7"-oauthlib==3.2.0; python_version >= "3.6"-openpyxl==3.0.10; python_version >= "3.6"-opentracing==2.4.0-packaging==21.3; python_version >= "3.7" and python_full_version < "3.0.0" and python_version < "4.0" or python_full_version >= "3.5.0" and python_version >= "3.7" and python_version < "4.0"-pathspec==0.9.0; python_full_version >= "3.6.2"-petl==1.7.11; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.4.0")-phonenumberslite==8.12.54-pillow==9.2.0; python_version >= "3.7"-platformdirs==2.5.2; python_version >= "3.7" and python_full_version >= "3.7.2" and (python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7")-pluggy==1.0.0; python_version >= "3.7" and python_full_version < "3.0.0" and python_version < "4.0" or python_full_version >= "3.5.0" and python_version >= "3.7" and python_version < "4.0"-posuto==2022.8.0-pre-commit==2.20.0; python_version >= "3.7"-prices==1.1.0-promise==2.3; python_version >= "3.6" and python_version < "4.0"-prompt-toolkit==3.0.30; python_full_version >= "3.6.2" and python_version >= "3.7"-proto-plus==1.22.0; python_version >= "3.7"-protobuf==4.21.5; python_version >= "3.7"-psycopg2==2.9.3; python_version >= "3.6"-py==1.11.0; python_version >= "3.7" and python_full_version < "3.0.0" and python_version < "4.0" or python_full_version >= "3.5.0" and python_version >= "3.7" and python_version < "4.0"-pyasn1-modules==0.2.8; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version >= "3.7"-pyasn1==0.4.8; python_version >= "3.7" and python_full_version < "3.0.0" and python_version < "4" and (python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version >= "3.7") or python_full_version >= "3.6.0" and python_version >= "3.7" and python_version < "4" and (python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version >= "3.7")-pybars3==0.9.7-pycodestyle==2.8.0; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.5.0")-pycparser==2.21; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.7"-pydocstyle==6.1.1; python_version >= "3.6"-pydyf==0.2.0; python_version >= "3.7"-pyflakes==2.4.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"-pyjwt==2.4.0; python_version >= "3.6"-pylint-celery==0.3-pylint-django==2.5.3-pylint-plugin-utils==0.7; python_full_version >= "3.6.2"-pylint==2.15.0; python_full_version >= "3.7.2"-pymeta3==0.5.1-pyparsing==3.0.9; python_full_version >= "3.6.8" and python_version >= "3.7" and python_version < "4.0"-pyphen==0.12.0; python_version >= "3.7"-pytest-celery==0.0.0-pytest-cov==3.0.0; python_version >= "3.6"-pytest-django-queries==1.2.0-pytest-django==4.5.2; python_version >= "3.5"-pytest-forked==1.4.0; python_version >= "3.6"-pytest-mock==3.8.2; python_version >= "3.7"-pytest-recording==0.12.1; python_version >= "3.5"-pytest-socket==0.5.1; python_version >= "3.7" and python_version < "4.0"-pytest-xdist==2.5.0; python_version >= "3.6"-pytest==7.1.2; python_version >= "3.7"-python-crontab==2.6.0-python-dateutil==2.8.2; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.3.0" and python_version >= "3.7"-python-dotenv==0.20.0; python_version >= "3.7"-python-http-client==3.3.7; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"-python-json-logger==2.0.4; python_version >= "3.5"-python-magic-bin==0.4.14; sys_platform == "win32"-python-magic==0.4.27; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"-pytimeparse==1.1.8-pytz==2022.2.1; python_version >= "3.7" and python_version < "4.0"-pywatchman==1.4.1-pyxb==1.2.5-pyyaml==6.0; python_version >= "3.7"-razorpay==1.3.0-redis==4.3.4; python_version >= "3.7" and python_version < "4.0"-requests-oauthlib==1.3.1; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"-requests==2.28.1; python_version >= "3.7" and python_version < "4"-rsa==4.9; python_version >= "3.6" and python_version < "4" and (python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version >= "3.7")-rx==1.6.1-s3transfer==0.6.0; python_version >= "3.7"-sendgrid==6.9.7; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.5.0")-sentry-sdk==1.9.5-singledispatch==3.7.0; python_version >= "3.6" and python_version < "4.0"-six==1.16.0; python_version >= "3.7" and python_full_version < "3.0.0" and python_version < "4.0" or python_version >= "3.7" and python_version < "4.0" and python_full_version >= "3.6.0"-sniffio==1.2.0; python_version >= "3.7" and python_full_version >= "3.6.2"-snowballstemmer==2.2.0; python_version >= "3.6"-sortedcontainers==2.4.0; python_version >= "3.7" and python_version < "4.0"-soupsieve==2.3.2.post1; python_version >= "3.6"-sqlparse==0.4.2; python_version >= "3.7" and python_version < "4.0"-starkbank-ecdsa==2.0.3; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"-stripe==3.5.0; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.4.0")-sympy==1.11; python_version >= "3.8"-text-unidecode==1.3-threadloop==1.0.2; python_version >= "3.7"-thrift==0.16.0; python_version >= "3.7"-tinycss2==1.1.1; python_version >= "3.7"-toml==0.10.2; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7"-tomli==2.0.1; python_full_version <= "3.11.0a6" and python_full_version >= "3.7.2" and python_version >= "3.7" and (python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.7") and python_version < "3.11"-tomlkit==0.11.4; python_version >= "3.6" and python_version < "4.0" and python_full_version >= "3.7.2"-tornado==6.2; python_version >= "3.7"-tox==3.25.1; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.5.0")-types-certifi==2021.10.8.3-types-freezegun==1.1.10-types-pkg-resources==0.1.3-types-python-dateutil==2.8.19-types-pytz==2022.2.1.0-types-redis==4.3.18-types-requests==2.28.9-types-six==1.16.19-types-urllib3==1.26.23-typing-extensions==4.3.0; python_version < "3.10" and python_full_version >= "3.7.2" and python_version >= "3.7"-tzdata==2022.2; python_version >= "2"-urllib3==1.26.12; python_version >= "3.7" and python_full_version < "3.0.0" and python_version < "4" and (python_version >= "3.0" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.0") and (python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.4.0") or python_full_version >= "3.6.0" and python_version < "4" and python_version >= "3.7" and (python_version >= "3.0" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.0") and (python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.4.0")-uvicorn==0.17.6; python_version >= "3.7"-uvloop==0.16.0; sys_platform != "win32" and sys_platform != "cygwin" and platform_python_implementation != "PyPy" and python_version >= "3.7"-vcrpy==4.2.0; python_version >= "3.7"-vine==5.0.0; python_version >= "3.7"-virtualenv==20.16.3; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7"-watchgod==0.8.2; python_version >= "3.7"-wcwidth==0.2.5; python_full_version >= "3.6.2" and python_version >= "3.7"-weasyprint==56.1; python_version >= "3.7"-webencodings==0.5.1; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7"-websockets==10.3; python_version >= "3.7"-wrapt==1.14.1; python_version < "3.11" and python_full_version >= "3.7.2" and (python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7") and (python_version >= "3.7" and python_full_version < "3.0.0" and python_version < "4.0" or python_version >= "3.7" and python_version < "4.0" and python_full_version >= "3.5.0")-yarl==1.8.1; python_version >= "3.7"-zipp==3.8.1; python_version < "3.10" and python_version >= "3.7"-zopfli==0.2.1; python_version >= "3.7"+adyen==4.0.0 ; python_version >= "3.9" and python_version < "3.10"+amqp==5.1.1 ; python_version >= "3.9" and python_version < "3.10"+aniso8601==7.0.0 ; python_version >= "3.9" and python_version < "3.10"+anyio==3.6.1 ; python_version >= "3.9" and python_version < "3.10"+asgiref==3.5.2 ; python_version >= "3.9" and python_version < "3.10"+astroid==2.12.5 ; python_version >= "3.9" and python_version < "3.10"+async-timeout==4.0.2 ; python_version >= "3.9" and python_version < "3.10"+atomicwrites==1.4.1 ; python_version >= "3.9" and python_version < "3.10" and sys_platform == "win32"+attrs==22.1.0 ; python_version >= "3.9" and python_version < "3.10"+authlib==1.0.1 ; python_version >= "3.9" and python_version < "3.10"+authorizenet==1.1.4 ; python_version >= "3.9" and python_version < "3.10"+azure-common==1.1.28 ; python_version >= "3.9" and python_version < "3.10"+azure-core==1.25.0 ; python_version >= "3.9" and python_version < "3.10"+azure-storage-blob==12.13.1 ; python_version >= "3.9" and python_version < "3.10"+azure-storage-common==2.1.0 ; python_version >= "3.9" and python_version < "3.10"+babel==2.10.3 ; python_version >= "3.9" and python_version < "3.10"+bcrypt==4.0.0 ; python_version >= "3.9" and python_version < "3.10"+beautifulsoup4==4.7.1 ; python_version >= "3.9" and python_version < "3.10"+beautifultable==0.7.0 ; python_version >= "3.9" and python_version < "3.10"+before-after==1.0.1 ; python_version >= "3.9" and python_version < "3.10"+billiard==3.6.4.0 ; python_version >= "3.9" and python_version < "3.10"+black==22.6.0 ; python_version >= "3.9" and python_version < "3.10"+boto3==1.24.62 ; python_version >= "3.9" and python_version < "3.10"+botocore==1.27.62 ; python_version >= "3.9" and python_version < "3.10"+braintree==4.16.0 ; python_version >= "3.9" and python_version < "3.10"+brotli==1.0.9 ; platform_python_implementation == "CPython" and python_version >= "3.9" and python_version < "3.10"+brotlicffi==1.0.9.2 ; platform_python_implementation != "CPython" and python_version >= "3.9" and python_version < "3.10"+cachetools==5.2.0 ; python_version >= "3.9" and python_version < "3.10"+celery==5.2.7 ; python_version >= "3.9" and python_version < "3.10"+celery[redis]==5.2.7 ; python_version >= "3.9" and python_version < "3.10"+certifi==2022.6.15 ; python_version >= "3.9" and python_version < "3.10"+cffi==1.15.1 ; python_version >= "3.9" and python_version < "3.10"+cfgv==3.3.1 ; python_version >= "3.9" and python_version < "3.10"+charset-normalizer==2.1.1 ; python_version >= "3.9" and python_version < "3.10"+click-didyoumean==0.3.0 ; python_version >= "3.9" and python_version < "3.10"+click-plugins==1.1.1 ; python_version >= "3.9" and python_version < "3.10"+click-repl==0.2.0 ; python_version >= "3.9" and python_version < "3.10"+click==8.1.3 ; python_version >= "3.9" and python_version < "3.10"+codecov==2.1.12 ; python_version >= "3.9" and python_version < "3.10"+colorama==0.4.5 ; python_version >= "3.9" and python_version < "3.10"+coverage==6.4.4 ; python_version >= "3.9" and python_version < "3.10"+coverage[toml]==6.4.4 ; python_version >= "3.9" and python_version < "3.10"+cryptography==37.0.4 ; python_version >= "3.9" and python_version < "3.10"+cssselect2==0.6.0 ; python_version >= "3.9" and python_version < "3.10"+deprecated==1.2.13 ; python_version >= "3.9" and python_version < "3.10"+dill==0.3.5.1 ; python_version >= "3.9" and python_version < "3.10"+distlib==0.3.6 ; python_version >= "3.9" and python_version < "3.10"+dj-database-url==0.5.0 ; python_version >= "3.9" and python_version < "3.10"+dj-email-url==1.0.5 ; python_version >= "3.9" and python_version < "3.10"+django-appconf==1.0.5 ; python_version >= "3.9" and python_version < "3.10"+django-cache-url==3.4.2 ; python_version >= "3.9" and python_version < "3.10"+django-celery-beat==2.3.0 ; python_version >= "3.9" and python_version < "3.10"+django-countries==7.3.2 ; python_version >= "3.9" and python_version < "3.10"+django-debug-toolbar-request-history==0.1.4 ; python_version >= "3.9" and python_version < "3.10"+django-debug-toolbar==3.6.0 ; python_version >= "3.9" and python_version < "3.10"+django-extensions==3.2.0 ; python_version >= "3.9" and python_version < "3.10"+django-filter==22.1 ; python_version >= "3.9" and python_version < "3.10"+django-graphiql-debug-toolbar==0.2.0 ; python_version >= "3.9" and python_version < "3.10"+django-js-asset==2.0.0 ; python_version >= "3.9" and python_version < "3.10"+django-measurement==3.2.4 ; python_version >= "3.9" and python_version < "3.10"+django-mptt==0.13.4 ; python_version >= "3.9" and python_version < "3.10"+django-phonenumber-field==6.4.0 ; python_version >= "3.9" and python_version < "3.10"+django-prices-openexchangerates==1.2.0 ; python_version >= "3.9" and python_version < "3.10"+django-prices-vatlayer==1.1.0 ; python_version >= "3.9" and python_version < "3.10"+django-prices==2.3.0 ; python_version >= "3.9" and python_version < "3.10"+django-redis==5.2.0 ; python_version >= "3.9" and python_version < "3.10"+django-storages[google]==1.13.1 ; python_version >= "3.9" and python_version < "3.10"+django-stubs-ext==0.5.0 ; python_version >= "3.9" and python_version < "3.10"+django-stubs==1.8.0 ; python_version >= "3.9" and python_version < "3.10"+django-timezone-field==5.0 ; python_version >= "3.9" and python_version < "3.10"+django-versatileimagefield==2.2 ; python_version >= "3.9" and python_version < "3.10"+django==4.0.7 ; python_version >= "3.9" and python_version < "3.10"+django[bcrypt]==4.0.7 ; python_version >= "3.9" and python_version < "3.10"+draftjs-sanitizer==1.0.0 ; python_version >= "3.9" and python_version < "3.10"+enmerkar==0.7.1 ; python_version >= "3.9" and python_version < "3.10"+et-xmlfile==1.1.0 ; python_version >= "3.9" and python_version < "3.10"+execnet==1.9.0 ; python_version >= "3.9" and python_version < "3.10"+faker==14.1.0 ; python_version >= "3.9" and python_version < "3.10"+fakeredis==1.9.0 ; python_version >= "3.9" and python_version < "3.10"+filelock==3.8.0 ; python_version >= "3.9" and python_version < "3.10"+flake8==4.0.1 ; python_version >= "3.9" and python_version < "3.10"+fonttools[woff]==4.37.1 ; python_version >= "3.9" and python_version < "3.10"+freezegun==1.2.2 ; python_version >= "3.9" and python_version < "3.10"+google-api-core==2.8.2 ; python_version >= "3.9" and python_version < "3.10"+google-api-core[grpc]==2.8.2 ; python_version >= "3.9" and python_version < "3.10"+google-auth==2.11.0 ; python_version >= "3.9" and python_version < "3.10"+google-cloud-core==2.3.2 ; python_version >= "3.9" and python_version < "3.10"+google-cloud-pubsub==2.13.6 ; python_version >= "3.9" and python_version < "3.10"+google-cloud-storage==2.5.0 ; python_version >= "3.9" and python_version < "3.10"+google-crc32c==1.3.0 ; python_version >= "3.9" and python_version < "3.10"+google-i18n-address==2.5.2 ; python_version >= "3.9" and python_version < "3.10"+google-measurement-protocol==1.1.0 ; python_version >= "3.9" and python_version < "3.10"+google-resumable-media==2.3.3 ; python_version >= "3.9" and python_version < "3.10"+googleapis-common-protos==1.56.4 ; python_version >= "3.9" and python_version < "3.10"+googleapis-common-protos[grpc]==1.56.4 ; python_version >= "3.9" and python_version < "3.10"+graphene-django==2.15.0 ; python_version >= "3.9" and python_version < "3.10"+graphene==2.1.9 ; python_version >= "3.9" and python_version < "3.10"+graphql-core==2.3.2 ; python_version >= "3.9" and python_version < "3.10"+graphql-relay==2.0.1 ; python_version >= "3.9" and python_version < "3.10"+grpc-google-iam-v1==0.12.4 ; python_version >= "3.9" and python_version < "3.10"+grpcio-status==1.48.0 ; python_version >= "3.9" and python_version < "3.10"+grpcio==1.48.0 ; python_version >= "3.9" and python_version < "3.10"+gunicorn==20.1.0 ; python_version >= "3.9" and python_version < "3.10"+h11==0.13.0 ; python_version >= "3.9" and python_version < "3.10"+html-to-draftjs==1.0.1 ; python_version >= "3.9" and python_version < "3.10"+html2text==2020.1.16 ; python_version >= "3.9" and python_version < "3.10"+html5lib==1.1 ; python_version >= "3.9" and python_version < "3.10"+httptools==0.4.0 ; python_version >= "3.9" and python_version < "3.10"+identify==2.5.3 ; python_version >= "3.9" and python_version < "3.10"+idna==3.3 ; python_version >= "3.9" and python_version < "3.10"+importlib-metadata==4.12.0 ; python_version >= "3.9" and python_version < "3.10"+iniconfig==1.1.1 ; python_version >= "3.9" and python_version < "3.10"+isodate==0.6.1 ; python_version >= "3.9" and python_version < "3.10"+isort==5.10.1 ; python_version >= "3.9" and python_version < "3.10"+jaeger-client==4.8.0 ; python_version >= "3.9" and python_version < "3.10"+jinja2==3.1.2 ; python_version >= "3.9" and python_version < "3.10"+jmespath==1.0.1 ; python_version >= "3.9" and python_version < "3.10"+jsonfield==3.1.0 ; python_version >= "3.9" and python_version < "3.10"+kombu==5.2.4 ; python_version >= "3.9" and python_version < "3.10"+lazy-object-proxy==1.7.1 ; python_version >= "3.9" and python_version < "3.10"+lxml==4.9.1 ; python_version >= "3.9" and python_version < "3.10"+markdown==3.4.1 ; python_version >= "3.9" and python_version < "3.10"+markupsafe==2.1.1 ; python_version >= "3.9" and python_version < "3.10"+maxminddb==2.2.0 ; python_version >= "3.9" and python_version < "3.10"+mccabe==0.6.1 ; python_version >= "3.9" and python_version < "3.10"+measurement==3.2.0 ; python_version >= "3.9" and python_version < "3.10"+micawber==0.5.4 ; python_version >= "3.9" and python_version < "3.10"+mock==1.0.1 ; python_version >= "3.9" and python_version < "3.10"+mpmath==1.2.1 ; python_version >= "3.9" and python_version < "3.10"+msrest==0.7.1 ; python_version >= "3.9" and python_version < "3.10"+multidict==6.0.2 ; python_version >= "3.9" and python_version < "3.10"+mypy-extensions==0.4.3 ; python_version >= "3.9" and python_version < "3.10"+mypy==0.971 ; python_version >= "3.9" and python_version < "3.10"+nodeenv==1.7.0 ; python_version >= "3.9" and python_version < "3.10"+oauthlib==3.2.0 ; python_version >= "3.9" and python_version < "3.10"+openpyxl==3.0.10 ; python_version >= "3.9" and python_version < "3.10"+opentracing==2.4.0 ; python_version >= "3.9" and python_version < "3.10"+packaging==21.3 ; python_version >= "3.9" and python_version < "3.10"+pathspec==0.9.0 ; python_version >= "3.9" and python_version < "3.10"+petl==1.7.11 ; python_version >= "3.9" and python_version < "3.10"+phonenumberslite==8.12.54 ; python_version >= "3.9" and python_version < "3.10"+pillow==9.2.0 ; python_version >= "3.9" and python_version < "3.10"+platformdirs==2.5.2 ; python_version >= "3.9" and python_version < "3.10"+pluggy==1.0.0 ; python_version >= "3.9" and python_version < "3.10"+posuto==2022.8.0 ; python_version >= "3.9" and python_version < "3.10"+pre-commit==2.20.0 ; python_version >= "3.9" and python_version < "3.10"+prices==1.1.0 ; python_version >= "3.9" and python_version < "3.10"+promise==2.3 ; python_version >= "3.9" and python_version < "3.10"+prompt-toolkit==3.0.30 ; python_version >= "3.9" and python_version < "3.10"+proto-plus==1.22.0 ; python_version >= "3.9" and python_version < "3.10"+protobuf==4.21.5 ; python_version >= "3.9" and python_version < "3.10"+psycopg2==2.9.3 ; python_version >= "3.9" and python_version < "3.10"+py==1.11.0 ; python_version >= "3.9" and python_version < "3.10"+pyasn1-modules==0.2.8 ; python_version >= "3.9" and python_version < "3.10"+pyasn1==0.4.8 ; python_version >= "3.9" and python_version < "3.10"+pybars3==0.9.7 ; python_version >= "3.9" and python_version < "3.10"+pycodestyle==2.8.0 ; python_version >= "3.9" and python_version < "3.10"+pycparser==2.21 ; python_version >= "3.9" and python_version < "3.10"+pydocstyle==6.1.1 ; python_version >= "3.9" and python_version < "3.10"+pydyf==0.2.0 ; python_version >= "3.9" and python_version < "3.10"+pyflakes==2.4.0 ; python_version >= "3.9" and python_version < "3.10"+pyjwt==2.4.0 ; python_version >= "3.9" and python_version < "3.10"+pylint-celery==0.3 ; python_version >= "3.9" and python_version < "3.10"+pylint-django==2.5.3 ; python_version >= "3.9" and python_version < "3.10"+pylint-plugin-utils==0.7 ; python_version >= "3.9" and python_version < "3.10"+pylint==2.15.0 ; python_version >= "3.9" and python_version < "3.10"+pymeta3==0.5.1 ; python_version >= "3.9" and python_version < "3.10"+pyparsing==3.0.9 ; python_version >= "3.9" and python_version < "3.10"+pyphen==0.12.0 ; python_version >= "3.9" and python_version < "3.10"+pytest-celery==0.0.0 ; python_version >= "3.9" and python_version < "3.10"+pytest-cov==3.0.0 ; python_version >= "3.9" and python_version < "3.10"+pytest-django-queries==1.2.0 ; python_version >= "3.9" and python_version < "3.10"+pytest-django==4.5.2 ; python_version >= "3.9" and python_version < "3.10"+pytest-forked==1.4.0 ; python_version >= "3.9" and python_version < "3.10"+pytest-mock==3.8.2 ; python_version >= "3.9" and python_version < "3.10"+pytest-recording==0.12.1 ; python_version >= "3.9" and python_version < "3.10"+pytest-socket==0.5.1 ; python_version >= "3.9" and python_version < "3.10"+pytest-xdist==2.5.0 ; python_version >= "3.9" and python_version < "3.10"+pytest==7.1.2 ; python_version >= "3.9" and python_version < "3.10"+python-crontab==2.6.0 ; python_version >= "3.9" and python_version < "3.10"+python-dateutil==2.8.2 ; python_version >= "3.9" and python_version < "3.10"+python-dotenv==0.20.0 ; python_version >= "3.9" and python_version < "3.10"+python-http-client==3.3.7 ; python_version >= "3.9" and python_version < "3.10"+python-json-logger==2.0.4 ; python_version >= "3.9" and python_version < "3.10"+python-magic-bin==0.4.14 ; python_version >= "3.9" and python_version < "3.10" and sys_platform == "win32"+python-magic==0.4.27 ; python_version >= "3.9" and python_version < "3.10"+pytimeparse==1.1.8 ; python_version >= "3.9" and python_version < "3.10"+pytz==2022.2.1 ; python_version >= "3.9" and python_version < "3.10"+pywatchman==1.4.1 ; python_version >= "3.9" and python_version < "3.10"+pyxb==1.2.5 ; python_version >= "3.9" and python_version < "3.10"+pyyaml==6.0 ; python_version >= "3.9" and python_version < "3.10"+razorpay==1.3.0 ; python_version >= "3.9" and python_version < "3.10"+redis==4.3.4 ; python_version >= "3.9" and python_version < "3.10"+requests-oauthlib==1.3.1 ; python_version >= "3.9" and python_version < "3.10"+requests==2.28.1 ; python_version >= "3.9" and python_version < "3.10"+rsa==4.9 ; python_version >= "3.9" and python_version < "3.10"+rx==1.6.1 ; python_version >= "3.9" and python_version < "3.10"+s3transfer==0.6.0 ; python_version >= "3.9" and python_version < "3.10"+sendgrid==6.9.7 ; python_version >= "3.9" and python_version < "3.10"+sentry-sdk==1.9.5 ; python_version >= "3.9" and python_version < "3.10"+setuptools==65.3.0 ; python_version >= "3.9" and python_version < "3.10"+singledispatch==3.7.0 ; python_version >= "3.9" and python_version < "3.10"+six==1.16.0 ; python_version >= "3.9" and python_version < "3.10"+sniffio==1.2.0 ; python_version >= "3.9" and python_version < "3.10"+snowballstemmer==2.2.0 ; python_version >= "3.9" and python_version < "3.10"+sortedcontainers==2.4.0 ; python_version >= "3.9" and python_version < "3.10"+soupsieve==2.3.2.post1 ; python_version >= "3.9" and python_version < "3.10"+sqlparse==0.4.2 ; python_version >= "3.9" and python_version < "3.10"+starkbank-ecdsa==2.0.3 ; python_version >= "3.9" and python_version < "3.10"+stripe==3.5.0 ; python_version >= "3.9" and python_version < "3.10"+sympy==1.11 ; python_version >= "3.9" and python_version < "3.10"+text-unidecode==1.3 ; python_version >= "3.9" and python_version < "3.10"+threadloop==1.0.2 ; python_version >= "3.9" and python_version < "3.10"+thrift==0.16.0 ; python_version >= "3.9" and python_version < "3.10"+tinycss2==1.1.1 ; python_version >= "3.9" and python_version < "3.10"+toml==0.10.2 ; python_version >= "3.9" and python_version < "3.10"+tomli==2.0.1 ; python_version >= "3.9" and python_version < "3.10"+tomlkit==0.11.4 ; python_version >= "3.9" and python_version < "3.10"+tornado==6.2 ; python_version >= "3.9" and python_version < "3.10"+tox==3.25.1 ; python_version >= "3.9" and python_version < "3.10"+types-certifi==2021.10.8.3 ; python_version >= "3.9" and python_version < "3.10"+types-freezegun==1.1.10 ; python_version >= "3.9" and python_version < "3.10"+types-pkg-resources==0.1.3 ; python_version >= "3.9" and python_version < "3.10"+types-python-dateutil==2.8.19 ; python_version >= "3.9" and python_version < "3.10"+types-pytz==2022.2.1.0 ; python_version >= "3.9" and python_version < "3.10"+types-redis==4.3.19 ; python_version >= "3.9" and python_version < "3.10"+types-requests==2.28.9 ; python_version >= "3.9" and python_version < "3.10"+types-six==1.16.19 ; python_version >= "3.9" and python_version < "3.10"+types-urllib3==1.26.23 ; python_version >= "3.9" and python_version < "3.10"+typing-extensions==4.3.0 ; python_version >= "3.9" and python_version < "3.10"+tzdata==2022.2 ; python_version >= "3.9" and python_version < "3.10"+urllib3==1.26.12 ; python_version >= "3.9" and python_version < "3.10"+uvicorn[standard]==0.17.6 ; python_version >= "3.9" and python_version < "3.10"+uvloop==0.16.0 ; sys_platform != "win32" and sys_platform != "cygwin" and platform_python_implementation != "PyPy" and python_version >= "3.9" and python_version < "3.10"+vcrpy==4.2.0 ; python_version >= "3.9" and python_version < "3.10"+vine==5.0.0 ; python_version >= "3.9" and python_version < "3.10"+virtualenv==20.16.3 ; python_version >= "3.9" and python_version < "3.10"+watchgod==0.8.2 ; python_version >= "3.9" and python_version < "3.10"+wcwidth==0.2.5 ; python_version >= "3.9" and python_version < "3.10"+weasyprint==56.1 ; python_version >= "3.9" and python_version < "3.10"+webencodings==0.5.1 ; python_version >= "3.9" and python_version < "3.10"+websockets==10.3 ; python_version >= "3.9" and python_version < "3.10"+wrapt==1.14.1 ; python_version >= "3.9" and python_version < "3.10"+yarl==1.8.1 ; python_version >= "3.9" and python_version < "3.10"+zipp==3.8.1 ; python_version >= "3.9" and python_version < "3.10"+zopfli==0.2.1 ; python_version >= "3.9" and python_version < "3.10"diff --git a/saleor/account/migrations/0046_user_jwt_token_key.py b/saleor/account/migrations/0046_user_jwt_token_key.pyindex d9c346106a..dd34505d85 100644--- a/saleor/account/migrations/0046_user_jwt_token_key.py+++ b/saleor/account/migrations/0046_user_jwt_token_key.py@@ -1,5 +1,6 @@# Generated by Django 3.0.6 on 2020-06-08 13:24+from functools import partialimport django.utils.cryptofrom django.db import migrations, models@@ -15,7 +16,8 @@ class Migration(migrations.Migration):model_name="user",name="jwt_token_key",field=models.CharField(- default=django.utils.crypto.get_random_string, max_length=12+ default=partial(django.utils.crypto.get_random_string, length=12),+ max_length=12,),),]diff --git a/saleor/account/models.py b/saleor/account/models.pyindex 59ceaf6a59..94c1a7792e 100644--- a/saleor/account/models.py+++ b/saleor/account/models.py@@ -1,4 +1,5 @@-from typing import Collection, Union+from functools import partial+from typing import Iterable, Unionfrom uuid import uuid4from django.conf import settings@@ -13,7 +14,7 @@ from django.contrib.auth.models import (from django.contrib.postgres.indexes import GinIndexfrom django.db import modelsfrom django.db.models import JSONField # type: ignore-from django.db.models import Q, QuerySet, Value+from django.db.models import Q, Valuefrom django.db.models.expressions import Exists, OuterReffrom django.forms.models import model_to_dictfrom django.utils import timezone@@ -180,7 +181,9 @@ class User(PermissionsMixin, ModelWithMetadata, AbstractBaseUser):Address, related_name="+", null=True, blank=True, on_delete=models.SET_NULL)avatar = models.ImageField(upload_to="user-avatars", blank=True, null=True)- jwt_token_key = models.CharField(max_length=12, default=get_random_string)+ jwt_token_key = models.CharField(+ max_length=12, default=partial(get_random_string, length=12)+ )language_code = models.CharField(max_length=35, choices=settings.LANGUAGES, default=settings.LANGUAGE_CODE)@@ -221,7 +224,7 @@ class User(PermissionsMixin, ModelWithMetadata, AbstractBaseUser):self._effective_permissions = None@property- def effective_permissions(self) -> "QuerySet[Permission]":+ def effective_permissions(self) -> models.QuerySet[Permission]:if self._effective_permissions is None:self._effective_permissions = get_permissions()if not self.is_superuser:@@ -259,7 +262,7 @@ class User(PermissionsMixin, ModelWithMetadata, AbstractBaseUser):return self._effective_permissions@effective_permissions.setter- def effective_permissions(self, value: "QuerySet[Permission]"):+ def effective_permissions(self, value: models.QuerySet[Permission]):self._effective_permissions = value# Drop cache for authentication backendself._effective_permissions_cache = None@@ -287,7 +290,7 @@ class User(PermissionsMixin, ModelWithMetadata, AbstractBaseUser):return _user_has_perm(self, perm, obj)def has_perms(- self, perm_list: Collection[Union[BasePermissionEnum, str]], obj=None+ self, perm_list: Iterable[Union[BasePermissionEnum, str]], obj=None) -> bool:# This method is overridden to accept perm as BasePermissionEnumperm_list = [diff --git a/saleor/checkout/complete_checkout.py b/saleor/checkout/complete_checkout.pyindex 090bd1c43c..f6afcab83f 100644--- a/saleor/checkout/complete_checkout.py+++ b/saleor/checkout/complete_checkout.py@@ -498,7 +498,7 @@ def _create_order()order = Order.objects.create(**order_data,- checkout_token=checkout.token,+ checkout_token=str(checkout.token),status=status,origin=OrderOrigin.CHECKOUT,channel=checkout_info.channel,@@ -1042,11 +1042,11 @@ def _create_order_from_checkout(status=status,language_code=checkout_info.checkout.language_code,tracking_client_id=tracking_code or "",- total=taxed_total,- undiscounted_total=undiscounted_total,+ total=taxed_total, # type: ignore+ undiscounted_total=undiscounted_total, # type: ignoreshipping_tax_rate=shipping_tax_rate,voucher=voucher,- checkout_token=checkout_info.checkout.token,+ checkout_token=str(checkout_info.checkout.token),origin=OrderOrigin.CHECKOUT,channel=checkout_info.channel,metadata=checkout_info.checkout.metadata,diff --git a/saleor/checkout/fetch.py b/saleor/checkout/fetch.pyindex 224d940df8..1f6e1a68b9 100644--- a/saleor/checkout/fetch.py+++ b/saleor/checkout/fetch.py@@ -13,7 +13,6 @@ from typing import (Union,)-from django.utils.encoding import smart_textfrom django.utils.functional import SimpleLazyObjectfrom ..discount import DiscountInfo, VoucherType@@ -131,7 +130,7 @@ class ShippingMethodInfo(DeliveryMethodBase):@propertydef delivery_method_name(self) -> Dict[str, Optional[str]]:- return {"shipping_method_name": smart_text(self.delivery_method.name)}+ return {"shipping_method_name": str(self.delivery_method.name)}@propertydef delivery_method_order_field(self) -> dict:@@ -171,7 +170,7 @@ class CollectionPointInfo(DeliveryMethodBase):@propertydef delivery_method_name(self) -> Dict[str, Optional[str]]:- return {"collection_point_name": smart_text(self.delivery_method)}+ return {"collection_point_name": str(self.delivery_method)}def get_warehouse_filter_lookup(self) -> Dict[str, Any]:return (diff --git a/saleor/checkout/tests/test_checkout_complete.py b/saleor/checkout/tests/test_checkout_complete.pyindex 7d2fa4464c..cab0858849 100644--- a/saleor/checkout/tests/test_checkout_complete.py+++ b/saleor/checkout/tests/test_checkout_complete.py@@ -596,7 +596,7 @@ def test_create_order_doesnt_duplicate_order(app=None,manager=manager,)- assert order_1.checkout_token == checkout.token+ assert order_1.checkout_token == str(checkout.token)order_2 = _create_order(checkout_info=checkout_info,@@ -1131,7 +1131,7 @@ def test_create_order_with_variant_tracking_false(app=None,manager=manager,)- assert order_1.checkout_token == checkout.token+ assert order_1.checkout_token == str(checkout.token)@override_settings(LANGUAGE_CODE="fr")diff --git a/saleor/core/auth.py b/saleor/core/auth.pyindex a9321689d1..6cf42c59f4 100644--- a/saleor/core/auth.py+++ b/saleor/core/auth.py@@ -1,14 +1,14 @@from typing import Optional-from django.core.handlers.wsgi import WSGIRequest+from django.http import HttpRequestSALEOR_AUTH_HEADER = "HTTP_AUTHORIZATION_BEARER"DEFAULT_AUTH_HEADER = "HTTP_AUTHORIZATION"AUTH_HEADER_PREFIXES = ["JWT", "BEARER"]-def get_token_from_request(request: WSGIRequest) -> Optional[str]:- auth_token = request.META.get(SALEOR_AUTH_HEADER)+def get_token_from_request(request: HttpRequest) -> Optional[str]:+ auth_token: Optional[str] = request.META.get(SALEOR_AUTH_HEADER)if not auth_token:auth = request.META.get(DEFAULT_AUTH_HEADER, "").split(maxsplit=1)diff --git a/saleor/core/exceptions.py b/saleor/core/exceptions.pyindex 95b8b86980..c150983115 100644--- a/saleor/core/exceptions.py+++ b/saleor/core/exceptions.py@@ -1,6 +1,6 @@from dataclasses import dataclassfrom enum import Enum-from typing import TYPE_CHECKING, List, Optional, Sequence, Union+from typing import TYPE_CHECKING, Iterable, List, Optional, Unionfrom graphql import GraphQLError@@ -57,7 +57,7 @@ class ProductNotPublished(Exception):class PermissionDenied(Exception):- def __init__(self, message=None, *, permissions: Sequence[Enum] = None):+ def __init__(self, message=None, *, permissions: Iterable[Enum] = None):if not message:if permissions:permission_list = ", ".join(p.name for p in permissions)diff --git a/saleor/core/models.py b/saleor/core/models.pyindex 3120aa6772..c08d793a3d 100644--- a/saleor/core/models.py+++ b/saleor/core/models.py@@ -55,7 +55,7 @@ class PublishableModel(models.Model):published_at = models.DateTimeField(blank=True, null=True)is_published = models.BooleanField(default=False)- objects = models.Manager.from_queryset(PublishedQuerySet)()+ objects: Any = models.Manager.from_queryset(PublishedQuerySet)()class Meta:abstract = Truediff --git a/saleor/discount/utils.py b/saleor/discount/utils.pyindex ffca97ca0c..f1fd79a88a 100644--- a/saleor/discount/utils.py+++ b/saleor/discount/utils.py@@ -280,7 +280,7 @@ def fetch_categories(sale_pks: Iterable[str]) -> Dict[int, Set[int]]:for sale_pk, category_pks in category_map.items():subcategory_map[sale_pk] = set(Category.tree.filter(pk__in=category_pks)- .get_descendants(include_self=True)+ .get_descendants(include_self=True) # type: ignore.values_list("pk", flat=True))return subcategory_mapdiff --git a/saleor/graphql/account/mutations/authentication.py b/saleor/graphql/account/mutations/authentication.pyindex 311afa48d7..2f6636520a 100644--- a/saleor/graphql/account/mutations/authentication.py+++ b/saleor/graphql/account/mutations/authentication.py@@ -3,10 +3,13 @@ from typing import Optionalimport grapheneimport jwtfrom django.core.exceptions import ValidationError-from django.middleware.csrf import _compare_masked_tokens # type: ignore-from django.middleware.csrf import _get_new_csrf_token+from django.middleware.csrf import ( # type: ignore+ _get_new_csrf_string,+ _mask_cipher_secret,+ _unmask_cipher_token,+)from django.utils import timezone-from django.utils.crypto import get_random_string+from django.utils.crypto import constant_time_compare, get_random_stringfrom graphene.types.generic import GenericScalarfrom ....account import models@@ -60,6 +63,17 @@ def get_user(payload):return user+def _does_token_match(token: str, csrf_token: str) -> bool:+ return constant_time_compare(+ _unmask_cipher_token(token),+ _unmask_cipher_token(csrf_token),+ )+++def _get_new_csrf_token() -> str:+ return _mask_cipher_secret(_get_new_csrf_string())++class CreateToken(BaseMutation):"""Mutation that authenticates a user and returns token and user data."""@@ -216,7 +230,7 @@ class RefreshToken(BaseMutation):)})- is_valid = _compare_masked_tokens(csrf_token, payload["csrfToken"])+ is_valid = _does_token_match(csrf_token, payload["csrfToken"])if not is_valid:raise ValidationError({@@ -303,7 +317,7 @@ class DeactivateAllUserTokens(BaseMutation):@classmethoddef perform_mutation(cls, _root, info, **data):user = info.context.user- user.jwt_token_key = get_random_string()+ user.jwt_token_key = get_random_string(length=12)user.save(update_fields=["jwt_token_key", "updated_at"])return cls()diff --git a/saleor/graphql/account/mutations/base.py b/saleor/graphql/account/mutations/base.pyindex 9aaa0c9669..3d4fb2c779 100644--- a/saleor/graphql/account/mutations/base.py+++ b/saleor/graphql/account/mutations/base.py@@ -12,7 +12,6 @@ from ....account.notifications import ()from ....account.search import prepare_user_search_document_valuefrom ....checkout import AddressType-from ....core.db.utils import set_mutation_flag_in_contextfrom ....core.exceptions import PermissionDeniedfrom ....core.permissions import AccountPermissions, AuthorizationFiltersfrom ....core.tracing import traced_atomic_transaction@@ -24,6 +23,7 @@ from ...account.i18n import I18nMixinfrom ...account.types import Address, AddressInput, Userfrom ...app.dataloaders import load_appfrom ...channel.utils import clean_channel, validate_channel+from ...core.context import set_mutation_flag_in_contextfrom ...core.enums import LanguageCodeEnumfrom ...core.mutations import (BaseMutation,diff --git a/saleor/graphql/account/tests/mutations/test_token_create.py b/saleor/graphql/account/tests/mutations/test_token_create.pyindex e9c1d91fcf..fb5f2ff539 100644--- a/saleor/graphql/account/tests/mutations/test_token_create.py+++ b/saleor/graphql/account/tests/mutations/test_token_create.py@@ -1,7 +1,6 @@from datetime import datetime, timedelta, timezoneimport graphene-from django.middleware.csrf import _get_new_csrf_tokenfrom freezegun import freeze_timefrom .....account.error_codes import AccountErrorCode@@ -12,6 +11,7 @@ from .....core.jwt import (jwt_decode,)from ....tests.utils import get_graphql_content+from ...mutations.authentication import _get_new_csrf_tokenMUTATION_CREATE_TOKEN = """mutation tokenCreate($email: String!, $password: String!){diff --git a/saleor/graphql/account/tests/mutations/test_token_refresh.py b/saleor/graphql/account/tests/mutations/test_token_refresh.pyindex d9349181e4..5151e8f05e 100644--- a/saleor/graphql/account/tests/mutations/test_token_refresh.py+++ b/saleor/graphql/account/tests/mutations/test_token_refresh.py@@ -1,6 +1,5 @@from datetime import datetime-from django.middleware.csrf import _get_new_csrf_tokenfrom freezegun import freeze_timefrom .....account.error_codes import AccountErrorCode@@ -13,6 +12,7 @@ from .....core.jwt import (jwt_decode,)from ....tests.utils import get_graphql_content+from ...mutations.authentication import _get_new_csrf_tokenMUTATION_TOKEN_REFRESH = """mutation tokenRefresh($token: String, $csrf_token: String){diff --git a/saleor/graphql/account/tests/mutations/test_tokens_deactivate_all.py b/saleor/graphql/account/tests/mutations/test_tokens_deactivate_all.pyindex 4606c37b3a..a2ef5e2aec 100644--- a/saleor/graphql/account/tests/mutations/test_tokens_deactivate_all.py+++ b/saleor/graphql/account/tests/mutations/test_tokens_deactivate_all.py@@ -1,11 +1,11 @@import json-from django.middleware.csrf import _get_new_csrf_tokenfrom freezegun import freeze_timefrom .....account.error_codes import AccountErrorCodefrom .....core.jwt import create_access_token, create_refresh_token, jwt_decodefrom ....tests.utils import get_graphql_content+from ...mutations.authentication import _get_new_csrf_tokenfrom .test_token_refresh import MUTATION_TOKEN_REFRESHMUTATION_DEACTIVATE_ALL_USER_TOKENS = """diff --git a/saleor/graphql/account/utils.py b/saleor/graphql/account/utils.pyindex 1a55f1030d..c058bbb63b 100644--- a/saleor/graphql/account/utils.py+++ b/saleor/graphql/account/utils.py@@ -239,7 +239,7 @@ def get_group_permission_codes(group: Group) -> "QuerySet":).values_list("formated_codename", flat=True)-def get_groups_which_user_can_manage(user: "User") -> List[Optional[Group]]:+def get_groups_which_user_can_manage(user: "User") -> List[Group]:"""Return groups which user can manage."""if not user.is_staff:return []@@ -249,7 +249,7 @@ def get_groups_which_user_can_manage(user: "User") -> List[Optional[Group]]:groups = Group.objects.all().annotate(group_perms=ArrayAgg("permissions"))- editable_groups = []+ editable_groups: List[Group] = []for group in groups.iterator():out_of_scope_permissions = set(group.group_perms) - user_permission_pksout_of_scope_permissions.discard(None)diff --git a/saleor/graphql/attribute/mutations.py b/saleor/graphql/attribute/mutations.pyindex f3228454b1..a7ff08f8cd 100644--- a/saleor/graphql/attribute/mutations.py+++ b/saleor/graphql/attribute/mutations.py@@ -275,7 +275,7 @@ class AttributeUpdateInput(graphene.InputObjectType):class AttributeMixin:# must be redefined by inheriting classes- ATTRIBUTE_VALUES_FIELD = None+ ATTRIBUTE_VALUES_FIELD: str@classmethoddef clean_values(cls, cleaned_input, attribute):diff --git a/saleor/graphql/context.py b/saleor/graphql/context.pyindex a4cdd241e6..5f06ba97d3 100644--- a/saleor/graphql/context.py+++ b/saleor/graphql/context.py@@ -1,9 +1,9 @@-from typing import Optional, Protocol, Union, cast+from typing import Optional, Union, castfrom django.contrib.auth import authenticatefrom django.contrib.auth.models import AnonymousUser+from django.http import HttpRequestfrom django.utils.functional import SimpleLazyObject-from promise import Promisefrom ..account.models import Userfrom ..app.models import App@@ -11,9 +11,13 @@ from ..core.auth import get_token_from_requestfrom ..core.jwt import jwt_decode_with_exception_handlerfrom .api import API_PATHfrom .app.dataloaders import load_app+from .core import SaleorContext-def get_context_value(request):+def get_context_value(request: HttpRequest) -> SaleorContext:+ request = cast(SaleorContext, request)+ request.dataloaders = {}+ request.is_mutation = Falseset_app_on_context(request)set_auth_on_context(request)set_decoded_auth_token(request)@@ -23,30 +27,31 @@ def get_context_value(request):UserType = Union[User, AnonymousUser]-class RequestWithUser(Protocol):+class RequestWithUser(HttpRequest):_cached_user: UserTypeapp: Optional[App]- user: Union[UserType, SimpleLazyObject, Promise]-def set_decoded_auth_token(request):+def set_decoded_auth_token(request: SaleorContext):auth_token = get_token_from_request(request)- decoded_auth_token = jwt_decode_with_exception_handler(auth_token)- request.decoded_auth_token = decoded_auth_token+ if auth_token:+ request.decoded_auth_token = jwt_decode_with_exception_handler(auth_token)+ else:+ request.decoded_auth_token = None-def set_app_on_context(request):+def set_app_on_context(request: SaleorContext):if request.path == API_PATH and not hasattr(request, "app"):request.app = load_app(request)-def get_user(request: RequestWithUser) -> Optional[UserType]:+def get_user(request: SaleorContext) -> Optional[UserType]:if not hasattr(request, "_cached_user"):request._cached_user = cast(UserType, authenticate(request=request))return request._cached_user-def set_auth_on_context(request: RequestWithUser):+def set_auth_on_context(request: SaleorContext):if hasattr(request, "app") and request.app:request.user = AnonymousUser()return request@@ -54,4 +59,4 @@ def set_auth_on_context(request: RequestWithUser):def user():return get_user(request) or AnonymousUser()- request.user = SimpleLazyObject(user)+ request.user = SimpleLazyObject(user) # type: ignorediff --git a/saleor/graphql/core/__init__.py b/saleor/graphql/core/__init__.pyindex e069383dca..ae8fe75604 100644--- a/saleor/graphql/core/__init__.py+++ b/saleor/graphql/core/__init__.py@@ -1 +1,4 @@from . import fields # noqa+from .context import SaleorContext++__all__ = ["SaleorContext"]diff --git a/saleor/core/db/utils.py b/saleor/graphql/core/context.pysimilarity index 61%rename from saleor/core/db/utils.pyrename to saleor/graphql/core/context.pyindex 01b718c134..d5363d7093 100644--- a/saleor/core/db/utils.py+++ b/saleor/graphql/core/context.py@@ -1,27 +1,43 @@-from typing import TYPE_CHECKING+from typing import TYPE_CHECKING, Any, Dict, Optional, Unionfrom django.conf import settings+from django.contrib.auth.models import AnonymousUser+from django.http import HttpRequest++from ...account.models import User+from ...app.models import Appif TYPE_CHECKING:- from django.http import HttpRequest+ from .dataloaders import DataLoader+++UserType = Union[User, AnonymousUser]+++class SaleorContext(HttpRequest):+ _cached_user: UserType+ decoded_auth_token: Optional[Dict[str, Any]]+ is_mutation: bool+ dataloaders: Dict[str, "DataLoader"]+ app: Optional["App"]-def set_mutation_flag_in_context(context: "HttpRequest"):+def set_mutation_flag_in_context(context: SaleorContext) -> None:"""Set information in context to don't use database replicas.Part of the database read replicas in Saleor.When Saleor builds a response for mutation `context` stores information`is_mutation=True`. That means that all data should be provided fromthe master database.- When Saleor build a response for query `context` doesn’t have the+ When Saleor build a response for query `context` doesn't have the`is_mutation` field.That means that all data should be provided from reading replica of the database.Database read replica couldn't be used to save any data."""- context.is_mutation = True # type: ignore+ context.is_mutation = True-def get_database_connection_name(context: "HttpRequest"):+def get_database_connection_name(context: SaleorContext) -> str:"""Retrieve connection name based on request context.Part of the database read replicas in Saleor.diff --git a/saleor/graphql/core/dataloaders.py b/saleor/graphql/core/dataloaders.pyindex 03a3afc2a3..ca7a55fbb0 100644--- a/saleor/graphql/core/dataloaders.py+++ b/saleor/graphql/core/dataloaders.py@@ -1,30 +1,30 @@-from typing import Generic, Iterable, List, TypeVar, Union+from typing import Generic, Iterable, List, Optional, TypeVar, Unionimport opentracingimport opentracing.tags-from django.http import HttpRequestfrom promise import Promisefrom promise.dataloader import DataLoader as BaseLoader-from ...core.db.utils import get_database_connection_name+from . import SaleorContext+from .context import get_database_connection_nameK = TypeVar("K")R = TypeVar("R")class DataLoader(BaseLoader, Generic[K, R]):- context_key = None- context = None- database_connection_name = None+ context_key: str+ context: Optional[SaleorContext] = None+ database_connection_name: str- def __new__(cls, context: HttpRequest):+ def __new__(cls, context: SaleorContext):key = cls.context_keyif key is None:raise TypeError("Data loader %r does not define a context key" % (cls,))if not hasattr(context, "dataloaders"):context.dataloaders = {}if key not in context.dataloaders:- context.dataloaders[key] = super().__new__(cls, context)+ context.dataloaders[key] = super().__new__(cls)loader = context.dataloaders[key]assert isinstance(loader, cls)cls.database_connection_name = get_database_connection_name(context)@@ -35,7 +35,9 @@ class DataLoader(BaseLoader, Generic[K, R]):self.context = contextsuper().__init__()- def batch_load_fn(self, keys: Iterable[K]) -> Promise[List[R]]:+ def batch_load_fn( # pylint: disable=method-hidden+ self, keys: Iterable[K]+ ) -> Promise[List[R]]:with opentracing.global_tracer().start_active_span(self.__class__.__name__) as scope:diff --git a/saleor/graphql/core/mutations.py b/saleor/graphql/core/mutations.pyindex 36668dfac7..a986457cca 100644--- a/saleor/graphql/core/mutations.py+++ b/saleor/graphql/core/mutations.py@@ -2,7 +2,7 @@ import osimport secretsfrom enum import Enumfrom itertools import chain-from typing import Iterable, Tuple, Union+from typing import Iterable, Optional, Tuple, Unionfrom uuid import UUIDimport graphene@@ -18,7 +18,6 @@ from graphene import ObjectTypefrom graphene.types.mutation import MutationOptionsfrom graphql.error import GraphQLError-from ...core.db.utils import set_mutation_flag_in_contextfrom ...core.exceptions import PermissionDeniedfrom ...core.permissions import (AuthorizationFilters,@@ -26,6 +25,7 @@ from ...core.permissions import (one_of_permissions_or_auth_filter_required,)from ..utils import get_nodes, resolve_global_ids_to_primary_keys+from .context import set_mutation_flag_in_contextfrom .descriptions import DEPRECATED_IN_3X_FIELDfrom .types import (TYPES_WITH_DOUBLE_ID_AVAILABLE,@@ -66,8 +66,12 @@ def validation_error_to_error_type(error_class_fields = set(error_type_class._meta.fields.keys())if hasattr(validation_error, "error_dict"):# convert field errors- for field, field_errors in validation_error.error_dict.items():- field = None if field == NON_FIELD_ERRORS else snake_to_camel_case(field)+ for field_label, field_errors in validation_error.error_dict.items():+ field = (+ None+ if field_label == NON_FIELD_ERRORS+ else snake_to_camel_case(field_label)+ )for err in field_errors:error = error_type_class(field=field,@@ -88,7 +92,7 @@ def validation_error_to_error_type(return err_list-def attach_error_params(error, params: dict, error_class_fields: set):+def attach_error_params(error, params: Optional[dict], error_class_fields: set):if not params:return {}# If some of the params key overlap with error class fieldsdiff --git a/saleor/graphql/core/tests/test_core_reordering.py b/saleor/graphql/core/tests/test_core_reordering.pyindex d385b0a76c..adc1f7eb9a 100644--- a/saleor/graphql/core/tests/test_core_reordering.py+++ b/saleor/graphql/core/tests/test_core_reordering.py@@ -262,9 +262,9 @@ def test_reordering_concurrently(dummy_attribute, assert_num_queries):assert ctx[1]["sql"] == ('UPDATE "attribute_attributevalue" ''SET "sort_order" = '- f'CAST(CASE WHEN ("attribute_attributevalue"."id" = {entries[0].pk}) '+ f'(CASE WHEN ("attribute_attributevalue"."id" = {entries[0].pk}) 'f'THEN 1 WHEN ("attribute_attributevalue"."id" = {entries[1].pk}) '- "THEN 0 ELSE NULL END AS integer) "+ "THEN 0 ELSE NULL END)::integer "'WHERE "attribute_attributevalue"."id" 'f"IN ({entries[0].pk}, {entries[1].pk})")@@ -296,8 +296,8 @@ def test_reordering_deleted_node_from_concurrent(dummy_attribute, assert_num_queassert ctx[1]["sql"] == ('UPDATE "attribute_attributevalue" ''SET "sort_order" = '- f'CAST(CASE WHEN ("attribute_attributevalue"."id" = {entries[0].pk}) '+ f'(CASE WHEN ("attribute_attributevalue"."id" = {entries[0].pk}) 'f'THEN 1 WHEN ("attribute_attributevalue"."id" = {entries[1].pk}) '- "THEN 0 ELSE NULL END AS integer) "+ "THEN 0 ELSE NULL END)::integer "f'WHERE "attribute_attributevalue"."id" IN ({entries[0].pk}, {entries[1].pk})')diff --git a/saleor/graphql/meta/mutations.py b/saleor/graphql/meta/mutations.pyindex 96e28b5770..8af6e914df 100644--- a/saleor/graphql/meta/mutations.py+++ b/saleor/graphql/meta/mutations.py@@ -44,18 +44,17 @@ def _save_instance(instance, metadata_field: str):instance.save(update_fields=fields)except DatabaseError as e:msg = (- "Cannot update metadata for instance: %s. "- "Updating not existing object. "- "Details: %s.",- instance,- str(e),+ "Cannot update metadata for instance: %(instance)s. "+ "Updating not existing object. Details: %(details)s.")- logger.warning(msg)+ params = {+ "instance": str(instance),+ "details": str(e),+ }raise ValidationError({"metadata": ValidationError(- msg,- code=MetadataErrorCode.NOT_FOUND.value,+ msg, code=MetadataErrorCode.NOT_FOUND.value, params=params)})diff --git a/saleor/graphql/page/mutations/pages.py b/saleor/graphql/page/mutations/pages.pyindex 5619fa75c8..5527cfde1f 100644--- a/saleor/graphql/page/mutations/pages.py+++ b/saleor/graphql/page/mutations/pages.py@@ -69,7 +69,7 @@ class PageCreate(ModelMutation):@classmethoddef clean_attributes(cls, attributes: dict, page_type: models.PageType):- attributes_qs = page_type.page_attributes+ attributes_qs = page_type.page_attributes.all()attributes = AttributeAssignmentMixin.clean_input(attributes, attributes_qs, is_page_attributes=True)@@ -154,7 +154,7 @@ class PageUpdate(PageCreate):@classmethoddef clean_attributes(cls, attributes: dict, page_type: models.PageType):- attributes_qs = page_type.page_attributes+ attributes_qs = page_type.page_attributes.all()attributes = AttributeAssignmentMixin.clean_input(attributes, attributes_qs, creation=False, is_page_attributes=True)diff --git a/saleor/graphql/product/dataloaders/products.py b/saleor/graphql/product/dataloaders/products.pyindex 7012fa7fac..9d1647bc42 100644--- a/saleor/graphql/product/dataloaders/products.py+++ b/saleor/graphql/product/dataloaders/products.py@@ -303,7 +303,8 @@ class VariantChannelListingByVariantIdAndChannelLoader("price_amount__isnull": False,}variant_channel_listings = (- ProductVariantChannelListing.objects.using(self.database_connection_name)+ ProductVariantChannelListing.objects.all()+ .using(self.database_connection_name).filter(**filter).annotate_preorder_quantity_allocated())@@ -370,7 +371,8 @@ class VariantsChannelListingByProductIdAndChannelSlugLoader(self, channel_slug: str, products_ids: Iterable[int]) -> Iterable[Tuple[int, Optional[List[ProductVariantChannelListing]]]]:variants_channel_listings = (- ProductVariantChannelListing.objects.using(self.database_connection_name)+ ProductVariantChannelListing.objects.all()+ .using(self.database_connection_name).filter(channel__slug=channel_slug,variant__product_id__in=products_ids,diff --git a/saleor/graphql/product/mutations/digital_contents.py b/saleor/graphql/product/mutations/digital_contents.pyindex c8297474aa..b989ee520e 100644--- a/saleor/graphql/product/mutations/digital_contents.py+++ b/saleor/graphql/product/mutations/digital_contents.py@@ -1,12 +1,12 @@import graphenefrom django.core.exceptions import ValidationError-from ....core.db.utils import set_mutation_flag_in_contextfrom ....core.exceptions import PermissionDeniedfrom ....core.permissions import ProductPermissionsfrom ....product import modelsfrom ....product.error_codes import ProductErrorCodefrom ...channel import ChannelContext+from ...core.context import set_mutation_flag_in_contextfrom ...core.mutations import BaseMutation, ModelMutationfrom ...core.types import ProductError, Uploadfrom ..types import DigitalContent, DigitalContentUrl, ProductVariantdiff --git a/saleor/graphql/product/mutations/products.py b/saleor/graphql/product/mutations/products.pyindex b00ba1d8d4..49af09ad2e 100644--- a/saleor/graphql/product/mutations/products.py+++ b/saleor/graphql/product/mutations/products.py@@ -579,7 +579,7 @@ class ProductCreate(ModelMutation):def clean_attributes(cls, attributes: dict, product_type: models.ProductType) -> T_INPUT_MAP:- attributes_qs = product_type.product_attributes+ attributes_qs = product_type.product_attributes.all()attributes = AttributeAssignmentMixin.clean_input(attributes, attributes_qs)return attributes@@ -708,7 +708,7 @@ class ProductUpdate(ProductCreate):def clean_attributes(cls, attributes: dict, product_type: models.ProductType) -> T_INPUT_MAP:- attributes_qs = product_type.product_attributes+ attributes_qs = product_type.product_attributes.all()attributes = AttributeAssignmentMixin.clean_input(attributes, attributes_qs, creation=False)@@ -862,7 +862,7 @@ class ProductVariantCreate(ModelMutation):def clean_attributes(cls, attributes: dict, product_type: models.ProductType) -> T_INPUT_MAP:- attributes_qs = product_type.variant_attributes+ attributes_qs = product_type.variant_attributes.all()attributes = AttributeAssignmentMixin.clean_input(attributes, attributes_qs)return attributes@@ -1100,7 +1100,7 @@ class ProductVariantUpdate(ProductVariantCreate):def clean_attributes(cls, attributes: dict, product_type: models.ProductType) -> T_INPUT_MAP:- attributes_qs = product_type.variant_attributes+ attributes_qs = product_type.variant_attributes.all()attributes = AttributeAssignmentMixin.clean_input(attributes, attributes_qs, creation=False)diff --git a/saleor/graphql/product/resolvers.py b/saleor/graphql/product/resolvers.pyindex 6020b5ebd1..dccbef3268 100644--- a/saleor/graphql/product/resolvers.py+++ b/saleor/graphql/product/resolvers.py@@ -1,7 +1,6 @@from django.db.models import Exists, OuterRef, Sumfrom ...channel.models import Channel-from ...core.db.utils import get_database_connection_namefrom ...core.permissions import has_one_of_permissionsfrom ...core.tracing import traced_resolverfrom ...order import OrderStatus@@ -9,6 +8,7 @@ from ...order.models import Orderfrom ...product import modelsfrom ...product.models import ALL_PRODUCTS_PERMISSIONSfrom ..channel import ChannelQsContext+from ..core.context import get_database_connection_namefrom ..core.utils import from_global_id_or_errorfrom ..utils import get_user_or_app_from_contextfrom ..utils.filters import filter_by_period@@ -83,8 +83,10 @@ def resolve_product_by_slug(info, product_slug, channel_slug, requestor):@traced_resolverdef resolve_products(info, requestor, channel_slug=None) -> ChannelQsContext:database_connection_name = get_database_connection_name(info.context)- qs = models.Product.objects.using(database_connection_name).visible_to_user(- requestor, channel_slug+ qs = (+ models.Product.objects.all()+ .using(database_connection_name)+ .visible_to_user(requestor, channel_slug))if not has_one_of_permissions(requestor, ALL_PRODUCTS_PERMISSIONS):channels = Channel.objects.filter(slug=str(channel_slug))diff --git a/saleor/graphql/product/sorters.py b/saleor/graphql/product/sorters.pyindex f120cb880c..5360c0695b 100644--- a/saleor/graphql/product/sorters.py+++ b/saleor/graphql/product/sorters.py@@ -47,7 +47,7 @@ class CategorySortField(graphene.Enum):return queryset.annotate(product_count=Coalesce(Subquery(- Category.tree.add_related_count(+ Category.tree.add_related_count( # type: ignorequeryset, Product, "category", "p_c", cumulative=True).values("p_c")diff --git a/saleor/graphql/shipping/utils.py b/saleor/graphql/shipping/utils.pyindex 3c20b84dd0..1acdd9e42d 100644--- a/saleor/graphql/shipping/utils.py+++ b/saleor/graphql/shipping/utils.py@@ -1,4 +1,4 @@-from typing import List, Optional+from typing import Iterable, List, Optionalfrom django.core.exceptions import ValidationError@@ -24,7 +24,7 @@ def get_shipping_model_by_object_id(return None-def get_instances_by_object_ids(object_ids: List[str]) -> List[ShippingMethod]:+def get_instances_by_object_ids(object_ids: List[str]) -> Iterable[ShippingMethod]:model_ids = []for object_id in object_ids:_, object_pk = from_global_id_or_error(object_id)diff --git a/saleor/graphql/warehouse/dataloaders.py b/saleor/graphql/warehouse/dataloaders.pyindex 3567086fa4..d0f97f08bc 100644--- a/saleor/graphql/warehouse/dataloaders.py+++ b/saleor/graphql/warehouse/dataloaders.py@@ -74,8 +74,10 @@ class AvailableQuantityByProductVariantIdCountryCodeAndChannelSlugLoader() -> Iterable[Tuple[int, int]]:# get stocks only for warehouses assigned to the shipping zones# that are available in the given channel- stocks = Stock.objects.using(self.database_connection_name).filter(- product_variant_id__in=variant_ids+ stocks = (+ Stock.objects.all()+ .using(self.database_connection_name)+ .filter(product_variant_id__in=variant_ids))additional_warehouse_filter = True if country_code or channel_slug else False@@ -353,8 +355,10 @@ class StocksWithAvailableQuantityByProductVariantIdCountryCodeAndChannelLoader(channel_slug: Optional[str],variant_ids: Iterable[int],) -> Iterable[Tuple[int, List[Stock]]]:- stocks = Stock.objects.using(self.database_connection_name).filter(- product_variant_id__in=variant_ids+ stocks = (+ Stock.objects.all()+ .using(self.database_connection_name)+ .filter(product_variant_id__in=variant_ids))if country_code:stocks = stocks.filter(@@ -478,8 +482,8 @@ class WarehouseByIdLoader(DataLoader):context_key = "warehouse_by_id"def batch_load(self, keys: Iterable[UUID]) -> List[Optional[Warehouse]]:- warehouses = Warehouse.objects.using(self.database_connection_name).in_bulk(- keys+ warehouses = (+ Warehouse.objects.all().using(self.database_connection_name).in_bulk(keys))return [warehouses.get(warehouse_uuid) for warehouse_uuid in keys]diff --git a/saleor/menu/models.py b/saleor/menu/models.pyindex fbb885be70..99261fcc63 100644--- a/saleor/menu/models.py+++ b/saleor/menu/models.py@@ -39,7 +39,7 @@ class MenuItem(ModelWithMetadata, MPTTModel, SortableModel):page = models.ForeignKey(Page, blank=True, null=True, on_delete=models.CASCADE)objects = models.Manager()- tree = TreeManager()+ tree = TreeManager() # type: ignoretranslated = TranslationProxy()class Meta(ModelWithMetadata.Meta):diff --git a/saleor/order/actions.py b/saleor/order/actions.pyindex 9ae15db300..c40eec4682 100644--- a/saleor/order/actions.py+++ b/saleor/order/actions.py@@ -754,7 +754,7 @@ def create_fulfillments(notify_customer: bool = True,approved: bool = True,allow_stock_to_be_exceeded: bool = False,- tracking_number: Optional[str] = "",+ tracking_number: str = "",) -> List[Fulfillment]:"""Fulfill order.diff --git a/saleor/order/events.py b/saleor/order/events.pyindex 55cbb8dddd..81b13f6304 100644--- a/saleor/order/events.py+++ b/saleor/order/events.py@@ -560,7 +560,7 @@ def fulfillment_restocked_items_event(user: UserType,app: AppType,fulfillment: Union[Order, Fulfillment],- warehouse_pk: Optional[int] = None,+ warehouse_pk: Optional["UUID"] = None,) -> OrderEvent:if not user_is_valid(user):user = Nonediff --git a/saleor/payment/interface.py b/saleor/payment/interface.pyindex f9208a07ab..806cba3429 100644--- a/saleor/payment/interface.py+++ b/saleor/payment/interface.py@@ -126,7 +126,7 @@ class PaymentData:shipping: Optional[AddressData]payment_id: intgraphql_payment_id: str- order_id: Optional[int]+ order_id: Optional[str]customer_ip_address: Optional[str]customer_email: strorder_channel_slug: Optional[str] = Nonediff --git a/saleor/payment/utils.py b/saleor/payment/utils.pyindex 7c14ebe243..25b5860a0b 100644--- a/saleor/payment/utils.py+++ b/saleor/payment/utils.py@@ -212,7 +212,7 @@ def create_payment_information(currency=payment.currency,billing=billing_address,shipping=shipping_address,- order_id=order_id,+ order_id=str(order_id),order_channel_slug=channel_slug,payment_id=payment.pk,graphql_payment_id=graphql_payment_id,diff --git a/saleor/plugins/anonymize/plugin.py b/saleor/plugins/anonymize/plugin.pyindex d2bfc3f9af..81a23478e3 100644--- a/saleor/plugins/anonymize/plugin.py+++ b/saleor/plugins/anonymize/plugin.py@@ -58,7 +58,9 @@ class AnonymizePlugin(BasePlugin):customer.first_name = faker.first_name()customer.last_name = faker.last_name()timestamp = str(timezone.now())- email = f"{hash(timestamp + get_random_string(5))}@anonymous-demo-email.com"+ email = (+ f"{hash(timestamp + get_random_string(length=5))}@anonymous-demo-email.com"+ )customer.email = emailcustomer.search_document = search.prepare_user_search_document_value(customer, attach_addresses_data=Falsediff --git a/saleor/plugins/openid_connect/tests/test_plugin.py b/saleor/plugins/openid_connect/tests/test_plugin.pyindex 593f8aea8f..a8ccf1df42 100644--- a/saleor/plugins/openid_connect/tests/test_plugin.py+++ b/saleor/plugins/openid_connect/tests/test_plugin.py@@ -5,7 +5,6 @@ import pytestfrom authlib.jose.errors import JoseErrorfrom django.core import signingfrom django.core.exceptions import ValidationError-from django.middleware.csrf import _get_new_csrf_tokenfrom freezegun import freeze_timefrom ....core.jwt import (@@ -16,6 +15,7 @@ from ....core.jwt import (jwt_encode,jwt_user_payload,)+from ....graphql.account.mutations.authentication import _get_new_csrf_tokenfrom ...base_plugin import ExternalAccessTokensfrom ...models import PluginConfigurationfrom ..utils import (diff --git a/saleor/plugins/openid_connect/utils.py b/saleor/plugins/openid_connect/utils.pyindex 0789537add..f4c2ee0369 100644--- a/saleor/plugins/openid_connect/utils.py+++ b/saleor/plugins/openid_connect/utils.py@@ -12,8 +12,6 @@ from django.core.cache import cachefrom django.core.exceptions import ValidationErrorfrom django.core.validators import URLValidatorfrom django.db.models import QuerySet-from django.middleware.csrf import _compare_masked_tokens # type: ignore-from django.middleware.csrf import _get_new_csrf_tokenfrom django.utils.timezone import make_awarefrom jwt import PyJWTError@@ -28,6 +26,10 @@ from ...core.jwt import (jwt_user_payload,)from ...core.permissions import get_permission_names, get_permissions_from_codenames+from ...graphql.account.mutations.authentication import (+ _does_token_match,+ _get_new_csrf_token,+)from ..error_codes import PluginErrorCodefrom ..models import PluginConfigurationfrom . import PLUGIN_ID@@ -469,7 +471,7 @@ def validate_refresh_token(refresh_token, data):)})- is_valid = _compare_masked_tokens(csrf_token, refresh_payload[CSRF_FIELD])+ is_valid = _does_token_match(csrf_token, refresh_payload[CSRF_FIELD])if not is_valid:raise ValidationError({diff --git a/saleor/product/models.py b/saleor/product/models.pyindex 344ff37704..32e493596c 100644--- a/saleor/product/models.py+++ b/saleor/product/models.py@@ -1,5 +1,5 @@import datetime-from typing import TYPE_CHECKING, Iterable, Optional, Union+from typing import TYPE_CHECKING, Any, Iterable, Optional, Unionfrom uuid import uuid4import graphene@@ -31,7 +31,6 @@ from django.db.models import (from django.db.models.functions import Coalescefrom django.urls import reversefrom django.utils import timezone-from django.utils.encoding import smart_textfrom django_measurement.models import MeasurementFieldfrom django_prices.models import MoneyFieldfrom measurement.measures import Weight@@ -92,7 +91,7 @@ class Category(ModelWithMetadata, MPTTModel, SeoModel):background_image_alt = models.CharField(max_length=128, blank=True)objects = models.Manager()- tree = TreeManager()+ tree = TreeManager() # type: ignoretranslated = TranslationProxy()class Meta:@@ -658,7 +657,7 @@ class ProductVariant(SortableModel, ModelWithMetadata):product_display = (f"{product} ({variant_display})" if variant_display else str(product))- return smart_text(product_display)+ return product_displaydef get_ordering_queryset(self):return self.product.variants.all()diff --git a/saleor/product/utils/__init__.py b/saleor/product/utils/__init__.pyindex 2a999ee5ee..0d535d88c3 100644--- a/saleor/product/utils/__init__.py+++ b/saleor/product/utils/__init__.py@@ -76,7 +76,7 @@ def collect_categories_tree_products(category: "Category") -> "QuerySet[Product]return products-def get_products_ids_without_variants(products_list: "List[Product]") -> "List[str]":+def get_products_ids_without_variants(products_list: List["Product"]) -> List[int]:"""Return list of product's ids without variants."""products_ids = [product.id for product in products_list]products_ids_without_variants = Product.objects.filter(diff --git a/saleor/product/utils/variants.py b/saleor/product/utils/variants.pyindex aeba20a898..3aa81dd22b 100644--- a/saleor/product/utils/variants.py+++ b/saleor/product/utils/variants.py@@ -1,4 +1,4 @@-from typing import TYPE_CHECKING, List, Optional, Sequence, Tuple+from typing import TYPE_CHECKING, Iterable, List, Optional, Tuplefrom ...attribute import AttributeType@@ -31,7 +31,7 @@ def generate_and_set_variant_name(variant: "ProductVariant", sku: Optional[str])def get_variant_selection_attributes(- attributes: Sequence[Tuple["Attribute", bool]]+ attributes: Iterable[Tuple["Attribute", bool]]) -> List[Tuple["Attribute", bool]]:"""Return attributes that can be used in variant selection.diff --git a/saleor/urls.py b/saleor/urls.pyindex f7b5149dbf..5ff57b4377 100644--- a/saleor/urls.py+++ b/saleor/urls.py@@ -1,7 +1,7 @@from django.conf import settings-from django.conf.urls import include, urlfrom django.conf.urls.static import staticfrom django.contrib.staticfiles.views import serve+from django.urls import include, re_pathfrom django.views.decorators.csrf import csrf_exemptfrom .core.views import jwks@@ -16,37 +16,37 @@ from .product.views import digital_productfrom .thumbnail.views import handle_thumbnailurlpatterns = [- url(r"^graphql/$", csrf_exempt(GraphQLView.as_view(schema=schema)), name="api"),- url(+ re_path(r"^graphql/$", csrf_exempt(GraphQLView.as_view(schema=schema)), name="api"),+ re_path(r"^digital-download/(?P<token>[0-9A-Za-z_\-]+)/$",digital_product,name="digital-product",),- url(- r"plugins/channel/(?P<channel_slug>[.0-9A-Za-z_\-]+)/"+ re_path(+ r"^plugins/channel/(?P<channel_slug>[.0-9A-Za-z_\-]+)/"r"(?P<plugin_id>[.0-9A-Za-z_\-]+)/",handle_plugin_per_channel_webhook,name="plugins-per-channel",),- url(- r"plugins/global/(?P<plugin_id>[.0-9A-Za-z_\-]+)/",+ re_path(+ r"^plugins/global/(?P<plugin_id>[.0-9A-Za-z_\-]+)/",handle_global_plugin_webhook,name="plugins-global",),- url(- r"plugins/(?P<plugin_id>[.0-9A-Za-z_\-]+)/",+ re_path(+ r"^plugins/(?P<plugin_id>[.0-9A-Za-z_\-]+)/",handle_plugin_webhook,name="plugins",),- url(+ re_path((- r"thumbnail/(?P<instance_id>[.0-9A-Za-z_=\-]+)/(?P<size>\d+)/"+ r"^thumbnail/(?P<instance_id>[.0-9A-Za-z_=\-]+)/(?P<size>\d+)/"r"(?:(?P<format>[a-zA-Z]+)/)?"),handle_thumbnail,name="thumbnail",),- url(r".well-known/jwks.json", jwks, name="jwks"),+ re_path(r"^\.well-known/jwks.json$", jwks, name="jwks"),]if settings.DEBUG:@@ -63,10 +63,10 @@ if settings.DEBUG:)else:urlpatterns += [- url(r"^__debug__/", include(debug_toolbar.urls)) # type: ignore+ re_path(r"^__debug__/", include(debug_toolbar.urls)) # type: ignore]urlpatterns += static("/media/", document_root=settings.MEDIA_ROOT) + [- url(r"^static/(?P<path>.*)$", serve),- url(r"^$", views.home, name="home"),+ re_path(r"^static/(?P<path>.*)$", serve),+ re_path(r"^$", views.home, name="home"),]diff --git a/saleor/warehouse/management.py b/saleor/warehouse/management.pyindex 53f8e68b47..8df6aa76b1 100644--- a/saleor/warehouse/management.py+++ b/saleor/warehouse/management.py@@ -31,6 +31,8 @@ from .models import ()if TYPE_CHECKING:+ from uuid import UUID+from ..channel.models import Channelfrom ..order.models import Order@@ -101,8 +103,8 @@ def allocate_stocks(.annotate(quantity_allocated_sum=Sum("quantity_allocated")))quantity_allocation_for_stocks: Dict = defaultdict(int)- for allocation in quantity_allocation_list:- quantity_allocation_for_stocks[allocation["stock"]] += allocation[+ for allocation_data in quantity_allocation_list:+ quantity_allocation_for_stocks[allocation_data["stock"]] += allocation_data["quantity_allocated_sum"]@@ -114,7 +116,7 @@ def allocate_stocks(collection_point_pk,)- variant_to_stocks: Dict[str, List[StockData]] = defaultdict(list)+ variant_to_stocks: Dict[int, List[StockData]] = defaultdict(list)for stock_data in stocks:variant = stock_data.pop("product_variant")variant_to_stocks[variant].append(StockData(**stock_data))@@ -296,7 +298,7 @@ def deallocate_stock(.order_by("stock__pk"))- line_to_allocations: Dict[int, List[Allocation]] = defaultdict(list)+ line_to_allocations: Dict["UUID", List[Allocation]] = defaultdict(list)for allocation in lines_allocations:line_to_allocations[allocation.order_line_id].append(allocation)@@ -373,6 +375,7 @@ def increase_stock(function increase `quantity_allocated`. If allocation does not exist functioncreate a new allocation for this order line in this stock."""+ assert order_line.variantstock = (Stock.objects.select_for_update(of=("self",)).filter(warehouse=warehouse, product_variant=order_line.variant)@@ -410,7 +413,7 @@ def increase_allocations()# evaluate allocations query to trigger select_for_update lockallocation_pks_to_delete = [alloc.pk for alloc in allocations]- allocation_quantity_map: Dict[int, list] = defaultdict(list)+ allocation_quantity_map: Dict["UUID", list] = defaultdict(list)for alloc in allocations:allocation_quantity_map[alloc.order_line.pk].append(alloc.quantity_allocated)diff --git a/saleor/warehouse/reservations.py b/saleor/warehouse/reservations.pyindex a31ea6c9d5..8290b24bb9 100644--- a/saleor/warehouse/reservations.py+++ b/saleor/warehouse/reservations.py@@ -277,7 +277,7 @@ def reserve_preorders()insufficient_stocks: List[InsufficientStockData] = []- reservations: List[Reservation] = []+ reservations: List[PreorderReservation] = []for line in checkout_lines_to_reserve:insufficient_stocks, reservation = _create_preorder_reservation(line,diff --git a/saleor/webhook/observability/tests/test_utils.py b/saleor/webhook/observability/tests/test_utils.pyindex 5df2804fc0..6262182012 100644--- a/saleor/webhook/observability/tests/test_utils.py+++ b/saleor/webhook/observability/tests/test_utils.py@@ -1,9 +1,8 @@import json-from datetime import datetime+from datetime import datetime, timezonefrom unittest.mock import patchimport pytest-import pytzfrom celery.exceptions import Retryfrom django.http import HttpResponsefrom freezegun import freeze_time@@ -132,7 +131,7 @@ def test_json_truncate_text_comparison():"retry, next_retry_date",[(Retry(), None),- (Retry(when=60 * 10), datetime(1914, 6, 28, 11, tzinfo=pytz.utc)),+ (Retry(when=60 * 10), datetime(1914, 6, 28, 11, tzinfo=timezone.utc)),(Retry(when=datetime(1914, 6, 28, 11)), datetime(1914, 6, 28, 11)),],)