diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index d519cbc6168c..0abd07732e88 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -34,8 +34,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - # various modules aren't available on macos-13 and higher - os: ["ubuntu-latest", "windows-latest", "macos-12"] + os: ["ubuntu-latest", "windows-latest", "macos-latest"] python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] fail-fast: false diff --git a/.github/workflows/stubtest_stdlib.yml b/.github/workflows/stubtest_stdlib.yml index 795eef7e793d..7224f0ea6380 100644 --- a/.github/workflows/stubtest_stdlib.yml +++ b/.github/workflows/stubtest_stdlib.yml @@ -30,8 +30,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - # various modules aren't available on macos-13 and higher - os: ["ubuntu-latest", "windows-latest", "macos-12"] + os: ["ubuntu-latest", "windows-latest", "macos-latest"] python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] fail-fast: false diff --git a/stdlib/@tests/stubtest_allowlists/darwin-py310.txt b/stdlib/@tests/stubtest_allowlists/darwin-py310.txt index 3a1e4d21dd05..a85cdd09aa0f 100644 --- a/stdlib/@tests/stubtest_allowlists/darwin-py310.txt +++ b/stdlib/@tests/stubtest_allowlists/darwin-py310.txt @@ -5,3 +5,13 @@ spwd _msi msilib(.[a-z]+)? ossaudiodev + +# Added in Python 3.10.12 +tarfile.TarInfo.replace + +# Added in Python 3.10.15 +email._header_value_parser.NLSET +email._header_value_parser.SPECIALSNL +email.errors.HeaderWriteError +email.utils.getaddresses +email.utils.parseaddr diff --git a/stdlib/@tests/stubtest_allowlists/darwin-py311.txt b/stdlib/@tests/stubtest_allowlists/darwin-py311.txt index e888a011c0f7..b030d8307760 100644 --- a/stdlib/@tests/stubtest_allowlists/darwin-py311.txt +++ b/stdlib/@tests/stubtest_allowlists/darwin-py311.txt @@ -1,14 +1,5 @@ webbrowser.MacOSX.__init__ -# These entries looks like a `setup-python` bug: -(dbm.gnu)? -(_?locale.bind_textdomain_codeset)? -(_?locale.bindtextdomain)? -(_?locale.dcgettext)? -(_?locale.dgettext)? -(_?locale.gettext)? -(_?locale.textdomain)? - # Doesn't exist on macos: spwd _msi @@ -27,7 +18,3 @@ email._header_value_parser.SPECIALSNL email.errors.HeaderWriteError email.utils.getaddresses email.utils.parseaddr - -# not available on python distributions compiled without sqlite3 loadable extension support -_sqlite3.Connection.load_extension -_sqlite3.Connection.enable_load_extension diff --git a/stdlib/@tests/stubtest_allowlists/darwin-py312.txt b/stdlib/@tests/stubtest_allowlists/darwin-py312.txt index c16cba0a8aed..a70a534bfe43 100644 --- a/stdlib/@tests/stubtest_allowlists/darwin-py312.txt +++ b/stdlib/@tests/stubtest_allowlists/darwin-py312.txt @@ -1,14 +1,5 @@ webbrowser.MacOSX.__init__ -# These entries looks like a `setup-python` bug: -(dbm.gnu)? -(_?locale.bind_textdomain_codeset)? -(_?locale.bindtextdomain)? -(_?locale.dcgettext)? -(_?locale.dgettext)? -(_?locale.gettext)? -(_?locale.textdomain)? - # Doesn't exist on macos: spwd _msi @@ -19,7 +10,3 @@ ossaudiodev fcntl.F_OFD_GETLK fcntl.F_OFD_SETLK fcntl.F_OFD_SETLKW - -# not available on python distributions compiled without sqlite3 loadable extension support -_sqlite3.Connection.load_extension -_sqlite3.Connection.enable_load_extension diff --git a/stdlib/@tests/stubtest_allowlists/darwin-py313.txt b/stdlib/@tests/stubtest_allowlists/darwin-py313.txt index 285d1d3ed0e8..0faf75d4eacc 100644 --- a/stdlib/@tests/stubtest_allowlists/darwin-py313.txt +++ b/stdlib/@tests/stubtest_allowlists/darwin-py313.txt @@ -8,16 +8,3 @@ _?curses.window.get_wch # Exists locally on MacOS but not on GitHub (mmap.MAP_32BIT)? - -# These entries looks like a `setup-python` bug: -(dbm.gnu)? -(_?locale.bind_textdomain_codeset)? -(_?locale.bindtextdomain)? -(_?locale.dcgettext)? -(_?locale.dgettext)? -(_?locale.gettext)? -(_?locale.textdomain)? - -# not available on python distributions compiled without sqlite3 loadable extension support -_sqlite3.Connection.load_extension -_sqlite3.Connection.enable_load_extension diff --git a/stdlib/@tests/stubtest_allowlists/darwin-py38.txt b/stdlib/@tests/stubtest_allowlists/darwin-py38.txt index 3a1e4d21dd05..142bbf53787e 100644 --- a/stdlib/@tests/stubtest_allowlists/darwin-py38.txt +++ b/stdlib/@tests/stubtest_allowlists/darwin-py38.txt @@ -5,3 +5,10 @@ spwd _msi msilib(.[a-z]+)? ossaudiodev + +# Added in Python 3.8.14 +sys.set_int_max_str_digits +sys.get_int_max_str_digits + +# Added in Python 3.8.17 +tarfile.TarInfo.replace diff --git a/stdlib/@tests/stubtest_allowlists/darwin-py39.txt b/stdlib/@tests/stubtest_allowlists/darwin-py39.txt index 3a1e4d21dd05..34333c509515 100644 --- a/stdlib/@tests/stubtest_allowlists/darwin-py39.txt +++ b/stdlib/@tests/stubtest_allowlists/darwin-py39.txt @@ -5,3 +5,17 @@ spwd _msi msilib(.[a-z]+)? ossaudiodev + +# Added in Python 3.9.14 +sys.set_int_max_str_digits +sys.get_int_max_str_digits + +# Added in Python 3.9.17 +tarfile.TarInfo.replace + +# Added in Python 3.9.20 +email._header_value_parser.NLSET +email._header_value_parser.SPECIALSNL +email.errors.HeaderWriteError +email.utils.getaddresses +email.utils.parseaddr diff --git a/stdlib/@tests/stubtest_allowlists/darwin.txt b/stdlib/@tests/stubtest_allowlists/darwin.txt index 07f013c0cf62..8696aecdde88 100644 --- a/stdlib/@tests/stubtest_allowlists/darwin.txt +++ b/stdlib/@tests/stubtest_allowlists/darwin.txt @@ -61,3 +61,16 @@ curses.COLORS # Initialized after start_color curses.COLOR_PAIRS # Initialized after start_color curses.COLS # Initialized only after initscr call curses.LINES # Initialized only after initscr call + +# These entries looks like a `setup-python` bug: +(dbm.gnu)? +(_?locale.bind_textdomain_codeset)? +(_?locale.bindtextdomain)? +(_?locale.dcgettext)? +(_?locale.dgettext)? +(_?locale.gettext)? +(_?locale.textdomain)? + +# Not available on python distributions compiled without sqlite3 loadable extension support +_sqlite3.Connection.load_extension +_sqlite3.Connection.enable_load_extension diff --git a/stdlib/@tests/stubtest_allowlists/win32-py310.txt b/stdlib/@tests/stubtest_allowlists/win32-py310.txt index e9b0b2d5c29b..4965548c93ed 100644 --- a/stdlib/@tests/stubtest_allowlists/win32-py310.txt +++ b/stdlib/@tests/stubtest_allowlists/win32-py310.txt @@ -1,3 +1,4 @@ +# Added in Python 3.10.12 tarfile.TarInfo.replace # pathlib methods that exist on Windows, but always raise NotImplementedError, diff --git a/stdlib/@tests/stubtest_allowlists/win32-py38.txt b/stdlib/@tests/stubtest_allowlists/win32-py38.txt index 4f10b78af53a..aa003e82b997 100644 --- a/stdlib/@tests/stubtest_allowlists/win32-py38.txt +++ b/stdlib/@tests/stubtest_allowlists/win32-py38.txt @@ -1,3 +1,4 @@ +# Added in Python 3.8.17 tarfile.TarInfo.replace # ========== diff --git a/stdlib/@tests/stubtest_allowlists/win32-py39.txt b/stdlib/@tests/stubtest_allowlists/win32-py39.txt index e1154c3e6c9b..a81b7e710118 100644 --- a/stdlib/@tests/stubtest_allowlists/win32-py39.txt +++ b/stdlib/@tests/stubtest_allowlists/win32-py39.txt @@ -1,3 +1,4 @@ +# Added in Python 3.9.17 tarfile.TarInfo.replace # pathlib methods that exist on Windows, but always raise NotImplementedError,