From f86968424bb52ac75c12c850fb6bd7ff90845bd6 Mon Sep 17 00:00:00 2001 From: Cherrg Date: Wed, 18 Oct 2023 07:37:54 +0200 Subject: [PATCH] Support Python 3.11 - Fix 447 (#459) * Add support for Python 3.11 - update greenlet version to latest version (currently 2.0.2) - update nox build instructions - change python version to 3.11 - update PyInstaller version * update target python version * update mypy version to support python 3.11 - error messages related to typed-ast, which was loaded by mypy * fix flake8 config: - the comment has to be in an extra line --- noxfile.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/noxfile.py b/noxfile.py index 4414a8cf..ae914547 100644 --- a/noxfile.py +++ b/noxfile.py @@ -8,7 +8,7 @@ nox.options.reuse_existing_virtualenvs = True nox.options.sessions = ["tests", "lint", "docs"] -python = ["3.10"] +python = ["3.11"] prettier_command = [ "npx", @@ -25,7 +25,7 @@ "black==22.3.0", "vulture", "flake8", - "mypy==0.782", + "mypy==1.2.0", "check-manifest", ] vulture_whitelist = ".vulture_whitelist.py" @@ -162,11 +162,11 @@ def publish_docs(session): session.run("mkdocs", "gh-deploy") -@nox.session(reuse_venv=True, python="3.10") +@nox.session(reuse_venv=True, python="3.11") def build_executables_current_platform(session): session.run("yarn", "install", external=True) session.run("yarn", "build", external=True) - session.install(".", "PyInstaller==5.1") + session.install(".", "PyInstaller==5.10.1") session.run("python", "make_executable.py") session.notify("build_pex")