Skip to content

Commit

Permalink
Support Python 3.11 - Fix 447 (#459)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Cherrg authored Oct 18, 2023
1 parent eb59589 commit f869684
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -25,7 +25,7 @@
"black==22.3.0",
"vulture",
"flake8",
"mypy==0.782",
"mypy==1.2.0",
"check-manifest",
]
vulture_whitelist = ".vulture_whitelist.py"
Expand Down Expand Up @@ -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")

Expand Down

0 comments on commit f869684

Please sign in to comment.