Skip to content

Commit 2aef84e

Browse files
authored
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.
1 parent 6fd8afa commit 2aef84e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.buildkite/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PYTHON_VERSION=3.8
1+
ARG PYTHON_VERSION=3.12
22
FROM python:${PYTHON_VERSION}
33

44
# Default UID/GID to 1000

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def test_otel(session):
7373

7474
@nox.session()
7575
def format(session):
76-
session.install("black~=24.0", "isort", "flynt", "unasync", "setuptools")
76+
session.install("black~=24.0", "isort", "flynt", "unasync>=0.6.0")
7777

7878
session.run("python", "utils/run-unasync.py")
7979
session.run("isort", "--profile=black", *SOURCE_FILES)

0 commit comments

Comments
 (0)