Skip to content

Commit 8c476aa

Browse files
Fix code generation (#2545) (#2546)
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 2aef84e) Co-authored-by: Quentin Pradet <[email protected]>
1 parent 85207ae commit 8c476aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.buildkite/Dockerfile

+1-1
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

+1-1
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)