Skip to content

Commit

Permalink
Fix code generation (#2545)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
pquentin authored and github-actions[bot] committed May 3, 2024
1 parent 85207ae commit bf31d30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .buildkite/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG PYTHON_VERSION=3.8
ARG PYTHON_VERSION=3.12
FROM python:${PYTHON_VERSION}

# Default UID/GID to 1000
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bf31d30

Please sign in to comment.