summaryrefslogtreecommitdiffstats
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
* 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-162-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-161-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-031-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-221-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-211-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-041-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>
* Update URLs in comments and metadata to use HTTPS (GH-27458) (GH-27478)Miss Islington (bot)2021-07-308-9/+9
| | | | | (cherry picked from commit be42c06bb01206209430f3ac08b72643dc7cad1c) Co-authored-by: Noah Kantrowitz <noah@coderanger.net>
* bpo-44740: Lowercase "internet" and "web" where appropriate. (GH-27378) ↵Miss Islington (bot)2021-07-262-3/+3
| | | | | | | | (GH-27380) Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 11749e2dc20ad6a76e9a39e948853e89b2b4bbed) Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* [3.10] bpo-38820: Test with OpenSSL 3.0.0-beta1 (GH-26769) (GH-26799)Miss Islington (bot)2021-06-191-1/+1
| | | | | | | | | Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 44fb55149934d8fb095edb6fc3f8167208035b96) Co-authored-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran
* bpo-43795: Don't list private names in the limited API (GH-26740)Miss Islington (bot)2021-06-161-0/+12
| | | | | | | | | | | | | | | | * Remove struct _node from the stable ABI list This struct was removed along with the old parser in Python 3.9 (PEP 617) * Stable ABI list: Use the public name "PyFrameObject" rather than "_frame" * Ensure limited API doesn't contain private names Names prefixed by an underscore are private by definition. * Add a blurb (cherry picked from commit 7cad9cb51bdae2144cbab330f13a607ba3471742) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* bpo-44180: Fix edge cases in invalid assigment rules in the parser (GH-26283)Miss Islington (bot)2021-05-211-0/+2
| | | | | | | | | | | | | | | | | | The invalid assignment rules are very delicate since the parser can easily raise an invalid assignment when a keyword argument is provided. As they are very deep into the grammar tree, is very difficult to specify in which contexts these rules can be used and in which don't. For that, we need to use a different version of the rule that doesn't do error checking in those situations where we don't want the rule to raise (keyword arguments and generator expressions). We also need to check if we are in left-recursive rule, as those can try to eagerly advance the parser even if the parse will fail at the end of the expression. Failing to do this allows the parser to start parsing a call as a tuple and incorrectly identify a keyword argument as an invalid assignment, before it realizes that it was not a tuple after all. (cherry picked from commit c878a9796841c1f4726e6dd5ac49a478af4c8504) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-38820: Test with OpenSSL 3.0.0-alpha17 (GH-26266)Miss Islington (bot)2021-05-201-1/+1
| | | | | (cherry picked from commit 7109624d45bcf28fbb46a53354785dc5ff953a16) Co-authored-by: Christian Heimes <christian@python.org>
* [3.10] Remove a redundant assignment in Tools/unittestgui/unittestgui.py ↵Irit Katriel2021-05-161-1/+0
| | | | | | | | (GH-21438) (GH-26171) (cherry picked from commit a42d98ed91cd1f08b2e9734ca6ca136dd10dff5d) Co-authored-by: Serhii Hidenko <shidenko97@gmail.com>
* bpo-43795: PEP 652 user documentation (GH-25668) (GH-26034)Miss Islington (bot)2021-05-141-6/+27
| | | | | | | | | | | - Reformat the C API and ABI Versioning page (and extend/clarify a bit) - Rewrite the stable ABI docs into a general text on C API Compatibility - Add a list of Limited API contents, and notes for the individual items. - Replace `Include/README.rst` with a link to a devguide page with the same info (cherry picked from commit b05955d6f5f149523b5855a335444b7c6324bdb7) Co-authored-by: Petr Viktorin <encukou@gmail.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
* bpo-44125: Fix "make patchcheck" on non-English locale (GH-26102)Miss Islington (bot)2021-05-131-1/+4
| | | | | | | | The patch from [bpo-44074]() does not account for a possibly non-English locale and blindly greps for "HEAD branch" in a possibly localized text. Automerge-Triggered-By: GH:pitrou (cherry picked from commit 1aa3530314d339725519f4ad95b7dea4b00b657e) Co-authored-by: Antoine Pitrou <antoine@python.org>
* bpo-44074: let patchcheck infer the base branch name (GH-25991)Miss Islington (bot)2021-05-101-4/+26
| | | | | (cherry picked from commit 21fbbb98bac8bfe56f8b931258c36750e84f9285) Co-authored-by: Leonardo Lai <leonardo.lai@live.com>
* bpo-38820: Test with OpenSSL 3.0.0-alpha16 (GH-25942)Miss Islington (bot)2021-05-061-44/+11
| | | | | | Also use new make target to install FIPS provider. (cherry picked from commit e8525567dd325527e00b3c4ce7c4ce31ff3f1a8c) Co-authored-by: Christian Heimes <christian@python.org>
* bpo-43795: Generate python3dll.c and doc data from manifest (PEP 652) (GH-25315)Petr Viktorin2021-04-292-111/+485
|
* bpo-38820: Old OpenSSL 3.0.0 releases are in /old/3.0/ (GH-25624)Christian Heimes2021-04-261-5/+9
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-38820: Test with OpenSSL 3.0.0-alpha15 (GH-25537)Christian Heimes2021-04-231-1/+1
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-38605: Revert making 'from __future__ import annotations' the default ↵Pablo Galindo2021-04-212-2/+2
| | | | | | (GH-25490) This reverts commits 044a1048ca93d466965afc027b91a5a9eb9ce23c and 1be456ae9d53bb1cba2b24fc86175c282d1c2169, adapting the code to changes that happened after it.
* bpo-43669: PEP 644: Require OpenSSL 1.1.1 or newer (GH-23014)Christian Heimes2021-04-171-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | - Remove HAVE_X509_VERIFY_PARAM_SET1_HOST check - Update hashopenssl to require OpenSSL 1.1.1 - multissltests only OpenSSL > 1.1.0 - ALPN is always supported - SNI is always supported - Remove deprecated NPN code. Python wrappers are no-op. - ECDH is always supported - Remove OPENSSL_VERSION_1_1 macro - Remove locking callbacks - Drop PY_OPENSSL_1_1_API macro - Drop HAVE_SSL_CTX_CLEAR_OPTIONS macro - SSL_CTRL_GET_MAX_PROTO_VERSION is always defined now - security level is always available now - get_num_tickets is available with TLS 1.3 - X509_V_ERR MISMATCH is always available now - Always set SSL_MODE_RELEASE_BUFFERS - X509_V_FLAG_TRUSTED_FIRST is always available - get_ciphers is always supported - SSL_CTX_set_keylog_callback is always available - Update Modules/Setup with static link example - Mention PEP in whatsnew - Drop 1.0.2 and 1.1.0 from GHA tests
* bpo-43822: Improve syntax errors for missing commas (GH-25377)Pablo Galindo2021-04-151-0/+12
|
* bpo-43723: Fix deprecation error caused by thread.setDaemon() (GH-25361)Christian Heimes2021-04-121-3/+3
|
* bpo-43788: Generate version specific _ssl_data.h (GH-25300)Christian Heimes2021-04-092-81/+115
| | | | | Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran
* Sanitize macros and debug functions in pegen.c (GH-25291)Pablo Galindo2021-04-091-0/+8
|
* Improve CDN purge script (GH-25251)Steve Dower2021-04-071-0/+3
|
* bpo-43651: PEP 597: Fix pdeps used locale encoding (GH-25204)Inada Naoki2021-04-061-1/+1
|