summaryrefslogtreecommitdiffstats
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-112844: Update CPE references for external dependencies ↵Miss Islington (bot)2024-05-201-1/+15
| | | | | | (GH-118521) (#119238) Co-authored-by: Seth Michael Larson <seth@python.org>
* [3.12] gh-118671: Updated dead ActiveState links (GH-118730) (#118754)Miss Islington (bot)2024-05-081-2/+2
| | | | | | Co-authored-by: trag1c <trag1cdev@yahoo.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* gh-116122: Add SBOM generation to PCbuild/build.bat (GH-116138)Seth Michael Larson2024-05-011-3/+18
| | | | | (cherry picked from commit 72dae53e09a5344bf4922d934a34a2fa48a11c86) Co-authored-by: Seth Michael Larson <seth@python.org>
* gh-118347: Fix Windows installer not updating launcher (GH-118386)Miss Islington (bot)2024-04-292-6/+6
| | | | | (cherry picked from commit 96d8ca7ad6c4f23f023dd6ed0abd042b29dff4a2) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.12] gh-117613: Argument Clinic: ensure that defining class params are ↵neonene2024-04-171-1/+7
| | | | positional-only (#117939)
* [3.12] gh-99108: Update and check HACL* version information (GH-117295) ↵Miss Islington (bot)2024-03-271-0/+14
| | | | | | | | | (GH-117302) gh-99108: Update and check HACL* version information (GH-117295) (cherry picked from commit 669ef49c7d42f35da6f7ee280102353b9b37f83e) Co-authored-by: Seth Michael Larson <seth@python.org>
* [3.12] gh-112536: Add --tsan test for reasonable TSAN execution times. ↵Antoine Pitrou2024-03-181-0/+3
| | | | | | | | (gh-116601) (#116929) (cherry picked from commit ebf29b3) Co-authored-by: Donghee Na <donghee.na@python.org>
* [3.12] gh-116576: Fix `Tools/scripts/sortperf.py` sorting the same list ↵Miss Islington (bot)2024-03-111-1/+2
| | | | | | | | (GH-116577) (#116582) gh-116576: Fix `Tools/scripts/sortperf.py` sorting the same list (GH-116577) (cherry picked from commit 4704e55a71c859c5d17cc2747ba62f49da58ea2d) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] GH-116313: get WASI builds to run under wasmtime 18 w/ WASI ↵Brett Cannon2024-03-051-2/+4
| | | | 0.2/preview2 primitives (GH-116327) (GH-116373)
* [3.12] chore: fix typos (#116345) (#116370)Terry Jan Reedy2024-03-051-1/+1
| | | | Co-authored-by: cui fliter <imcusg@gmail.com> (cherry picked from commit e7ba6e9dbe5433b4a0bcb0658da6a68197c28630)
* gh-115554: Improved logic for handling multiple existing py.exe launcher ↵Miss Islington (bot)2024-03-053-74/+134
| | | | | | | installs (GH-115793) (cherry picked from commit 9b7f253b55f10df03d43c8a7c2da40ea523ac7a1) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.12] gh-116265: Remove obsolete sentence. (GH-116284) (#116331)Miss Islington (bot)2024-03-041-4/+2
| | | | | | | Remove sentence in Tools/c-analyzer/README referring to deleted ignore-globals.txt. (cherry picked from commit 88b5c665ee1624af1bc5097d3eb2af090b9cabed) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* [3.12] GH-115978: Disable `*readv()` and `*writev()` on WASI (GH-116228) ↵Miss Islington (bot)2024-03-021-0/+9
| | | | | | | | | | (GH-116231) GH-115978: Disable `*readv()` and `*writev()` on WASI (GH-116228) Wasmtime doesn't implement these functions in a way to pass test_posix (https://github.com/bytecodealliance/wasmtime/issues/7830). (cherry picked from commit 5dc8c84d397110f9edfa56793ad8887b1f176d79) Co-authored-by: Brett Cannon <brett@python.org>
* [3.12] gh-112844: Add SBOM for external dependencies (GH-115789) (#116128)Miss Islington (bot)2024-02-291-17/+91
| | | | Co-authored-by: Seth Michael Larson <seth@python.org>
* [3.12] gh-108303: Move `Lib/test/sortperf.py` to `Tools/scripts` (GH-114687) ↵Miss Islington (bot)2024-02-181-0/+196
| | | | | | | | (#115625) gh-108303: Move `Lib/test/sortperf.py` to `Tools/scripts` (GH-114687) (cherry picked from commit f9154f8f237e31e7c30f8698f980bee5e494f1e0) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] GH-113516: don't set `LDSHARED` when building for WASI (GH-115495) ↵Brett Cannon2024-02-151-1/+0
| | | | (GH-115496)
* [3.12] gh-115399: Upgrade bundled libexpat to 2.6.0 (GH-115431) (#115469)Miss Islington (bot)2024-02-142-1/+5
| | | | | | gh-115399: Upgrade bundled libexpat to 2.6.0 (GH-115431) (cherry picked from commit 4b2d1786ccf913bc80ff571c32b196be1543ca54) Co-authored-by: Seth Michael Larson <seth@python.org>
* [3.12] gh-112302: Move pip SBOM discovery to release-tools (GH-115360) (#115486)Miss Islington (bot)2024-02-141-251/+0
| | | | Co-authored-by: Seth Michael Larson <seth@python.org>
* [3.12] gh-114563: C decimal falls back to pydecimal for unsupported format ↵John Belmonte2024-02-121-0/+1
| | | | | | | | | | | | | | | | | | | | | strings (GH-114879) (GH-115353) Immediate merits: * eliminate complex workarounds for 'z' format support (NOTE: mpdecimal recently added 'z' support, so this becomes efficient in the long term.) * fix 'z' format memory leak * fix 'z' format applied to 'F' * fix missing '#' format support Suggested and prototyped by Stefan Krah. Fixes gh-114563, gh-91060 (cherry picked from commit 72340d15cdfdfa4796fdd7c702094c852c2b32d2) Co-authored-by: John Belmonte <john@neggie.net> Co-authored-by: Stefan Krah <skrah@bytereef.org>
* [3.12] gh-112302: Change 'licenseConcluded' field to 'NOASSERTION' ↵Miss Islington (bot)2024-02-061-5/+7
| | | | | | | | | | | | | | (GH-115038) (#115088) * gh-112302: Change 'licenseConcluded' field to 'NOASSERTION' (GH-115038) (cherry picked from commit 4bf41879d03b1da3c6d38c39a04331e3ae2e7545) Co-authored-by: Seth Michael Larson <seth@python.org> * Update pip SBOM package to version in source --------- Co-authored-by: Seth Michael Larson <seth@python.org>
* [3.12] gh-112302: Backport SBOM generation tooling (#114730)Seth Michael Larson2024-02-061-0/+474
| | | [3.12] Backport SBOM generation tooling
* [3.12] gh-115015: Argument Clinic: fix generated code for METH_METHOD ↵Erlend E. Aasland2024-02-062-1/+2
| | | | | methods without params (#115016) (#115067) (cherry picked from commit 09096a1647913526a3d4fa69a9d2056ec82a8f37)
* [3.12] gh-109991: Update GitHub CI workflows to use OpenSSL 3.0.13. (GH-115055)Miss Islington (bot)2024-02-061-2/+3
| | | | | | Also update multissltests to use 1.1.1w, 3.0.13, 3.1.5, and 3.2.1. (cherry picked from commit 299e16ca0f303a1e00bd0e04679862a5d4db5ab2) Co-authored-by: Ned Deily <nad@python.org>
* [3.12] Bump ruff to 0.2.0 (GH-114932) (#114935)Miss Islington (bot)2024-02-021-0/+2
| | | | | | Bump ruff to 0.2.0 (GH-114932) (cherry picked from commit 920b89f62751e64a35fa1bebc03701af6d6f31f2) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-65701: document that freeze doesn't work with framework builds on ↵Miss Islington (bot)2023-12-222-0/+10
| | | | | | | | | | | | | | | | macOS (GH-113352) (#113362) 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.12] gh-106560: Fix redundant declarations in Python/frozen.c (#112612) ↵Victor Stinner2023-12-031-1/+12
| | | | | | | | | | | | (#112651) gh-106560: Fix redundant declarations in Python/frozen.c (#112612) Avoid duplicated declarations of "extern" functions in Python/frozen.c. Compiler warnings seen by building Python with gcc -Wredundant-decls. (cherry picked from commit d9e444dbb86e173ee5b8491e3facbd447b91eaed)
* [3.12] Bump mypy to 1.7.1 (#112581) (#112601)Alex Waygood2023-12-011-1/+1
|
* [3.12] gh-106931: Intern Statically Allocated Strings Globally (gh-107272) ↵Eric Snow2023-11-271-0/+2
| | | | | | | | | (gh-110713) We tried this before with a dict and for all interned strings. That ran into problems due to interpreter isolation. However, exclusively using a per-interpreter cache caused some inconsistency that can eliminate the benefit of interning. Here we circle back to using a global cache, but only for statically allocated strings. We also use a more-basic _Py_hashtable_t for that global cache instead of a dict. Ideally we would only have the global cache, but the optional isolation of each interpreter's allocator means that a non-static string object must not outlive its interpreter. Thus we would have to store a copy of each such interned string in the global cache, tied to the main interpreter. (cherry-picked from commit b72947a8d26915156323ccfd04d273199ecb870c)
* [3.12] Remove `imp_dummy_def` from `Tools/c-analyzer/cpython/ignored.tsv` ↵Miss Islington (bot)2023-11-161-1/+0
| | | | | | | | (gh-112122) (gh-112177) It was removed in 3.12, no need to keep the ignore. (cherry picked from commit 762eb58220992d1ab809b9a281d47c0cd48a5aec) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-112088: Run autoreconf in GHA check_generated_files (GH-112090) ↵Victor Stinner2023-11-161-0/+31
| | | | | | | | | | | | | | | | | (#112159) gh-112088: Run autoreconf in GHA check_generated_files (#112090) The "Check if generated files are up to date" job of GitHub Actions now runs the "autoreconf -ivf -Werror" command instead of the "make regen-configure" command to avoid depending on the external quay.io server. Add Tools/build/regen-configure.sh script to regenerate the configure with an Ubuntu container image. The "quay.io/tiran/cpython_autoconf:271" container image (https://github.com/tiran/cpython_autoconf) is no longer used. (cherry picked from commit d9fd33a869d2be769ff596530f63ee099465b037)
* [3.12] Bump mypy to 1.7.0 (GH-111961) (#112033)Alex Waygood2023-11-131-1/+1
|
* [3.12] Sync location of `mypy` pin with the `main` branch (#111317)Artyom Romanov2023-10-251-0/+0
|
* [3.12] Bump test deps: `ruff` and `mypy` (GH-111288) (#111313)Artyom Romanov2023-10-251-1/+1
| | | Bump test deps: `ruff` and `mypy`
* [3.12] Bump test deps: `ruff` and `pre-commit-hooks` (GH-110972) (#110980)Nikita Sobolev2023-10-171-1/+1
| | | (cherry picked from commit b75b1f389f083db8568bff573c33ab4ecf29655a)
* [3.12] gh-109408: Revert pre-commit whitespace checks pending portable ↵Miss Islington (bot)2023-10-111-10/+110
| | | | | | | | solution (GH-110726) (#110730) gh-109408: Revert pre-commit whitespace checks pending portable solution (GH-110726) (cherry picked from commit de956b263b98bb9928ce4377c42ca8271c4f2682) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] GH-109408: Move the C file whitespace check from patchcheck to ↵Adam Turner2023-10-102-90/+8
| | | | | pre-commit (GH-109890) (#110636) (cherry picked from commit f5edb56328b46f262b74a53343b8098a3934f761)
* [3.12] GH-109408: Move the Python file whitespace check from patchcheck to ↵Miss Islington (bot)2023-10-101-25/+7
| | | | | | | | | pre-commit (GH-109891) (#110633) GH-109408: Move the Python file whitespace check from patchcheck to pre-commit (GH-109891) (cherry picked from commit 08ec4a1dbf66383303de9ce5cb55b2b437ef92c0) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-110558: Enable ruff's pyupgrade rules when running on Argument ↵Miss Islington (bot)2023-10-102-1/+16
| | | | | | | | Clinic (GH-110603) (#110609) gh-110558: Enable ruff's pyupgrade rules when running on Argument Clinic (GH-110603) (cherry picked from commit fc811c8d205db9c19f42890e2c4193a0c2f87965) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.12] gh-110558: Run ruff on Argument Clinic in CI (#110559) (#110598)Alex Waygood2023-10-101-0/+14
|
* [3.12] gh-109408: Add the docs whitespace check from patchcheck to ↵Miss Islington (bot)2023-10-101-32/+12
| | | | | | | | | | pre-commit (GH-109854) (#110594) 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.12] gh-103053: Fix test_tools.test_freeze on FreeBSD (GH-110451) (#110456)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.12] gh-109615: Fix support test_copy_python_src_ignore() (#109958) (#110340)Victor Stinner2023-10-042-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) * gh-109615: Fix support test_copy_python_src_ignore() on WASM (#109970) Not only check if src_dir exists, but look also for Lib/os.py landmark. (cherry picked from commit cc54bcf17b5b5f7681f52baf3acef75b995fa1fd) * gh-109615: Look for 'Modules' as landmark for test_copy_python_src_ignore (GH-110108) (cherry picked from commit 20bc5f7c28a6f8a2e156c4a748ffabb5efc7c761) * gh-109748: Fix again venv test_zippath_from_non_installed_posix() (#110149) Call also copy_python_src_ignore() on listdir() names. shutil.copytree(): replace set() with an empty tuple. An empty tuple becomes a constant in the compiler and checking if an item is in an empty tuple is cheap. (cherry picked from commit 0def8c712bb6f66f1081cab71deb3681566b846d) --------- Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.12] Code: Update Donghee Na's name (GH-109744) (#110225)Miss Islington (bot)2023-10-024-4/+4
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* [3.12] gh-109615: Fix test_tools.test_freeze SRCDIR (#109935) (#109950)Victor Stinner2023-10-021-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.12] gh-109098: Fuzz re module instead of internal sre (GH-109911) (#109932)Miss Islington (bot)2023-10-021-3/+3
| | | | | | | | | | gh-109098: Fuzz re module instead of internal sre (GH-109911) * gh-109098: Fuzz re module instead of internal sre * 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.12] gh-109596: Ensure repeated rules in the grammar are not allowed and ↵Pablo Galindo Salgado2023-10-021-1/+7
| | | | | fix incorrect soft keywords (GH-109606). (#109752) (cherry picked from commit b28ffaa193efc66f46ab90d383279174a11a11d7)
* [3.12] gh-109991: Update GitHub CI workflows to use OpenSSL 3.0.11 and ↵Miss Islington (bot)2023-09-281-3/+3
| | | | | | | | multissltests to use 1.1.1w, 3.0.11, and 3.1.3. (gh-110002) (#110005) gh-109991: Update GitHub CI workflows to use OpenSSL 3.0.11 and multissltests to use 1.1.1w, 3.0.11, and 3.1.3. (gh-110002) (cherry picked from commit c88037d137a98d7c399c7bd74d5117b5bcae1543) Co-authored-by: Ned Deily <nad@python.org>
* [3.12] gh-108740: Fix "make regen-all" race condition (#108741) (#109019)Victor Stinner2023-09-081-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 clinic" no longer runs generate_global_objects.py script. * "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. * Document generates files in Doc/using/configure.rst. Co-authored-by: Erlend E. Aasland <erlend@python.org> (cherry picked from commit db1ee6a19ab62191c16ecb732cb4dcaede98a902)
* [3.12] gh-109002: Ensure only one wheel for each vendored package ↵Miss Islington (bot)2023-09-061-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (GH-109003) (#109005) 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.12] Disable `differing_test_runners` health check (GH-108886) (#108887)Miss Islington (bot)2023-09-041-0/+4
| | | | | | Disable `differing_test_runners` health check (GH-108886) (cherry picked from commit 6ead5bd6ae20b902e6c11a3c0acede22632dc0d5) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>