diff --git a/CHANGES.md b/CHANGES.md index 405b71a6c2f..5123f63b197 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,10 +6,8 @@ -- Black is now officially tested with Python 3.13. Note that Black does not yet provide - mypyc-compiled wheels for Python 3.13, so performance may be slower than on other - versions of Python. We will provide 3.13 mypyc-compiled wheels in a future release. - (#4436) +- Black is now officially tested with Python 3.13 and provides Python 3.13 + mypyc-compiled wheels. (#4436) (#4449) - Black will issue an error when used with Python 3.12.5, due to an upstream memory safety issue in Python 3.12.5 that can cause Black's AST safety checks to fail. Please use Python 3.12.6 or Python 3.12.4 instead. (#4447) diff --git a/pyproject.toml b/pyproject.toml index 90eadb11e81..19782ba96cc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -125,7 +125,7 @@ macos-max-compat = true enable-by-default = false dependencies = [ "hatch-mypyc>=0.16.0", - "mypy @ git+https://github.com/python/mypy", + "mypy @ git+https://github.com/python/mypy@bc8119150e49895f7a496ae7ae7362a2828e7e9e", "click>=8.1.7", ] require-runtime-dependencies = true @@ -192,7 +192,7 @@ build-frontend = { name = "build", args = ["--no-isolation"] } # 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 @ git+https://github.com/python/mypy' 'click>=8.1.7'", + "python -m pip install 'hatchling==1.20.0' hatch-vcs hatch-fancy-pypi-readme 'hatch-mypyc>=0.16.0' 'mypy @ git+https://github.com/python/mypy@bc8119150e49895f7a496ae7ae7362a2828e7e9e' '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__)') """, ]