summaryrefslogtreecommitdiffstats
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
* [3.11] gh-107565: Update multissltests and GitHub CI workflows to use ↵Ned Deily2023-08-181-3/+3
| | | | OpenSSL 1.1.1v, 3.0.10, and 3.1.2. (GH-108119)
* [3.11] Fix the long64 reader in umarshal.py (GH-107828) (GH-107850)Miss Islington (bot)2023-08-101-4/+4
| | | | | (cherry picked from commit 50bbc56009ae7303d2482f28eb62f2603664b58f) Co-authored-by: Martin DeMello <martindemello@gmail.com>
* [3.11] gh-86457: Fix signature for code.replace() (GH-23199) (GH-107746)Serhiy Storchaka2023-08-091-123/+132
| | | | Also add support of @text_signature in Argument Clinic. (cherry picked from commit 0e6e32fb84b2f7cb668e0b9927637587081e38cd)
* [3.11] gh-106263: Fix segfault in `signaldict_repr` in `_decimal` module ↵Charlie Zhao2023-07-311-0/+1
| | | | | | | (#… (#107490) Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com> (cherry picked from commit 3979150a0d406707f6d253d7c15fb32c1e005a77)
* [3.11] Docs: Argument Clinic: Restructure "Basic concepts and usage" ↵Erlend E. Aasland2023-07-261-7/+13
| | | | | | | | | | | | | | | | | | (#106981) (#107327) Split "Basic concepts and usage" into: - Reference - Terminology - CLI reference - Background - Basic concepts (cherry picked from commit 2ad699002e3ce09e9fa41e333ac72f16a32d94de) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* [3.11] gh-106970: Fix Argument Clinic 'destination <name> clear' command ↵Erlend E. Aasland2023-07-221-9/+14
| | | | | | | | | | | | | | (#106972) (#107059) Add test for the 'destination <name> clear' command, and the 'destination' directive in general. Fix two bugs in 'destination <name> clear' command: 1. The text attribute of the allocator is called 'text', not '_text' 2. Return after processing the 'clear' command, instead of proceeding directly to the fail(). (cherry picked from commit 3372bcba9893030e4063a9264ec0b4d1b6166883)
* wasm: do not use inline comment in .editorconfig (GH-106610)Miss Islington (bot)2023-07-161-1/+2
| | | | | | | It is no longer valid since 0.15.0 https://github.com/editorconfig/specification/blob/v0.15/index.rstGH-no-inline-comments (cherry picked from commit 64c0890b697783db9b3f67e3bb4dcee1165a0b9b) Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
* [3.11] gh-106368: Add tests for permutation helpers in Argument Clinic ↵Miss Islington (bot)2023-07-041-2/+2
| | | | | | | | (GH-106407) (#106410) Added new test class PermutationTests() (cherry picked from commit 8f6df5e9cbc3a1689601714192aa6ecbb23e1927) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.11] gh-100340: Allows -Wno-int-conversion for wasm (GH-100341) (#106066)Miss Islington (bot)2023-06-281-0/+3
| | | | | (cherry picked from commit 75c8133efec035ec1083ebd8e7d43ef340c2e581) Co-authored-by: Kushal Das <mail@kushaldas.in>
* [3.11] Fix c-analyzer for GCC: ignore LANG env var (GH-106173) (#106177)Miss Islington (bot)2023-06-281-1/+7
| | | | | | | | | Fix c-analyzer for GCC: ignore LANG env var (GH-106173) The c-analyzer doesn't support GCC localized messages, so just unset the LANG environment variable. (cherry picked from commit 1f74b9e933d546a015e8497e3b8728357196acc8) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.11] gh-103142: Upgrade binary builds and CI to OpenSSL 1.1.1u (GH-105174) ↵Gregory P. Smith2023-06-012-2/+4
| | | | | | | | | | | | | | | (#105200) Upgrade builds to OpenSSL 1.1.1u. This OpenSSL version addresses a pile if less-urgent CVEs since 1.1.1t. The Mac/BuildScript/build-installer.py was already updated. Also updates _ssl_data_111.h from OpenSSL 1.1.1u, _ssl_data_300.h from 3.0.9. Manual edits to the _ssl_data_300.h file prevent it from removing any existing definitions in case those exist in some peoples builds and were important (avoiding regressions during backporting). (cherry picked from commit ede89af)
* gh-105146: Update links at end of Windows installer (uninstall/repair) ↵Miss Islington (bot)2023-05-311-3/+3
| | | | | | | (GH-105147) (cherry picked from commit ed86e14b1672f32f0a31d72070e93d361ee0e2b4) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.11] gh-102416: Do not memoize incorrectly loop rules in the parser ↵Pablo Galindo Salgado2023-03-061-2/+3
| | | | (GH-102467). (#102473)
* gh-102151: Correctly fetch CONFIG_ARGS in Tools/freeze/test/freeze.py ↵Miss Islington (bot)2023-02-231-1/+1
| | | | | | | (GH-102152) (cherry picked from commit c3a178398c199038f3a0891d09f0363ec73f3b38) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* gh-101849: Add upgrade codes for old versions of launcher that ended up with ↵Miss Islington (bot)2023-02-132-1/+22
| | | | | | | later version numbers (GH-101877) (cherry picked from commit 0c6fe81dce9d6bb1dce5e4503f1b42bc5355ba24) Co-authored-by: Steve Dower <steve.dower@python.org>
* gh-89792: Limit test_tools freeze test build parallelism based on the number ↵Miss Islington (bot)2023-02-121-3/+12
| | | | | | | | of cores (GH-101841) unhardcode freeze test build parallelism. base it on the number of cpus, don't use more than max(2, os.cpu_count()/3). (cherry picked from commit dfc2e065a2e71011017077e549cd2f9bf4944c54) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-89792: Prevent test_tools from copying 1000M of "source" in freeze test ↵Miss Islington (bot)2023-02-121-1/+13
| | | | | | | | | | | | (GH-101837) Prevent test_tools from copying 1000M of "source" It doesn't need a git repo, just the checkout. We skip .git metadata, Doc/build, Doc/venv, and `__pycache__` subdirs, that developers often have in their clients to reduce the size of the source tree copy ten-fold. This should significantly reduce IO and presumably time on buildbots during this long test. (cherry picked from commit 1d194235e4d5981b5fea25c75318d61189103a58) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* gh-101726: Update the OpenSSL version to 1.1.1t (GH-101727)Steve Dower2023-02-091-2/+2
| | | | | | Fixes CVE-2023-0286 (High) and a couple of Medium security issues. https://www.openssl.org/news/secadv/20230207.txt Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.11] gh-101046: Fix a potential memory leak in the parser when raising ↵Pablo Galindo Salgado2023-01-161-1/+1
| | | | | MemoryError (GH-101051) (#101085) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.11] gh-89419: gdb: fix bug causing AttributeError in py-locals when no ↵Eli Schwartz2023-01-041-0/+1
| | | | | | | | | | | | | | | | | | | | | frame is available (GH-100611) (#100738) gh-89419: gdb: fix bug causing AttributeError in py-locals when no frame is available (GH-100611) ``` Unable to read information on python frame Python Exception <class 'AttributeError'>: 'NoneType' object has no attribute 'co_name' ``` Regression in commit b4903afd4debbbd71dc49a2c8fefa74a3b6c6832. While refactoring the code into a while loop, the previous early return when no frame exists went missing. We have just printed a message that we cannot get information about this, so the frame will be None, and we cannot attempt to use it. Discovered on python 3.11, in python 3.12a2 this should error out with `.is_shim()` instead of `co_name`. (cherry picked from commit 85869498331f7020e18bb243c89cd694f674b911)
* [3.11] GH-100342: check for allocation failure in AC `*args` parsing ↵Kumar Aditya2022-12-281-0/+4
| | | | | | | (GH-100343). (#100568) (cherry picked from commit 7cf164ad5e3c8c6af5ae8813ad6a784448605418) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* [3.11] gh-64490: Fix bugs in argument clinic varargs processing (GH-32092) ↵colorfulappl2022-12-281-5/+6
| | | | | (#100368) (cherry picked from commit 0da728387c99fe6c127b070f2d250dc5bdd62ee5)
* [3.11] gh-100454: Start running SSL tests with OpenSSL 3.1.0-beta1 (#100486)Gregory P. Smith2022-12-241-4/+4
| | | | | | [3.11] gh-100454: Start running SSL tests with OpenSSL 3.1.0-beta1 (GH-100456). (cherry picked from commit a23cb72ac82372fac05ba36ce08923840ca0de06) Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
* [3.11] gh-99240: Fix double-free bug in Argument Clinic str_converter ↵colorfulappl2022-12-201-2/+23
| | | | | | | generated code (GH-99241) (#100352) (cherry picked from commit 8dbe08eb7c807f484fe9870f5b7f5ae2881fd966) Fix double-free bug mentioned at GH-99240, by moving memory clean up out of "exit" label.
* [3.11] gh-64490: Fix refcount error when arguments are packed to tuple in ↵colorfulappl2022-12-191-1/+1
| | | | | argument clinic (GH-99233) (#100338) (cherry picked from commit 69f6cc77d0f1664f983a83b6ae707d99a99f5c4f)
* [3.11] gh-96002: Add functional test for Argument Clinic (GH-96178) (#100230)colorfulappl2022-12-171-0/+1
| | | | | | (cherry picked from commit c450c8c9ed6e420025f39d0e4850a79f8160cdcd) Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* [3.11] gh-99016: Make build scripts compatible with Python 3.8 (GH-99017). ↵Serhiy Storchaka2022-11-221-1/+1
| | | | | | (GH-99693) (cherry picked from commit f520d720f667c87f7b70ed86ea58d73892d6b969)
* [3.11] gh-95731: Fix module docstring extraction in pygettext (GH-95732) ↵Miss Islington (bot)2022-10-161-3/+4
| | | | | | | | (#98281) gh-95731: Fix module docstring extraction in pygettext (GH-95732) (cherry picked from commit 120b4ab2b68aebf96ce0de243eab89a25fc2d282) Co-authored-by: Jakub Kuczys <me@jacken.men>
* [3.11] gh-97728: Argument Clinic: Fix uninitialized variable in the ↵Serhiy Storchaka2022-10-031-0/+1
| | | | | | | | Py_UNICODE converter (GH-97729) (GH-97757) It affects function os.system() on Windows and Windows-specific modules winreg, _winapi, _overlapped, and _msi. (cherry picked from commit 0ee9619a4cba58730c45e65d22288fadbf7680de)
* gh-90989: Clarify some installer text (GH-97668)Steve Dower2022-09-301-6/+6
|
* gh-97612: Fix shell injection in get-remote-certificate.py (GH-97613)Miss Islington (bot)2022-09-281-18/+7
| | | | | | | | | | | | | | Fix a shell code injection vulnerability in the get-remote-certificate.py example script. The script no longer uses a shell to run "openssl" commands. Issue reported and initial fix by Caleb Shortt. Remove the Windows code path to send "quit" on stdin to the "openssl s_client" command: use DEVNULL on all platforms instead. Co-authored-by: Caleb Shortt <caleb@rgauge.com> (cherry picked from commit 83a0f44ffd8b398673ae56c310cf5768d359c341) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.11] gh-96883: browser: include concurrent.futures (GH-96886) (GH-96888)Christian Heimes2022-09-171-17/+17
|
* gh-96729: Ensure installers built with Tools/msi/buildrelease.bat have ↵Miss Islington (bot)2022-09-141-1/+3
| | | | | | | matching UUIDs with official releases (GH-96755) (cherry picked from commit 662782e95f97d26bd57b3edc6aaf674e30899f44) Co-authored-by: adang1345 <adang1345@gmail.com>
* gh-84461: Omit resource mod and getresuid funcs on Emscripten (GH-96303)Miss Islington (bot)2022-09-131-0/+4
| | | | | (cherry picked from commit a36235d5c7863a85fa323b2048d3d254116a958e) Co-authored-by: Christian Heimes <christian@python.org>
* [3.11] gh-95853: Add script to automate WASM build (GH-95828, GH-95985, ↵Christian Heimes2022-09-134-21/+997
| | | | | | | | | | | | GH-96045, GH-96389, GH-96744) (GH-96749) Automate WASM build with a new Python script. The script provides several build profiles with configure flags for Emscripten flavors and WASI. The script can detect and use Emscripten SDK and WASI SDK from default locations or env vars. ``configure`` now detects Node arguments and creates HOSTRUNNER arguments for Node 16. It also sets correct arguments for ``wasm64-emscripten``.
* [3.11] gh-96320: WASI socket fixes (GH-96388) (GH-#96748)Miss Islington (bot)2022-09-131-1/+2
| | | | - ignore missing functions in ``socket.__repr__`` - bundle network files with assets
* gh-94682: Build and test with OpenSSL 1.1.1q (gh-94683)Miss Islington (bot)2022-08-291-2/+2
| | | | | (cherry picked from commit 873554ef84011773618911ffa698cea181cec9fd) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-46744: Support "-Win32" and make platform flags case insensitive in ↵Miss Islington (bot)2022-08-252-30/+32
| | | | | | | Windows build scripts. (GH-31803) (cherry picked from commit 1288097088dcf3bad3799bd5867e7675515a5b18) Co-authored-by: conioh <10606081+conioh@users.noreply.github.com>
* gh-91838: Resolve more HTTP links which redirect to HTTPS (GH-95650) (GH-95780)Miss Islington (bot)2022-08-101-1/+1
| | | | | (cherry picked from commit cc9160a29bc3356ced92348bcd8e6668c67167c9) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-95587: Fixes some upgrade detection issues in the Windows installer ↵Miss Islington (bot)2022-08-041-9/+29
| | | | | | | (GH-95631) (cherry picked from commit 5b6acbaa20aa8c80c0f10986bf6c755608664023) Co-authored-by: Steve Dower <steve.dower@python.org>
* gh-95445: Ensure Windows msi uninstalls document folder successfully (GH-95465)Miss Islington (bot)2022-08-011-0/+5
| | | | | (cherry picked from commit 7d8973870bb079bf71d094cd966d6b6336f1e25f) Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
* [3.11] gh-95174: Add pthread stubs for WASI (GH-95234) (#95503)Christian Heimes2022-08-013-28/+4
| | | | | | Co-authored-by: Brett Cannon <brett@python.org>. (cherry picked from commit 0fe645d6fd22a6f57e777a29e65cf9a4ff9785ae) Co-authored-by: Christian Heimes <christian@python.org>
* [3.11] gh-95174: WASI: skip missing sockets functions (GH-95179) (GH-95308)Christian Heimes2022-07-311-0/+4
| | | | Co-authored-by: Christian Heimes <christian@python.org> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* gh-95174: Move WASIX logic into wasi-env (GH-95320)Miss Islington (bot)2022-07-272-9/+22
| | | | | | | | | wasi-env now sets WASIX flags. This allows us to control all build parameter for wasm32-wasi buildbot from CPython repository. Also export and improve SYSROOT parameter. (cherry picked from commit 2833f3798dc3647e850b303a4d0fa00609a0ae9b) Co-authored-by: Christian Heimes <christian@python.org>
* [3.11] gh-95085: Promote Emscripten and WASI to PEP 11 tier 3 (GH-95086) ↵Miss Islington (bot)2022-07-271-1/+1
| | | | | (GH-95307) Co-authored-by: Christian Heimes <christian@python.org>
* gh-95205: Improve WASM README.md (GH-95267) (GH-95270)Miss Islington (bot)2022-07-262-12/+112
| | | | | | Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com> (cherry picked from commit e8f3e8f0ab8aa5d667229ce9694e6e1477e524fd) Co-authored-by: Christian Heimes <christian@python.org>
* gh-95205: Improve wasm README (GH-95206)Miss Islington (bot)2022-07-251-2/+6
| | | | | | Co-authored-by: Christian Heimes <christian@python.org> (cherry picked from commit 310f94871a923f6cf3dc9259e732ce2376578b26) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* [3.11] GH-95113: Don't use EXTENDED_ARG_QUICK in unquickened code (GH-95121) ↵Brandt Bucher2022-07-221-7/+0
| | | | | (GH-95143) (cherry picked from commit e402b26b7fb953a2f0c17a0044bb6d6cbd726e54)
* gh-93939: Use new MODULE_name_STATE in wasm_assets script (GH-95035)Miss Islington (bot)2022-07-201-7/+6
| | | | | (cherry picked from commit 0f34c7e2d3163525813dbd644f30db58e6d36af2) Co-authored-by: Christian Heimes <christian@python.org>
* gh-94773: deepfreeze: support frozensets with unsortable types (GH-94775)Miss Islington (bot)2022-07-121-1/+6
| | | | | (cherry picked from commit 0c66074e9f8c9728e1d920910d35da0c62f30403) Co-authored-by: Christian Heimes <christian@python.org>