summaryrefslogtreecommitdiffstats
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
* [3.13] gh-122907: Fix Builds Without HAVE_DYNAMIC_LOADING Set (gh-122952) ↵Miss Islington (bot)2024-12-031-0/+9
| | | | | | | | | | | (#122984) gh-122907: Fix Builds Without HAVE_DYNAMIC_LOADING Set (gh-122952) As of 529a160 (gh-118204), building with HAVE_DYNAMIC_LOADING stopped working. This is a minimal fix just to get builds working again. There are actually a number of long-standing deficiencies with HAVE_DYNAMIC_LOADING builds that need to be resolved separately. (cherry picked from commit ee1b8ce26e700350e47a5f65201097121c41912e) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.13] gh-127341: Argument Clinic: fix compiler warnings for getters with ↵Peter Bierma2024-11-301-7/+3
| | | | | | | docstrings (GH-127310) (#127431) (cherry picked from commit 99490913a08adcf2fe5e69b82772a829ec462275) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.13] summarize: Fix typo in stats (GH-127450) (#127454)Miss Islington (bot)2024-11-301-1/+1
| | | | Co-authored-by: alm <alonme@users.noreply.github.com>
* [3.13] gh-127303: Add docs for token.EXACT_TOKEN_TYPES (GH-127304) (#127390)Miss Islington (bot)2024-11-301-1/+2
| | | | | | | | | | | | gh-127303: Add docs for token.EXACT_TOKEN_TYPES (GH-127304) --------- (cherry picked from commit dd3a87d2a8f8750978359a99de2c5cb2168351d1) Co-authored-by: Илья Любавский <100635212+lubaskinc0de@users.noreply.github.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Tomas R. <tomas.roun8@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* [3.13] gh-126316: Make grp.getgrall() thread-safe: add a mutex (#127055) ↵Victor Stinner2024-11-261-0/+1
| | | | | | | | | | | | | | | | (#127104) * gh-126316: Make grp.getgrall() thread-safe: add a mutex (#127055) grpmodule.c is no longer built with the limited C API, since PyMutex is excluded from the limited C API. (cherry picked from commit 3c2bd66e21bd8de69a89ebf09ff9d8e78ddfb839) * Revert ABI changes Don't use Argument Clinic for grp.getgrgid() to avoid changing the ABI (change PyInterpreterState structure by adding an "id" identifier).
* gh-118973: Add _tkinter to freethreaded MSI (GH-126768)Miss Islington (bot)2024-11-151-1/+1
| | | | | (cherry picked from commit 9332a6f82506f819f591466eb03213be2c8d1808) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.13] gh-126807: pygettext: Do not attempt to extract messages from ↵Miss Islington (bot)2024-11-141-0/+6
| | | | | | | | | | | | | | | | | | function definitions. (GH-126808) (GH-126846) Fixes a bug where pygettext would attempt to extract a message from a code like this: def _(x): pass This is because pygettext only looks at one token at a time and '_(x)' looks like a function call. However, since 'x' is not a string literal, it would erroneously issue a warning. (cherry picked from commit 9a456383bed52010b90bd491277ea855626a7bba) Co-authored-by: Tomas R <tomas.roun8@gmail.com>
* [3.13] gh-126623: Update libexpat to 2.6.4, make future updates easier ↵Miss Islington (bot)2024-11-131-0/+28
| | | | | | | | | | (GH-126792) (GH-126796) gh-126623: Update libexpat to 2.6.4, make future updates easier (GH-126792) Update libexpat to 2.6.4, make future updates easier. (cherry picked from commit 3c9996909402fadc98e6ca2a64e75a71a7427352) Co-authored-by: Seth Michael Larson <seth@python.org>
* [3.13] gh-126525: Fix `makeunicodedata.py` output on macOS and Windows ↵Miss Islington (bot)2024-11-121-1/+1
| | | | | | | | (GH-126526) (#126725) gh-126525: Fix `makeunicodedata.py` output on macOS and Windows (GH-126526) (cherry picked from commit f223efb2a2d6a3e86556be7295cbbd3ef839f489) Co-authored-by: sobolevn <mail@sobolevn.me>
* gh-126497: Add missing venv redirectors to freethreaded installer (GH-126556)Miss Islington (bot)2024-11-081-4/+6
| | | | | (cherry picked from commit fd5580cd151e07c690e9d7594513be5fa3102a2e) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.13] GH-123877: make `wasm32-wasip1` the target triple for WASI (#126561)Brett Cannon2024-11-081-1/+1
|
* [3.13] gh-89640: harden float word ordering (#125571 and #126387) (#126429)Erlend E. Aasland2024-11-051-1/+1
| | | | | | | | | | | Properly detect float word ordering on Linux (gh-125571) autoconf-archive patch by Dan Amelang. (cherry picked from commit 26d627779f79d8d5650fe7be348432eccc28f8f9) Hardcode WASM float word ordering to little endian (gh-126387) (cherry picked from commit 532fc08102d62c04d55f5b8aac00bd9e7e12ff4b)
* [3.13] gh-124612: Use ghcr.io/python/autoconf instead of public image ↵Miss Islington (bot)2024-10-301-4/+2
| | | | | | | (GH-124657) (#126183) (cherry picked from commit b502573f7f800dbb2e401fa2a7a05eceac692c7a) Co-authored-by: Donghee Na <donghee.na@python.org>
* [3.13] gh-125741: Update `build.yml` for the new check_autoconf_regen job ↵Miss Islington (bot)2024-10-211-1/+1
| | | | | | | (GH-125772) (#125779) (cherry picked from commit f36d37bbafcee711c765a8cda9ac3ca00b8258c8) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.13] CI: Bump Python to 3.13 and mypy to 1.12 in mypy workflow (GH-… ↵Kirill Podoprigora2024-10-161-1/+1
| | | | | | | (#125596) [3.13] CI: Bump Python to 3.13 and mypy to 1.12 in mypy workflow (GH-125592) (cherry picked from commit d83fcf8371f2f33c7797bc8f5423a8bca8c46e5c)
* [3.13] GH-121634: have `wasi.py` accept the host target triple as an ↵Miss Islington (bot)2024-10-101-6/+12
| | | | | | | | argument (GH-123030) (GH-123042) GH-121634: have `wasi.py` accept the host target triple as an argument (GH-123030) (cherry picked from commit b15b81ed4f58196b35e3dd13b484f4c7a73e5bb8) Co-authored-by: Brett Cannon <brett@python.org>
* [3.13] Fix typos (#123775) (#123866)Victor Stinner2024-10-071-1/+1
| | | | | | | Fix typos (#123775) (cherry picked from commit 9017b95ff2dcff16bcb0b0a609ed2b0daa845943) Co-authored-by: algonell <algonell@gmail.com>
* [3.13] gh-123915: Ensure that Windows AMD64 and ARM64 release builds use ↵Miss Islington (bot)2024-09-301-1/+1
| | | | | | | | different directories (GH-123918) (#123921) gh-123915: Ensure that Windows AMD64 and ARM64 release builds use different directories (GH-123918) (cherry picked from commit 00ffdf27367fb9aef247644a96f1a9ffb5be1efe) Co-authored-by: adang1345 <adang1345@gmail.com>
* [3.13] gh-123892: Add "_wmi" to sys.stdlib_module_names (GH-123893) (#123896)Miss Islington (bot)2024-09-301-0/+1
| | | | | | gh-123892: Add "_wmi" to sys.stdlib_module_names (GH-123893) (cherry picked from commit fb1b51a58df4315f7ef3171a5abeb74f132b0971) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.13] gh-124254: Detect freethreaded MSI component when doing an upgrade on ↵Miss Islington (bot)2024-09-301-0/+1
| | | | | | | | Windows (GH-124279) (#124347) gh-124254: Detect freethreaded MSI component when doing an upgrade on Windows (GH-124279) (cherry picked from commit df7228ce140ecb005d44a0c171ba4d098b3fa67c) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.13] gh-123880: Allow recursive import of single-phase-init modules ↵Miss Islington (bot)2024-09-231-0/+1
| | | | | | | | | | | (GH-123950) (#124273) gh-123880: Allow recursive import of single-phase-init modules (GH-123950) (cherry picked from commit aee219f4558dda619bd86e4b0e028ce47a5e4b77) Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Brett Cannon <brett@python.org>
* [3.13] gh-123700: Update OpenSSL versions in multissltests and CI (GH-123702)Miss Islington (bot)2024-09-041-1/+2
| | | | | | | | Remove EOL 1.1.1w from CI and move it to the 'old' set in multissltests, add latest 3.3.2 to both CI and multissltests. (cherry picked from commit d83e30caddcbf9482273743d287577517ec735b7) Co-authored-by: Zachary Ware <zach@python.org>
* [3.13] gh-123418: Update CI to use fresh OpenSSL releases (GH-123696)Miss Islington (bot)2024-09-041-3/+5
| | | | | | Also adds openssl/openssl GitHub URL template for newer OpenSSL downloads (cherry picked from commit 56b00f4705634af2861a8aa9c2eb5769012220f0) Co-authored-by: Zachary Ware <zach@python.org>
* [3.13] gh-123458: Skip SBOM generation if no git repository is detected ↵Miss Islington (bot)2024-09-021-0/+18
| | | | | | | | (GH-123507) (#123616) gh-123458: Skip SBOM generation if no git repository is detected (GH-123507) (cherry picked from commit db42934270c5c23be9f6804cad98dfd8234caf6f) Co-authored-by: Seth Michael Larson <seth@python.org>
* [3.13] build(deps): bump hypothesis from 6.108.10 to 6.111.2 in /Tools ↵Hugo van Kemenade2024-09-021-1/+1
| | | | | | | | (GH-123567) (#123591) (cherry picked from commit 88210c295d51364c9f779989bc528084b8fe8765) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* [3.13] gh-122688: Fix support of var-positional parameter in Argument Clinic ↵Serhiy Storchaka2024-09-022-10/+12
| | | | | | | | | | (GH-122689) (#122852) * Parameters after the var-positional parameter are now keyword-only instead of positional-or-keyword. * Correctly calculate min_kw_only. * Raise errors for invalid combinations of the var-positional parameter with "*", "/" and deprecation markers. (cherry picked from commit 8393608dd9f157ae25ee44777541e62fa80a6d82)
* [3.13] GH-121723: Skip test_config_queue_handler_multiprocessing_context in ↵Miss Islington (bot)2024-08-221-0/+1
| | | | | | emulated JIT CI (GH-122991) (cherry picked from commit 7b8328b6b33939dfff4606d286b10069a09223dd) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* [3.13] GH-118943: Handle races when moving jit_stencils.h (GH-122709)Miss Islington (bot)2024-08-081-1/+6
| | | | | | (cherry picked from commit 44659d392751f0161a0f958fec39ad013da45427) Co-authored-by: Miro Hrončok <miro@hroncok.cz> Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* [3.13] Fix syntax in generate_re_casefix.py (GH-122699) (#122721)Miss Islington (bot)2024-08-061-2/+2
| | | | | | This was broken in gh-97963. (cherry picked from commit b72c748d7fb4ecc0bc4626c7bc05fbc6c83f0ba8) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.13] gh-117657: Avoid race in `PAUSE_ADAPTIVE_COUNTER` in free-threaded ↵Miss Islington (bot)2024-07-301-1/+0
| | | | | | | | | | build (GH-122190) (#122475) The adaptive counter doesn't do anything currently in the free-threaded build and TSan reports a data race due to concurrent modifications to the counter. (cherry picked from commit 2b163aa9e796b312bb0549d49145d26e4904768e) Co-authored-by: Sam Gross <colesbury@gmail.com>
* [3.13] gh-122044: Don't error during gitignore filtering with no files ↵Miss Islington (bot)2024-07-271-0/+4
| | | | | | (GH-122045) (#122355) Co-authored-by: Seth Michael Larson <seth@python.org>
* [3.13] gh-122201: Lock mutex when setting handling_thread to NULL ↵Miss Islington (bot)2024-07-261-1/+0
| | | | | | | | | | (GH-122204) (#122319) In the free-threaded build, we need to lock pending->mutex when clearing the handling_thread in order not to race with a concurrent make_pending_calls in the same interpreter. (cherry picked from commit c557ae97d6bd9d04164a19b4fe136610e54dbdd8) Co-authored-by: Sam Gross <colesbury@gmail.com>
* [3.13] GH-122155: Fix cases generator to correctly compute 'peek' offset for ↵Mark Shannon2024-07-263-6/+17
| | | | error handling (GH-122158) (GH-122174)
* [3.13] gh-122270: Fix typos in the Py_DEBUG macro name (GH-122271) (GH-122275)Miss Islington (bot)2024-07-251-3/+3
| | | | | (cherry picked from commit 6c09b8de5c67406113e8d082e05c9587e35a852a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] GH-121970: Rewrite the C-API annotations extension (#121985) (#122027)Adam Turner2024-07-191-8/+15
| | | | | | GH-121970: Rewrite the C-API annotations extension (#121985) Co-authored-by: Petr Viktorin <encukou@gmail.com> (cherry picked from commit 22c9d9c1fcc3bb6186524330b169eda6df450f1b)
* [3.13] Add note about PYTHON_JIT environment variable to JIT README (GH-121942)Miss Islington (bot)2024-07-171-2/+6
| | | | (cherry picked from commit f113c1a2a9d4fb2860de1bd8c05677f00fd49bd9) Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
* [3.13] GH-120371: Add WASI SDK 22 support (GH-121870) (GH-121873)Miss Islington (bot)2024-07-161-0/+8
| | | | | | | | GH-120371: Add WASI SDK 22 support (GH-121870) Required disabling stub functions now provided by wasi-libc. (cherry picked from commit f589f263bcb54332e47bfc76cbb06f775e82b778) Co-authored-by: Brett Cannon <brett@python.org>
* [3.13] gh-117657: Remove TSAN suppressions for _abc.c (GH-121508) (#121598)Miss Islington (bot)2024-07-101-2/+0
| | | | | | | The functions look thread-safe and I haven't seen any warnings issued when running the tests locally. (cherry picked from commit 7641743d48b276de88a709ad40d715b6c5d7a2ea) Co-authored-by: Sam Gross <colesbury@gmail.com>
* [3.13] gh-117657: Fix TSan race in _PyDict_CheckConsistency (GH-121551) ↵Miss Islington (bot)2024-07-101-8/+0
| | | | | | | | | (#121590) The only remaining race in dictobject.c was in _PyDict_CheckConsistency when the dictionary has shared keys. (cherry picked from commit 3ec719fabf936ea7a012a76445b860759155de86) Co-authored-by: Sam Gross <colesbury@gmail.com>
* [3.13] GH-121521: Detect when wasmtime is not installed in ↵Miss Islington (bot)2024-07-091-6/+18
| | | | | | | | `Tools/wasm/wasi.py` (GH-121522) (GH-121558) GH-121521: Detect when wasmtime is not installed in `Tools/wasm/wasi.py` (GH-121522) (cherry picked from commit f62161837e68c1c77961435f1b954412dd5c2b65) Co-authored-by: Brett Cannon <brett@python.org>
* [3.13] gh-117657: Fix TSAN races in setobject.c (GH-121511) (#121541)Miss Islington (bot)2024-07-091-3/+0
| | | | | | | | The `used` field must be written using atomic stores because `set_len` and iterators may access the field concurrently without holding the per-object lock. (cherry picked from commit 9c08f40a613d9aee78de4ce4ec3e125d1496d148) Co-authored-by: Sam Gross <colesbury@gmail.com>
* [3.13] gh-117657: Fix data races reported by TSAN in some set methods ↵Miss Islington (bot)2024-07-011-1/+0
| | | | | | | | | | | (GH-120914) (#121240) Refactor the fast Unicode hash check into `_PyObject_HashFast` and use relaxed atomic loads in the free-threaded build. After this change, the TSAN doesn't report data races for this method. (cherry picked from commit 294e72496439da984cb8dba9100d3613c8cc8a6d) Co-authored-by: AN Long <aisk@users.noreply.github.com>
* [3.13] Ignore some failing tests in emulated JIT CI (GH-120977)Miss Islington (bot)2024-06-261-1/+4
| | | | (cherry picked from commit 07daaf1ce10eb6d7a5ca9ea7c9055bf571d9e57f) Co-authored-by: Diego Russo <diego.russo@arm.com>
* [3.13] gh-113993: Allow interned strings to be mortal, and fix related ↵Petr Viktorin2024-06-242-5/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | issues (GH-120520) (GH-120945) * Add an InternalDocs file describing how interning should work and how to use it. * Add internal functions to *explicitly* request what kind of interning is done: - `_PyUnicode_InternMortal` - `_PyUnicode_InternImmortal` - `_PyUnicode_InternStatic` * Switch uses of `PyUnicode_InternInPlace` to those. * Disallow using `_Py_SetImmortal` on strings directly. You should use `_PyUnicode_InternImmortal` instead: - Strings should be interned before immortalization, otherwise you're possibly interning a immortalizing copy. - `_Py_SetImmortal` doesn't handle the `SSTATE_INTERNED_MORTAL` to `SSTATE_INTERNED_IMMORTAL` update, and those flags can't be changed in backports, as they are now part of public API and version-specific ABI. * Add private `_only_immortal` argument for `sys.getunicodeinternedsize`, used in refleak test machinery. * Make sure the statically allocated string singletons are unique. This means these sets are now disjoint: - `_Py_ID` - `_Py_STR` (including the empty string) - one-character latin-1 singletons Now, when you intern a singleton, that exact singleton will be interned. * Add a `_Py_LATIN1_CHR` macro, use it instead of `_Py_ID`/`_Py_STR` for one-character latin-1 singletons everywhere (including Clinic). * Intern `_Py_STR` singletons at startup. * For free-threaded builds, intern `_Py_LATIN1_CHR` singletons at startup. * Beef up the tests. Cover internal details (marked with `@cpython_only`). * Add lots of assertions Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* [3.13] GH-120602: Support LLVM_VERSION_SUFFIX for JIT builds (GH-120768)Miss Islington (bot)2024-06-201-1/+1
| | | | | (cherry picked from commit 285f42c850da0d8ca31850088eb7b9247cbbbc71) Co-authored-by: Xarblu <xarblu@protonmail.com>
* [3.13] gh-117657: Fix `__slots__` thread safety in free-threaded build ↵Miss Islington (bot)2024-06-171-2/+0
| | | | | | | | | (GH-119368) (#120655) Fix a race in `PyMember_GetOne` and `PyMember_SetOne` for `Py_T_OBJECT_EX`. These functions implement `__slots__` accesses for Python objects. (cherry picked from commit 362cd2680b45a36c3467b9721ff7fc0ceb338452) Co-authored-by: Daniele Parmeggiani <8658291+dpdani@users.noreply.github.com>
* [3.13] gh-117657: Fix TSan reported data race on ioctl_works (GH-120175) ↵Miss Islington (bot)2024-06-171-1/+0
| | | | | | | (#120654) (cherry picked from commit 460cc9e14e221c53c0038a847bfd411fe184ebf3) Co-authored-by: Sam Gross <colesbury@gmail.com>
* [3.13] gh-120433: Mention ``chocolatey`` for installing llvm on Windows as ↵Miss Islington (bot)2024-06-171-0/+6
| | | | | | | | an alternative option (GH-120434) (#120651) gh-120433: Mention ``chocolatey`` for installing llvm on Windows as an alternative option (GH-120434) (cherry picked from commit 95737bbf18765a24b6585708588c9b707dc30d27) Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* [3.13] gh-117657: Add TSAN suppression for set_default_allocator_unlocked ↵Miss Islington (bot)2024-06-141-0/+2
| | | | | | | | | | (GH-120500) (#120510) gh-117657: Add TSAN suppression for set_default_allocator_unlocked (GH-120500) Add TSAN suppression for set_default_allocator_unlocked (cherry picked from commit 2bacc2343c24c49292dea3461f6b7664fc2d33e2) Co-authored-by: AN Long <aisk@users.noreply.github.com>
* [3.13] gh-117657: Make PyType_HasFeature atomic (GH-120210) (#120443)Miss Islington (bot)2024-06-131-1/+0
| | | | | | | | gh-117657: Make PyType_HasFeature atomic (GH-120210) Make PyType_HasFeature atomic (cherry picked from commit eebae2c460dabdc70dc0d9b6e189368eb1abb716) Co-authored-by: Ken Jin <kenjin@python.org>