From fd75bc21fca7d62235bdd2063ce65cdddbd40a1a Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Wed, 26 Oct 2022 16:52:24 +0300 Subject: [PATCH] Use `3.11` instead of `3.11-dev` (#8983) --- .github/workflows/daily.yml | 2 +- .github/workflows/stubtest_stdlib.yml | 2 +- tests/stubtest_allowlists/py310.txt | 6 ++++++ tests/stubtest_allowlists/py37.txt | 5 +++++ tests/stubtest_allowlists/py38.txt | 5 +++++ tests/stubtest_allowlists/py39.txt | 5 +++++ 6 files changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 7933d1c3a..469fdd94d 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -21,7 +21,7 @@ jobs: matrix: # tkinter doesn't import on macOS-12 os: ["ubuntu-latest", "windows-latest", "macos-11"] - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11-dev"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] fail-fast: false steps: diff --git a/.github/workflows/stubtest_stdlib.yml b/.github/workflows/stubtest_stdlib.yml index 111223e42..23ee25bf2 100644 --- a/.github/workflows/stubtest_stdlib.yml +++ b/.github/workflows/stubtest_stdlib.yml @@ -31,7 +31,7 @@ jobs: matrix: # tkinter doesn't import on macOS 12 os: ["ubuntu-latest", "windows-latest", "macos-11"] - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11-dev"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] fail-fast: false steps: diff --git a/tests/stubtest_allowlists/py310.txt b/tests/stubtest_allowlists/py310.txt index 415167af2..6b214f924 100644 --- a/tests/stubtest_allowlists/py310.txt +++ b/tests/stubtest_allowlists/py310.txt @@ -13,6 +13,12 @@ builtins.float.__setformat__ # Internal method for CPython test suite builtins.property.__set_name__ # Doesn't actually exist contextlib.AbstractAsyncContextManager.__class_getitem__ contextlib.AbstractContextManager.__class_getitem__ +# Missing from distutils module (deprecated, to be removed in 3.12) +distutils.core.DEBUG +distutils.core.USAGE +distutils.core.extension_keywords +distutils.core.gen_usage +distutils.core.setup_keywords fractions.Fraction.__new__ # overload is too complicated for stubtest to resolve gettext.install gettext.translation diff --git a/tests/stubtest_allowlists/py37.txt b/tests/stubtest_allowlists/py37.txt index b76a2338d..f7edf5b2c 100644 --- a/tests/stubtest_allowlists/py37.txt +++ b/tests/stubtest_allowlists/py37.txt @@ -78,6 +78,11 @@ distutils.cygwinccompiler.RE_VERSION distutils.dist.command_re distutils.fancy_getopt.longopt_re distutils.fancy_getopt.neg_alias_re +distutils.core.DEBUG +distutils.core.USAGE +distutils.core.extension_keywords +distutils.core.gen_usage +distutils.core.setup_keywords dummy_threading.Lock dummy_threading.RLock dummy_threading.stack_size diff --git a/tests/stubtest_allowlists/py38.txt b/tests/stubtest_allowlists/py38.txt index b3cb722fb..f81bd8648 100644 --- a/tests/stubtest_allowlists/py38.txt +++ b/tests/stubtest_allowlists/py38.txt @@ -32,6 +32,11 @@ collections.KeysView.__reversed__ collections.ValuesView.__reversed__ collections.Mapping.__reversed__ # Set to None at runtime for a better error message distutils.command.bdist_wininst # see #6523 +distutils.core.DEBUG +distutils.core.USAGE +distutils.core.extension_keywords +distutils.core.gen_usage +distutils.core.setup_keywords dummy_threading.Condition.acquire dummy_threading.Condition.release dummy_threading.Event.isSet diff --git a/tests/stubtest_allowlists/py39.txt b/tests/stubtest_allowlists/py39.txt index b0b09075b..da7d32d1c 100644 --- a/tests/stubtest_allowlists/py39.txt +++ b/tests/stubtest_allowlists/py39.txt @@ -32,6 +32,11 @@ collections.ValuesView.__reversed__ contextlib.AbstractAsyncContextManager.__class_getitem__ contextlib.AbstractContextManager.__class_getitem__ distutils.command.bdist_wininst # see #6523 +distutils.core.DEBUG +distutils.core.USAGE +distutils.core.extension_keywords +distutils.core.gen_usage +distutils.core.setup_keywords fractions.Fraction.__new__ # overload is too complicated for stubtest to resolve gettext.install gettext.translation