From bf31d3035be502c1a785957d01bb14840de2a80a Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Fri, 3 May 2024 15:54:24 +0400 Subject: [PATCH] Fix code generation (#2545) Python 3.8 does not support the new syntax used in utils/run-unasync.py, but using Python 3.12 failed because tokenization of f-strings changed in Python 3.12 in a way that was not supported by unasync 0.5.0. (cherry picked from commit 2aef84ed92dbeca2ddfad825bf4db28015399cfa) --- .buildkite/Dockerfile | 2 +- noxfile.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.buildkite/Dockerfile b/.buildkite/Dockerfile index 3c429a37b..7b0eb2e8e 100644 --- a/.buildkite/Dockerfile +++ b/.buildkite/Dockerfile @@ -1,4 +1,4 @@ -ARG PYTHON_VERSION=3.8 +ARG PYTHON_VERSION=3.12 FROM python:${PYTHON_VERSION} # Default UID/GID to 1000 diff --git a/noxfile.py b/noxfile.py index a3e1fc172..12ad4f02e 100644 --- a/noxfile.py +++ b/noxfile.py @@ -73,7 +73,7 @@ def test_otel(session): @nox.session() def format(session): - session.install("black~=24.0", "isort", "flynt", "unasync", "setuptools") + session.install("black~=24.0", "isort", "flynt", "unasync>=0.6.0") session.run("python", "utils/run-unasync.py") session.run("isort", "--profile=black", *SOURCE_FILES)