summaryrefslogtreecommitdiffstats
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
* [3.11] gh-115015: Argument Clinic: fix generated code for METH_METHOD ↵Erlend E. Aasland2024-02-062-1/+3
| | | | | methods without params (#115016) (#115069) (cherry picked from commit 09096a1647913526a3d4fa69a9d2056ec82a8f37)
* [3.11] gh-109991: Update GitHub CI workflows to use OpenSSL 3.0.13. (GH-115057)Ned Deily2024-02-061-2/+3
| | | Also update multissltests to use 1.1.1w, 3.0.13, 3.1.5, and 3.2.1.
* [3.11] gh-65701: document that freeze doesn't work with framework builds on ↵Miss Islington (bot)2023-12-222-0/+10
| | | | | | | | | | | | | | | | macOS (GH-113352) (#113361) gh-65701: document that freeze doesn't work with framework builds on macOS (GH-113352) * gh-65701: document that freeze doesn't work with framework builds on macOS The framework install is inherently incompatible with freeze. Document that that freeze doesn't work with framework builds and bail out early when trying to run freeze anyway. (cherry picked from commit df1eec3dae3b1eddff819fd70f58b03b3fbd0eda) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* [3.11] gh-109408: Add the docs whitespace check from patchcheck to ↵Miss Islington (bot)2023-10-101-32/+12
| | | | | | | | | | pre-commit (GH-109854) (#110595) gh-109408: Add the docs whitespace check from patchcheck to pre-commit (GH-109854) (cherry picked from commit 7426ed0347d66f7ef61ea7ae6c3163258b8fb128) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* [3.11] gh-103053: Fix test_tools.test_freeze on FreeBSD (GH-110451) (#110457)Miss Islington (bot)2023-10-061-14/+19
| | | | | | | | | | | | | | | | gh-103053: Fix test_tools.test_freeze on FreeBSD (GH-110451) Fix test_tools.test_freeze on FreeBSD: run "make distclean" instead of "make clean" in the copied source directory to remove also the "python" program. Other test_freeze changes: * Log executed commands and directories, and the current directory. * No longer uses make -C option to change the directory, instead use subprocess cwd parameter. (cherry picked from commit a4baa9e8ac62cac3ea6363b15ea585b1998ea1f9) Co-authored-by: Victor Stinner <vstinner@python.org>
* [3.11] gh-109991: Update GitHub CI workflows to use OpenSSL 3.0.11 and ↵Ned Deily2023-09-281-3/+3
| | | | | multissltests to use 1.1.1w, 3.0.11, and 3.1.3. (#110006) (cherry picked from commit c88037d137a98d7c399c7bd74d5117b5bcae1543)
* [3.11] gh-109615: Fix support test_copy_python_src_ignore() (#109958) (#109962)Victor Stinner2023-09-272-2/+16
| | | | | | | | | | | | | | gh-109615: Fix support test_copy_python_src_ignore() (#109958) Fix the test when run on an installed Python: use "abs_srcdir" of sysconfig, and skip the test if the Python source code cannot be found. * Tools/patchcheck/patchcheck.py, Tools/freeze/test/freeze.py and Lib/test/libregrtest/utils.py now first try to get "abs_srcdir" from sysconfig, before getting "srcdir" from sysconfig. * test.pythoninfo logs sysconfig "abs_srcdir". (cherry picked from commit b89ed9df39851348fbb1552294644f99f6b17d2c)
* [3.11] gh-109615: Fix test_tools.test_freeze SRCDIR (#109935) (#109951)Victor Stinner2023-09-271-47/+7
| | | | | | | | | | | | | gh-109615: Fix test_tools.test_freeze SRCDIR (#109935) Fix copy_source_tree() function of test_tools.test_freeze: * Don't copy SRC_DIR/build/ anymore. This directory is modified by other tests running in parallel. * Add test.support.copy_python_src_ignore(). * Use sysconfig to get the source directory. * Use sysconfig.get_config_var() to get CONFIG_ARGS variable. (cherry picked from commit 1512d6c6ee2a770afb339bbb74c1b990116f7f89)
* [3.11] gh-109098: Fuzz re module instead of internal sre (GH-109911) (GH-109933)Miss Islington (bot)2023-09-271-3/+3
| | | | | | | * Fix c-analyzer globals test failure * Put globals exception in ignored.tsv (cherry picked from commit a829356f86d597e4dfe92e236a6d711c8a464f16) Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
* [3.11] gh-108740: Fix "make regen-all" race condition (#108741) (#109021)Victor Stinner2023-09-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | gh-108740: Fix "make regen-all" race condition (#108741) Fix a race condition in "make regen-all". The deepfreeze.c source and files generated by Argument Clinic are now generated or updated before generating "global objects". Previously, some identifiers may miss depending on the order in which these files were generated. * "make regen-global-objects": Make sure that deepfreeze.c is generated and up to date, and always run "make clinic". * "make regen-deepfreeze" now only updates deepfreeze.c (C file). It doesn't build deepfreeze.o (object) anymore. * Remove misleading messages in "make regen-global-objects" and "make clinic". They are now outdated, these commands are now safe to use. Backport notes: * Omit Doc/using/configure.rst changes. * no need to change "make clinic", it didn't run generate_global_objects.py script before. Co-authored-by: Erlend E. Aasland <erlend@python.org> (cherry picked from commit db1ee6a19ab62191c16ecb732cb4dcaede98a902)
* [3.11] gh-109002: Ensure only one wheel for each vendored package ↵Miss Islington (bot)2023-09-061-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-109003) (#109006) Output with one wheel: ``` ❯ GITHUB_ACTIONS=true ./Tools/build/verify_ensurepip_wheels.py Verifying checksum for /Volumes/RAMDisk/cpython/Lib/ensurepip/_bundled/pip-23.2.1-py3-none-any.whl. Expected digest: 7ccf472345f20d35bdc9d1841ff5f313260c2c33fe417f48c30ac46cccabf5be Actual digest: 7ccf472345f20d35bdc9d1841ff5f313260c2c33fe417f48c30ac46cccabf5be ::notice file=/Volumes/RAMDisk/cpython/Lib/ensurepip/_bundled/pip-23.2.1-py3-none-any.whl::Successfully verified the checksum of the pip wheel. ``` Output with two wheels: ``` ❯ GITHUB_ACTIONS=true ./Tools/build/verify_ensurepip_wheels.py ::error file=/Volumes/RAMDisk/cpython/Lib/ensurepip/_bundled/pip-22.0.4-py3-none-any.whl::Found more than one wheel for package pip. ::error file=/Volumes/RAMDisk/cpython/Lib/ensurepip/_bundled/pip-23.2.1-py3-none-any.whl::Found more than one wheel for package pip. ``` Output without wheels: ``` ❯ GITHUB_ACTIONS=true ./Tools/build/verify_ensurepip_wheels.py ::error file=::Could not find a pip wheel on disk. ``` (cherry picked from commit f8a047941f2e4a1848700c21d58a08c9ec6a9c68) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [3.11] Trim trailing whitespace and test on CI (GH-104275) (#108215)Hugo van Kemenade2023-08-222-2/+2
|
* [3.11] gh-102507 Remove invisible pagebreak characters (GH-102531) (#108266)Miss Islington (bot)2023-08-221-7/+4
| | | | | | | gh-102507 Remove invisible pagebreak characters (GH-102531) (cherry picked from commit b097925858c6975c73e989226cf278cc382c0416) Co-authored-by: JosephSBoyle <48555120+JosephSBoyle@users.noreply.github.com> Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
* [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>