From 3e28e69e7d3a006c2f8aebee40da294b7c3e9c4a Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Fri, 3 May 2024 15:24:03 +0400 Subject: [PATCH] Fix code generation 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. --- .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)