summaryrefslogtreecommitdiff
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
* [3.10] gh-103142: Upgrade binary builds and CI to OpenSSL 1.1.1u (GH-105174) ↵Gregory P. Smith2023-06-051-2/+3
| | | | | | | | | | | | | | | | | | | | (GH-105200) (#105204) 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). (cherry picked from commit a5d2b546c1b0b73d0695b98838a3ddd497382999) (cherry picked from commit f90d3f68db720bd6d0deda8cc0030339ccd43858) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* [3.10] Improves the Windows MSI test run on PR (GH-104929)Steve Dower2023-05-251-24/+16
| | | | Correctly set the exit code when builds fail Also build docs as part of the test
* gh-103262: Fixes Windows installer build to work with latest compilers ↵Steve Dower2023-04-051-2/+2
| | | | (GH-103281)
* [3.10] gh-102416: Do not memoize incorrectly loop rules in the parser ↵Pablo Galindo Salgado2023-03-061-2/+3
| | | | (GH-102467). (#102474)
* 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.10] Fix MSI build PlatformToolset detection (#101651)Steve Dower2023-02-081-4/+3
| | | Fix MSI build PlatformToolset detection
* [3.10] gh-101046: Fix a potential memory leak in the parser when raising ↵Pablo Galindo Salgado2023-01-161-1/+1
| | | | | MemoryError (GH-101051). (#101086) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.10] gh-99240: Fix double-free bug in Argument Clinic str_converter ↵colorfulappl2022-12-201-2/+23
| | | | | | | generated code (GH-99241) (#100353) (cherry picked from commit 8dbe08eb7c807f484fe9870f5b7f5ae2881fd966) Fix double-free bug mentioned at GH-99240, by moving memory clean up out of "exit" label.
* [3.10] gh-96002: Add functional test for Argument Clinic (GH-96178) (#100232)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>
* gh-95731: Fix module docstring extraction in pygettext (GH-95732)Miss Islington (bot)2022-10-151-3/+4
| | | | | (cherry picked from commit 120b4ab2b68aebf96ce0de243eab89a25fc2d282) Co-authored-by: Jakub Kuczys <me@jacken.men>
* [3.10] gh-97728: Argument Clinic: Fix uninitialized variable in the ↵Serhiy Storchaka2022-10-031-0/+1
| | | | | | | | Py_UNICODE converter (GH-97729) (GH-97760) 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-97676)Steve Dower2022-09-301-5/+5
|
* 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>
* gh-96729: Ensure installers built with Tools/msi/buildrelease.bat have ↵Miss Islington (bot)2022-09-121-1/+3
| | | | | | | matching UUIDs with official releases (GH-96755) (cherry picked from commit 662782e95f97d26bd57b3edc6aaf674e30899f44) Co-authored-by: adang1345 <adang1345@gmail.com>
* [3.10] gh-94682: Build and test with OpenSSL 1.1.1q (gh-94683) (gh-96391)Christian Heimes2022-08-291-2/+2
| | | Co-authored-by: Christian Heimes <christian@python.org>
* bpo-46744: Support "-Win32" and make platform flags case insensitive in ↵Steve Dower2022-08-252-28/+30
| | | | | Windows build scripts. (GH-31803) Co-authored-by: conioh <10606081+conioh@users.noreply.github.com>
* [3.10] gh-91838: Resolve more HTTP links which redirect to HTTPS (GH-95650). ↵Serhiy Storchaka2022-08-081-1/+1
| | | | | | | (GH-95786) (cherry picked from commit cc9160a29bc3356ced92348bcd8e6668c67167c9) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-91271: Document which parts of structs are in limited API/stable ABI ↵Petr Viktorin2022-08-051-2/+21
| | | | | (GH-32196) (GH-95711) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
* [3.10] gh-94430: Allow params named `module` or `self` with custom C names ↵Erlend Egeberg Aasland2022-07-071-2/+7
| | | | | | | in AC (GH-94431) (#94650) (cherry picked from commit 8bbd70b4d130f060f87e3f53810dc747a49fa369) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* gh-94538: Fix Argument Clinic output to custom file (GH-94539) (GH-94556)Miss Islington (bot)2022-07-051-1/+1
| | | | | (cherry picked from commit 2b8ed4d3d4741811da31fc774a202d535755c0a9) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* bpo-45816: Support building with VS 2022 (v143 toolset) on Windows (GH-29577)Miss Islington (bot)2022-06-231-1/+1
| | | | | (cherry picked from commit d9301703fb1086cafbd730c17e3d450a192485d6) Co-authored-by: Crowthebird <78076854+thatbirdguythatuknownot@users.noreply.github.com>
* gh-91172: Create a workflow for verifying bundled pip and setuptools ↵Miss Islington (bot)2022-06-221-0/+98
| | | | | | | | | (GH-31885) (GH-94122) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> (cherry picked from commit d36954b7ead06daead3dcf9b0dd9f8002eab508f) Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
* gh-92256: Improve Argument Clinic parser error messages (GH-92268)Miss Islington (bot)2022-05-101-3/+9
| | | | | | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org> (cherry picked from commit 4bd07d1dbd493fc9b2c2a77e9e905c517682052e) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
* [3.10] gh-91583: AC: Fix regression for functions with defining_class ↵Serhiy Storchaka2022-05-031-17/+36
| | | | | | | | (GH-91739) (GH-92079) Argument Clinic now generates the same efficient code as before adding the defining_class parameter. (cherry picked from commit a055dac0b45031878a8196a8735522de018491e3)
* gh-91595: fix the comparison of character and integer by using ord() (GH-91596)Miss Islington (bot)2022-04-161-1/+1
| | | | | | | | | | * fix the comparison of character and integer by using ord() * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit 9300b6d72948b94c0924a75ea14c6298156522d0) Co-authored-by: Yu Liu <yuki.liu@utexas.edu>
* [3.10] bpo-47032: Ensure Windows install builds fail correctly with a ↵Steve Dower2022-03-152-24/+26
| | | | | non-zero exit code when part of the build fails (GH-31921) (GH-31926) Automerge-Triggered-By: GH:zooba
* bpo-46948: Fix launcher installer build failure due to first part of fix ↵Miss Islington (bot)2022-03-151-0/+2
| | | | | | | (GH-31920) (cherry picked from commit 708812085355c92f32e547d1f1d1f29aefbbc27e) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.10] bpo-47024: Update OpenSSL to 1.1.1n (GH-31895) (GH-31916)Christian Heimes2022-03-151-2/+2
| | | | Co-authored-by: Zachary Ware <zachary.ware@gmail.com>. Co-authored-by: Christian Heimes <christian@python.org>
* bpo-46948: Fix CVE-2022-26488 by ensuring the Windows Installer correctly ↵Steve Dower2022-03-0710-4/+24
| | | | uses the install path during repair (GH-31727)
* [3.10] Update grammar_grapher with the new forced (&&) directive (GH-31704) ↵Luca Chiodini2022-03-071-0/+3
| | | | | | | (GH-31719) (cherry picked from commit 7f07b5ee9c2d17f837c44440bf066c73f92dac14) Co-authored-by: Luca Chiodini <luca@chiodini.org>
* [3.10] Allow the parser to avoid nested processing of invalid rules ↵Pablo Galindo Salgado2022-02-101-2/+15
| | | | | | | (GH-31252). (GH-31257) (cherry picked from commit 390459de6db1e68b79c0897cc88c0d562693ec5c) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* Optimize images by IMGbot (GH-21348)Miss Islington (bot)2022-02-041-0/+0
| | | | Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com> (cherry picked from commit ba650af7d660084e08859dd1ee1917cccee24e88)
* [3.10] bpo-46576: bpo-46524: Disable compiler optimization within ↵Gregory P. Smith2022-02-021-0/+10
| | | | | | | | | | | | | | | | | | | | | | | test_peg_generator. (GH-31015) (GH-31089) Disable compiler optimization within test_peg_generator. This speed up test_peg_generator by always disabling compiler optimizations by using -O0 or equivalent when the test is building its own C extensions. A build not using --with-pydebug in order to speed up test execution winds up with this test taking a very long time as it would do repeated compilation of parser C code using the same optimization flags as CPython was built with. This speeds the test up 6-8x on gps-raspbian. Also incorporate's GH-31017's win32 conditional and flags. Co-authored-by: Kumar Aditya kumaraditya303. (cherry picked from commit 164a017e13ee96bd1ea1ae79f5ac9e25fe83994e) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* bpo-29844: Remove obsolete paragraph from Tools/msi/README.txt (GH-29141)Miss Islington (bot)2022-01-271-8/+3
| | | (cherry picked from commit 098a33f6a60ca2df88e03024ac9d8da507cfa5c8)
* bpo-46106: Update OpenSSL to 1.1.1m (GH-30211) (GH-30224)Ned Deily2021-12-211-1/+1
| | | | Co-authored-by: Ned Deily <nad@python.org> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* [3.10] bpo-46110: Add a recursion check to avoid stack overflow in the PEG ↵Pablo Galindo Salgado2021-12-201-4/+11
| | | | | | | | parser (GH-30177) (GH-30214) Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>. (cherry picked from commit e9898bf153d26059261ffef11f7643ae991e2a4c) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* bpo-46114: Fix OpenSSL version check for 3.0.1 (GH-30170)Miss Islington (bot)2021-12-171-1/+1
| | | | | (cherry picked from commit 2985feac4e02d590bb78bcce9e30864be53280ac) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-45866: pegen strips directory of "generated from" header (GH-29777) ↵Victor Stinner2021-11-263-3/+7
| | | | | | | | | (GH-29792) "make regen-all" now produces the same output when run from a directory other than the source tree: when building Python out of the source tree. (cherry picked from commit 253b7a0a9fef1d72a4cb87b837885576e68e917c)
* bpo-45561: Run smelly.py tool from $(srcdir) (GH-29138)Miss Islington (bot)2021-11-231-3/+6
| | | | | (cherry picked from commit 457e6a6e96b5afad403a0bc892508a77beef4d33) Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
* Fix out-of-tree build support for multissltest (GH-29694)Miss Islington (bot)2021-11-221-4/+10
| | | | | (cherry picked from commit 512dbf6f56364d359e16988b3fd7e766edfaebf9) Co-authored-by: Christian Heimes <christian@python.org>
* [3.10] bpo-45688: Add _scproxy to sys.stdlib_module_names (GH-29358) (GH-29361)Miss Islington (bot)2021-11-021-1/+5
| | | Co-authored-by: Christian Heimes <christian@python.org>
* [3.10] bpo-45494: Fix parser crash when reporting errors involving invalid ↵Łukasz Langa2021-10-191-1/+1
| | | | | | | | | | | | | | | continuation characters (GH-28993) (GH-29070) There are two errors that this commit fixes: * The parser was not correctly computing the offset and the string source for E_LINECONT errors due to the incorrect usage of strtok(). * The parser was not correctly unwinding the call stack when a tokenizer exception happened in rules involving optionals ('?', [...]) as we always make them return valid results by using the comma operator. We need to check first if we don't have an error before continuing.. (cherry picked from commit a106343f632a99c8ebb0136fa140cf189b4a6a57) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.10] Fix typos in the Tools directory (GH-28769) (GH-28801)Christian Clauss2021-10-0715-24/+24
| | | | | | | | Like GH-28744 but for the Tools directory. Automerge-Triggered-By: GH:pablogsal (cherry picked from commit 682aecfdeba481c876bfc9f3796c635bd5b5df50) Co-authored-by: Christian Clauss <cclauss@me.com>
* [3.10] Remove trailing spaces (GH-28709)Serhiy Storchaka2021-10-032-2/+2
|
* [3.10] [codemod] Fix non-matching bracket pairs (GH-28473) (GH-28511)Łukasz Langa2021-09-221-1/+1
| | | | | | | | Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 8f943ca25732d548cf9f0b0393ba8d582fb93e29) Co-authored-by: Mohamad Mansour <66031317+mohamadmansourX@users.noreply.github.com>
* bpo-44786: Fix a warning in RE in c-analyzer (GH-28351) (GH-28353)Miss Islington (bot)2021-09-151-2/+2
| | | | | | (cherry picked from commit 1a9ef5798525bbb39a16c8af5c435b97352ee027) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.10] Fix typos in pep384_macrocheck.py (GH-28220) (GH-28272)Miss Islington (bot)2021-09-101-2/+2
| | | | | | | | | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> (cherry picked from commit 4338aeeb9e07607f17bbada8ebfd97e7cc7a203c) Co-authored-by: Ikko Ashimine <eltociear@gmail.com> Automerge-Triggered-By: GH:Fidget-Spinner
* bpo-38820: Test with OpenSSL 3.0.0 final (GH-28205)Miss Islington (bot)2021-09-081-1/+5
| | | | | | Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit cc7c6801945c6a7373553b78bd899ce09681ec0a) Co-authored-by: Christian Heimes <christian@python.org>
* [3.10] bpo-45060: Get rid of few uses of the equality operators with None ↵Serhiy Storchaka2021-09-031-2/+2
| | | | | | | (GH-28087). (GH-28092) (cherry picked from commit 3c65457156d87e55010507d616b4eecb7a02883d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-45007: Update multissl to openssl 1.1.1l as well (GH-28044)Miss Islington (bot)2021-08-301-1/+1
| | | | | | This was missed while upgrading CI. (cherry picked from commit d6cb5dd9e19210f5963ff8beadde7ca2fda71574) Co-authored-by: Łukasz Langa <lukasz@langa.pl>