Skip to content

stdlib compatability checking scripts #5697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

arihant2math
Copy link
Collaborator

@arihant2math arihant2math commented Apr 14, 2025

An automated version of #5529.
The current issue is I have no idea as to where to store the lists of update prs.
The output of the script is a checklist.

@arihant2math
Copy link
Collaborator Author

arihant2math commented Apr 14, 2025

Formatting is skewed due to the details block being weird.

Example output

# List of libraries

  • abc
  • antigravity
  • argparse
  • ast
  • asyncio
  • base64
  • bdb
  • bisect
  • bz2 Fix bz2 module #5605
  • calendar Update calendar and test_calendar to 3.13.2 #5696
  • cmd
  • code
  • codecs
  • codeop
  • collections
  • colorsys
  • compileall
  • concurrent
  • configparser
  • contextlib
  • contextvars
  • copy
  • copyreg
  • csv
  • ctypes
  • dataclasses
  • datetime
  • dbm
  • decimal
  • difflib
  • dis
  • doctest
  • email Update email to 3.13.2 and remove deprecated modules #5663
  • encodings
  • ensurepip
  • enum
  • filecmp
  • fileinput
  • fnmatch
  • fractions
  • ftplib
  • functools
  • genericpath
  • getopt
  • getpass
  • gettext
  • glob
  • graphlib
  • gzip Fix a bunch of zlib tests & update gzip.py to Python 3.13 #5563
  • hashlib
  • heapq
  • hmac
  • html
  • http
  • importlib
  • inspect
  • io
  • ipaddress
  • json
  • keyword
  • linecache
  • locale
  • logging
  • mailbox
  • mimetypes
  • multiprocessing
  • netrc
  • ntpath
  • nturl2path
  • numbers
  • opcode
  • operator
  • optparse
  • os
  • pdb
  • pickle
  • pickletools
  • pkgutil
  • platform
  • plistlib
  • posixpath
  • pprint
  • pty
  • pydoc
  • pydoc_data
  • py_compile
  • queue
  • quopri
  • random
  • re
  • reprlib
  • rlcompleter
  • runpy
  • sched
  • secrets
  • selectors
  • shelve
  • shlex
  • shutil
  • signal
  • site
  • smtplib
  • socket
  • socketserver
  • sqlite3
  • sre_compile
  • sre_constants
  • sre_parse
  • ssl
  • stat
  • statistics
  • string
  • stringprep
  • struct
  • subprocess
  • tabnanny
  • tarfile
  • tempfile
  • textwrap
  • this
  • threading
  • timeit
  • tkinter
  • token
  • tokenize
  • tomllib
  • trace
  • traceback
  • tty
  • types
  • typing typing upgrade to 3.13.2 #5590
  • unittest
  • urllib
  • uuid
  • venv
  • warnings
  • weakref
  • webbrowser
  • wsgiref
  • xml
  • xmlrpc
  • zipapp
  • zipimport
  • zoneinfo
  • _aix_support
  • _android_support
  • _collections_abc
  • _colorize
  • _compat_pickle
  • _compression
  • _ios_support
  • _markupbase
  • _osx_support
  • _pydatetime
  • _pydecimal
  • _pyio
  • _pylong
  • _pyrepl
  • _py_abc
  • _sitebuiltins
  • _strptime
  • _threading_local
  • _weakrefset
  • future
  • hello
  • phello

List of un-added libraries

These libraries are not added yet. Pure python one will be possible while others are not.

  • cProfile
  • curses
  • idlelib
  • imaplib
  • lzma
  • modulefinder
  • pathlib
  • poplib
  • profile
  • pstats
  • pyclbr
  • site-packages
  • symtable
  • sysconfig
  • tracemalloc
  • turtle
  • turtledemo
  • wave
  • zipfile
  • _opcode_metadata

List of tests without python libraries

  • test_abstract_numbers
  • test_array
  • test_asyncgen
  • test_atexit
  • test_audit Added test_audit from 3.13.2 #5637
  • test_augassign
  • test_baseexception
  • test_bigaddrspace
  • test_bigmem
  • test_binascii
  • test_binop
  • test_bool
  • test_buffer
  • test_bufio
  • test_builtin
  • test_bytes
  • test_call
  • test_charmapcodec
  • test_class
  • test_cmath
  • test_cmd_line
  • test_cmd_line_script
  • test_codeccallbacks
  • test_code_module
  • test_compare
  • test_compile
  • test_complex
  • test_contains
  • test_context
  • test_c_locale_coercion
  • test_dbm_dumb
  • test_decorators
  • test_defaultdict
  • test_deque
  • test_descr
  • test_descrtut
  • test_devpoll
  • test_dict
  • test_dictcomps
  • test_dictviews
  • test_docxmlrpc
  • test_dtrace
  • test_dynamic
  • test_dynamicclassattribute
  • test_eintr
  • test_enumerate
  • test_eof
  • test_epoll
  • test_errno
  • test_exceptions
  • test_exception_group
  • test_exception_hierarchy
  • test_exception_variations
  • test_faulthandler
  • test_fcntl
  • test_file
  • test_fileio
  • test_float
  • test_format
  • test_fstring
  • test_funcattrs
  • test_future_stmt
  • test_generators
  • test_genericalias
  • test_genericclass
  • test_global
  • test_grammar
  • test_grp
  • test_hash
  • test_htmlparser
  • test_httplib
  • test_httpservers
  • test_http_cookiejar
  • test_http_cookies
  • test_import
  • test_importlib
  • test_index
  • test_int
  • test_int_literal
  • test_ioctl
  • test_isinstance
  • test_iter
  • test_iterlen
  • test_itertools
  • test_json
  • test_keywordonlyarg
  • test_kqueue
  • test_largefile
  • test_list
  • test_listcomps
  • test_long
  • test_longexp
  • test_marshal
  • test_math
  • test_memoryio
  • test_memoryview
  • test_mmap
  • test_module
  • test_multiprocessing_fork
  • test_multiprocessing_forkserver
  • test_multiprocessing_main_handling
  • test_multiprocessing_spawn
  • test_named_expressions
  • test_numeric_tower
  • test_opcache
  • test_opcodes
  • test_openpty
  • test_ordered_dict
  • test_pkg
  • test_poll
  • test_popen
  • test_positional_only_arg
  • test_posix
  • test_pow
  • test_print
  • test_property
  • test_pulldom
  • test_pwd
  • test_pyexpat
  • test_raise
  • test_range
  • test_regrtest
  • test_repl
  • test_resource
  • test_richcmp
  • test_robotparser
  • test_scope
  • test_script_helper
  • test_set
  • test_setcomps
  • test_slice
  • test_smtpnet
  • test_sort
  • test_sqlite3
  • test_strftime
  • test_string_literals
  • test_strtod
  • test_structseq
  • test_subclassinit
  • test_sundry
  • test_super
  • test_support
  • test_syntax
  • test_sys
  • test_syslog
  • test_sys_setprofile
  • test_sys_settrace
  • test_thread
  • test_threadedtempfile
  • test_threading_local
  • test_time
  • test_timeout
  • test_tomllib
  • test_tuple
  • test_typechecks
  • test_type_comments
  • test_ucn
  • test_unary
  • test_unicodedata
  • test_unicode_file
  • test_unicode_file_functions
  • test_unicode_identifiers
  • test_univnewlines
  • test_unpack
  • test_urllib2
  • test_urllib2net
  • test_urllib2_localnet
  • test_urllibnet
  • test_urllib_response
  • test_urlparse
  • test_userdict
  • test_userlist
  • test_userstring
  • test_utf8source
  • test_utf8_mode
  • test_weakset
  • test_with
  • test_xml_dom_minicompat
  • test_xml_etree
  • test_yield_from
  • test_zipfile64
  • test_zlib
  • test_zoneinfo
  • test___all__

List of un-added tests without python libraries

  • test_android
  • test_asdl_parser
  • test_ast
  • test_asyncio
  • test_capi
  • test_cext
  • test_clinic
  • test_codecencodings_cn
  • test_codecencodings_hk
  • test_codecencodings_iso2022
  • test_codecencodings_jp
  • test_codecencodings_kr
  • test_codecencodings_tw
  • test_codecmaps_cn
  • test_codecmaps_hk
  • test_codecmaps_jp
  • test_codecmaps_kr
  • test_codecmaps_tw
  • test_compiler_assemble
  • test_compiler_codegen
  • test_concurrent_futures
  • test_contextlib_async
  • test_coroutines
  • test_cppext
  • test_cprofile
  • test_ctypes
  • test_dataclasses
  • test_dbm_gnu
  • test_dbm_ndbm
  • test_dbm_sqlite3
  • test_dict_version
  • test_doctest
  • test_email
  • test_embed
  • test_except_star
  • test_extcall
  • test_external_inspection
  • test_fileutils
  • test_file_eintr
  • test_finalization
  • test_flufl
  • test_fork1
  • test_frame
  • test_free_threading
  • test_frozen
  • test_gc
  • test_gdb
  • test_generated_cases
  • test_generator_stop
  • test_genexps
  • test_getpath
  • test_idle
  • test_inspect
  • test_interpreters
  • test_launcher
  • test_lltrace
  • test_math_property
  • test_metaclass
  • test_minidom
  • test_monitoring
  • test_msvcrt
  • test_multibytecodec
  • test_optimizer
  • test_osx_env
  • test_pathlib
  • test_patma
  • test_peepholer
  • test_peg_generator
  • test_pep646_syntax
  • test_perfmaps
  • test_perf_profiler
  • test_picklebuffer
  • test_pydoc
  • test_pyrepl
  • test_readline
  • test_sax
  • test_select
  • test_source_encoding
  • test_stable_abi_ctypes
  • test_startfile
  • test_str
  • test_strptime
  • test_tcl
  • test_termios
  • test_threadsignals
  • test_tkinter
  • test_tools
  • test_ttk
  • test_ttk_textonly
  • test_type_aliases
  • test_type_annotations
  • test_type_cache
  • test_type_params
  • test_unittest
  • test_unpack_ex
  • test_unparse
  • test_wait3
  • test_wait4
  • test_warnings
  • test_winapi
  • test_winconsoleio
  • test_winreg
  • test_winsound
  • test_wmi
  • test_xml_etree_c
  • test_xxlimited
  • test_xxtestfuzz
  • test_zipfile
  • test_zipimport_support
  • test__interpchannels
  • test__interpreters
  • test__locale
  • test__opcode

@youknowone
Copy link
Member

Is storing list of PRs for not to run duplicated run of the script? Than something like scripts/checklist/3.13.2.out.

@arihant2math
Copy link
Collaborator Author

It's for outputting the checklist and marking completed prs. I might do that, but it'd require each pr author to remember to update that file.

@arihant2math arihant2math force-pushed the check-eq branch 2 times, most recently from 9c397b1 to 00a5f3b Compare April 22, 2025 03:34
@arihant2math
Copy link
Collaborator Author

Newly generated output

List of libraries

List of un-added libraries

These libraries are not added yet. Pure python one will be possible while others are not.

  • cProfile
  • curses
  • idlelib
  • imaplib
  • lzma
  • modulefinder
  • pathlib
  • poplib
  • profile
  • pstats
  • pyclbr
  • site-packages
  • symtable
  • sysconfig
  • tracemalloc
  • turtle
  • turtledemo
  • zipfile
  • _opcode_metadata

List of tests without python libraries

  • test_abstract_numbers
  • test_android Add more independent tests at 3.13.3 #5701
  • test_array
  • test_asyncgen
  • test_atexit
  • test_audit Added test_audit from 3.13.2 #5637
  • test_augassign
  • test_baseexception
  • test_bigaddrspace
  • test_bigmem
  • test_binascii
  • test_binop
  • test_bool
  • test_buffer
  • test_bufio
  • test_builtin
  • test_bytes
  • test_call
  • test_charmapcodec
  • test_class
  • test_cmath
  • test_cmd_line
  • test_cmd_line_script
  • test_codeccallbacks
  • test_code_module
  • test_compare
  • test_compile
  • test_complex
  • test_contains
  • test_context
  • test_c_locale_coercion
  • test_dbm_dumb
  • test_decorators
  • test_defaultdict
  • test_deque
  • test_descr
  • test_descrtut
  • test_devpoll
  • test_dict
  • test_dictcomps
  • test_dictviews
  • test_docxmlrpc
  • test_dtrace
  • test_dynamic
  • test_dynamicclassattribute
  • test_eintr
  • test_enumerate
  • test_eof
  • test_epoll
  • test_errno
  • test_exceptions
  • test_exception_group
  • test_exception_hierarchy
  • test_exception_variations
  • test_faulthandler
  • test_fcntl
  • test_file
  • test_fileio
  • test_float Add/update various tests at 3.13.3 #5698
  • test_format
  • test_fstring
  • test_funcattrs
  • test_future_stmt
  • test_generators
  • test_genericalias
  • test_genericclass
  • test_global
  • test_grammar
  • test_grp
  • test_hash
  • test_htmlparser
  • test_httplib
  • test_httpservers
  • test_http_cookiejar
  • test_http_cookies
  • test_import
  • test_importlib
  • test_index
  • test_int
  • test_int_literal
  • test_ioctl
  • test_isinstance
  • test_iter
  • test_iterlen
  • test_itertools
  • test_json
  • test_keywordonlyarg
  • test_kqueue
  • test_largefile
  • test_list
  • test_listcomps
  • test_long
  • test_longexp
  • test_marshal
  • test_math
  • test_memoryio
  • test_memoryview
  • test_mmap
  • test_module
  • test_multiprocessing_fork
  • test_multiprocessing_forkserver
  • test_multiprocessing_main_handling
  • test_multiprocessing_spawn
  • test_named_expressions
  • test_numeric_tower
  • test_opcache
  • test_opcodes
  • test_openpty
  • test_ordered_dict
  • test_pkg
  • test_poll
  • test_popen
  • test_positional_only_arg
  • test_posix
  • test_pow
  • test_print
  • test_property
  • test_pulldom
  • test_pwd
  • test_pyexpat
  • test_raise
  • test_range
  • test_regrtest
  • test_repl
  • test_resource
  • test_richcmp
  • test_robotparser
  • test_scope
  • test_script_helper
  • test_set
  • test_setcomps
  • test_slice
  • test_smtpnet
  • test_sort
  • test_sqlite3
  • test_strftime
  • test_string_literals
  • test_strtod
  • test_structseq
  • test_subclassinit
  • test_sundry
  • test_super
  • test_support
  • test_syntax
  • test_sys
  • test_syslog
  • test_sys_setprofile
  • test_sys_settrace
  • test_thread
  • test_threadedtempfile
  • test_threading_local
  • test_time
  • test_timeout
  • test_tomllib
  • test_tuple
  • test_typechecks
  • test_type_comments
  • test_ucn
  • test_unary
  • test_unicodedata
  • test_unicode_file
  • test_unicode_file_functions
  • test_unicode_identifiers
  • test_univnewlines
  • test_unpack
  • test_urllib2
  • test_urllib2net
  • test_urllib2_localnet
  • test_urllibnet
  • test_urllib_response
  • test_urlparse
  • test_userdict
  • test_userlist
  • test_userstring
  • test_utf8source
  • test_utf8_mode
  • test_warnings
  • test_weakset
  • test_winapi Add/update various tests at 3.13.3 #5698
  • test_with
  • test_xml_dom_minicompat
  • test_xml_etree
  • test_yield_from
  • test_zipfile64
  • test_zlib
  • test_zoneinfo
  • test___all__

List of un-added tests without python libraries

  • test_asdl_parser
  • test_ast
  • test_asyncio
  • test_capi
  • test_cext
  • test_clinic
  • test_codecencodings_cn
  • test_codecencodings_hk
  • test_codecencodings_iso2022
  • test_codecencodings_jp
  • test_codecencodings_kr
  • test_codecencodings_tw
  • test_codecmaps_cn
  • test_codecmaps_hk
  • test_codecmaps_jp
  • test_codecmaps_kr
  • test_codecmaps_tw
  • test_compiler_assemble
  • test_compiler_codegen
  • test_concurrent_futures
  • test_contextlib_async
  • test_coroutines
  • test_cppext
  • test_cprofile
  • test_ctypes
  • test_dataclasses
  • test_dbm_gnu
  • test_dbm_ndbm
  • test_dbm_sqlite3
  • test_dict_version
  • test_doctest
  • test_email
  • test_embed
  • test_except_star
  • test_extcall
  • test_external_inspection
  • test_fileutils
  • test_file_eintr
  • test_finalization
  • test_flufl
  • test_fork1
  • test_frame
  • test_free_threading
  • test_frozen
  • test_gc
  • test_gdb
  • test_generated_cases
  • test_generator_stop
  • test_genexps
  • test_getpath
  • test_idle
  • test_inspect
  • test_interpreters
  • test_launcher
  • test_lltrace
  • test_math_property
  • test_metaclass
  • test_minidom
  • test_monitoring
  • test_msvcrt
  • test_multibytecodec
  • test_optimizer
  • test_osx_env
  • test_pathlib
  • test_patma
  • test_peepholer
  • test_peg_generator
  • test_pep646_syntax
  • test_perfmaps
  • test_perf_profiler
  • test_picklebuffer
  • test_pydoc
  • test_pyrepl
  • test_readline
  • test_sax
  • test_select
  • test_source_encoding
  • test_stable_abi_ctypes
  • test_startfile
  • test_str
  • test_strptime
  • test_tcl
  • test_termios
  • test_threadsignals
  • test_tkinter
  • test_tools
  • test_ttk
  • test_ttk_textonly
  • test_type_aliases
  • test_type_annotations
  • test_type_cache
  • test_type_params
  • test_unittest
  • test_unpack_ex
  • test_unparse
  • test_wait3
  • test_wait4
  • test_winconsoleio
  • test_winreg
  • test_winsound
  • test_wmi
  • test_xml_etree_c
  • test_xxlimited
  • test_xxtestfuzz
  • test_zipfile
  • test_zipimport_support
  • test__interpchannels
  • test__interpreters
  • test__locale
  • test__opcode

Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
@arihant2math arihant2math marked this pull request as ready for review April 23, 2025 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants