From 26aeebe9fbc47f5f50fd235324a7a3c201d7bc57 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Sat, 7 Sep 2024 17:32:47 -0700 Subject: [PATCH] Update mypy/c (#4450) --- .pre-commit-config.yaml | 2 +- CHANGES.md | 2 ++ pyproject.toml | 8 +++++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3e45665..9dcf938 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,7 +39,7 @@ repos: exclude: ^src/blib2to3/ - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.1 + rev: v1.11.2 hooks: - id: mypy exclude: ^(docs/conf.py|scripts/generate_schema.py)$ diff --git a/CHANGES.md b/CHANGES.md index 988c36e..2ca5461 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -30,6 +30,8 @@ +- Upgrade version of mypyc used to 1.11.2 (#4450) + ### Parser diff --git a/pyproject.toml b/pyproject.toml index aeab33f..e9c0823 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -129,8 +129,8 @@ macos-max-compat = true enable-by-default = false dependencies = [ "hatch-mypyc>=0.16.0", - "mypy==1.7.1", - "click==8.1.3", # avoid https://github.com/pallets/click/issues/2558 + "mypy==1.11.2", + "click>=8.1.7", ] require-runtime-dependencies = true exclude = [ @@ -193,8 +193,10 @@ CC = "clang" [tool.cibuildwheel.macos] build-frontend = { name = "build", args = ["--no-isolation"] } # Unfortunately, hatch doesn't respect MACOSX_DEPLOYMENT_TARGET +# Note we don't have a good test for this sed horror, so if you futz with it +# make sure to test manually before-build = [ - "python -m pip install 'hatchling==1.20.0' hatch-vcs hatch-fancy-pypi-readme 'hatch-mypyc>=0.16.0' 'mypy==1.7.1' 'click==8.1.3'", + "python -m pip install 'hatchling==1.20.0' hatch-vcs hatch-fancy-pypi-readme 'hatch-mypyc>=0.16.0' 'mypy==1.11.2' 'click>=8.1.7'", """sed -i '' -e "600,700s/'10_16'/os.environ['MACOSX_DEPLOYMENT_TARGET'].replace('.', '_')/" $(python -c 'import hatchling.builders.wheel as h; print(h.__file__)') """, ]