From cd9fef8bab3a39dfba494f1917e4158faba439f9 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Sat, 17 Dec 2022 19:02:01 -0800 Subject: [PATCH] tomli: Don't worry about specific alpha releases (#3448) This prevents bugs due to pypa/packaging#522. Fixes #3447. --- CHANGES.md | 3 +++ pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 50c0f5df050..f786f1a1fed 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -35,6 +35,9 @@ - Upgrade mypyc from `0.971` to `0.991` so mypycified _Black_ can be built on armv7 (#3380) +- Drop specific support for the `tomli` requirement on 3.11 alpha releases, working + around a bug that would cause the requirement not to be installed on any non-final + Python releases (#3448) ### Parser diff --git a/pyproject.toml b/pyproject.toml index aede497e2af..ab38908ba15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,7 +67,7 @@ dependencies = [ "mypy_extensions>=0.4.3", "pathspec>=0.9.0", "platformdirs>=2", - "tomli>=1.1.0; python_full_version < '3.11.0a7'", + "tomli>=1.1.0; python_version < '3.11'", "typed-ast>=1.4.2; python_version < '3.8' and implementation_name == 'cpython'", "typing_extensions>=3.10.0.0; python_version < '3.10'", ]