summaryrefslogtreecommitdiffstats
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
* build(deps): bump hypothesis from 6.91.0 to 6.92.2 in /Tools (#113615)dependabot[bot]2024-01-011-1/+1
| | | | | | | | | | | | | | | Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 6.91.0 to 6.92.2. - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.91.0...hypothesis-python-6.92.2) --- updated-dependencies: - dependency-name: hypothesis dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* gh-113299: Move cpp.py into libclinic (#113526)Erlend E. Aasland2023-12-272-3/+6
|
* gh-113317: Rework Argument Clinic cpp.py error handling (#113525)Erlend E. Aasland2023-12-274-34/+42
| | | | | | | | Rework error handling in the C preprocessor helper. Instead of monkey- patching the cpp.Monitor.fail() method from within clinic.py, rewrite cpp.py to use a subclass of the ClinicError exception. As a side-effect, ClinicError is moved into Tools/clinic/libclinic/errors.py. Yak-shaving in preparation for putting cpp.py into libclinic.
* gh-112532: Fix peg generator build.py for mimalloc build (gh-113492)Donghee Na2023-12-261-0/+1
| | | gh-112532: Fix peg generator for mimalloc build
* gh-113317: Move more formatting helpers into libclinic (#113438)Erlend E. Aasland2023-12-233-156/+157
| | | | | | | | | Move the following global helpers into libclinic: - format_escape() - normalize_snippet() - wrap_declarations() Also move strip_leading_and_trailing_blank_lines() and make it internal to libclinic.
* gh-113317: Clean up Argument Clinic global namespace (#113414)Erlend E. Aasland2023-12-233-121/+170
| | | | | | | | | | Split up clinic.py by establishing libclinic as a support package for Argument Clinic. Get rid of clinic.py globals by either making them class members, or by putting them into libclinic. - Move INCLUDE_COMMENT_COLUMN to BlockPrinter - Move NO_VARARG to CLanguage - Move formatting helpers to libclinic - Move some constants to libclinic (and annotate them as Final)
* gh-113317: Remove TextAccumulator type alias from clinic.py (#113413)Erlend E. Aasland2023-12-221-8/+5
| | | Clean-up after gh-113402.
* gh-113317: Argument Clinic: tear out internal text accumulator APIs (#113402)Erlend E. Aasland2023-12-221-158/+89
| | | | | | | Replace the internal accumulator APIs by using lists of strings and join(). Yak-shaving for separating out formatting code into a separate file. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Bump mypy to 1.8.0 (#113385)Alex Waygood2023-12-212-2/+2
|
* gh-65701: document that freeze doesn't work with framework builds on macOS ↵Ronald Oussoren2023-12-212-0/+10
| | | | | | | | | | | (#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. Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* GH-111485: Delete the old generator code. (GH-113321)Mark Shannon2023-12-2111-2627/+103
|
* gh-113336: Remove the 'version' directive from Argument Clinic (#113341)Erlend E. Aasland2023-12-211-52/+0
| | | | | The 'version' directive was introduced with gh-63929 in Nov 2013. It has not been in use in the CPython code base, and the 'version' variable has never been bumped.
* Docs: update URL in Argument Clinic CLI help text (#113351)Erlend E. Aasland2023-12-211-1/+1
| | | The Argument Clinic docs was moved to the devguide earlier in 2023.
* GH-111485: Fix DEFAULT_OUTPUT in opcode_metadata_generator.py (#113324)Guido van Rossum2023-12-201-1/+1
|
* gh-113257: Automatically generate pip SBOM metadata from wheel (#113295)Seth Michael Larson2023-12-201-10/+106
| | | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* GH-111485: Generate `TARGET` table for computed goto dispatch. (GH-113319)Mark Shannon2023-12-202-1/+54
|
* GH-111485: Generate instruction and uop metadata (GH-113287)Mark Shannon2023-12-2012-174/+849
|
* gh-112205: Support docstring for `@getter` (#113160)Donghee Na2023-12-201-7/+31
| | | | | --------- Co-authored-by: Erlend E. Aasland <erlend@python.org>
* gh-112205: Require @getter and @setter to be methods (#113278)Erlend E. Aasland2023-12-191-0/+4
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* gh-113257: Fix SBOM metadata for pip 23.3.2 (#113262)Seth Michael Larson2023-12-191-1/+1
| | | Fix SBOM metadata for pip 23.3.2
* GH-111485: Break up instructions with unused cache entries into component ↵Mark Shannon2023-12-183-8/+27
| | | | micro-ops (GH-113169)
* GH-111485: Test the new cases generator (GH-113252)Mark Shannon2023-12-185-10/+24
|
* gh-113246: Updated bundled pip to 23.3.2 (gh-113249)Stéphane Bidoul2023-12-181-1/+1
| | | Updated bundled pip to 23.3.2
* GH-111485: Sort metadata tables for easier checking of future diffs (GH-113101)Mark Shannon2023-12-141-6/+8
|
* gh-59616: Support os.chmod(follow_symlinks=True) and os.lchmod() on Windows ↵Serhiy Storchaka2023-12-141-1/+1
| | | | (GH-113049)
* gh-111650: Ensure pyconfig.h includes Py_GIL_DISABLED on Windows (GH-112778)Steve Dower2023-12-132-1/+5
|
* gh-112205: Support `@setter` annotation from AC (gh-112922)Donghee Na2023-12-131-9/+66
| | | | | | --------- Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* Fix whitespace in generated codeMark Shannon2023-12-131-3/+4
|
* gh-112320: Implement on-trace confidence tracking for branches (#112321)Guido van Rossum2023-12-121-0/+2
| | | We track the confidence as a scaled int.
* gh-76785: More Fixes for test.support.interpreters (gh-113012)Eric Snow2023-12-122-0/+2
| | | This brings the module (along with the associated extension modules) mostly in sync with PEP 734. There are only a few small things to wrap up.
* gh-76785: Fixes for test.support.interpreters (gh-112982)Eric Snow2023-12-121-0/+4
| | | This involves a number of changes for PEP 734.
* GH-111485: Factor out tier 2 code generation from the rest of the ↵Mark Shannon2023-12-128-240/+494
| | | | interpreter code generator (GH-112968)
* GH-111485: Factor out generation of uop IDs from cases generator. (GH-112877)Mark Shannon2023-12-114-2/+95
|
* Add a fuzzer for `Py_CompileStringExFlags` (#111721)Brad Larsen2023-12-101-0/+3
|
* Argument Clinic: fix bare "type" in annotations (#112915)Jelle Zijlstra2023-12-101-5/+5
| | | | | | Bare "type" in annotations should be equivalent to "type[Any]"; see https://discuss.python.org/t/inconsistencies-between-type-and-type/37404 and python/mypy#16366. It's better to use "type[object]", which is safer and unambiguous.
* GH-111485: Factor out opcode ID generator from the main cases generator. ↵Mark Shannon2023-12-085-67/+196
| | | | (GH-112831)
* gh-112302: Add Software Bill-of-Materials (SBOM) tracking for dependencies ↵Seth Michael Larson2023-12-072-0/+192
| | | | (#112303)
* GH-111485: Separate out parsing, analysis and code-gen phases of tier 1 code ↵Mark Shannon2023-12-079-6/+1129
| | | | generator (GH-112299)
* gh-106560: Fix redundant declarations in Python/frozen.c (#112612)Victor Stinner2023-12-031-1/+12
| | | | | | Avoid duplicated declarations of "extern" functions in Python/frozen.c. Compiler warnings seen by building Python with gcc -Wredundant-decls.
* build(deps): bump hypothesis from 6.88.1 to 6.91.0 in /Tools (#112580)dependabot[bot]2023-12-011-1/+1
| | | | | | | | | | | | | | | Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 6.88.1 to 6.91.0. - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.88.1...hypothesis-python-6.91.0) --- updated-dependencies: - dependency-name: hypothesis dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fix typos in variable names, function names, and comments (GH-101868)Yang Hau2023-12-013-9/+9
|
* build(deps-dev): bump types-setuptools from 68.2.0.0 to 69.0.0.0 in /Tools ↵dependabot[bot]2023-12-011-1/+1
| | | | | | | | | | | | | | | | | | (#112582) build(deps-dev): bump types-setuptools in /Tools Bumps [types-setuptools](https://github.com/python/typeshed) from 68.2.0.0 to 69.0.0.0. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-setuptools dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps-dev): bump mypy from 1.7.0 to 1.7.1 in /Tools (#112581)dependabot[bot]2023-12-011-1/+1
| | | | | | | | | | | | | | | Bumps [mypy](https://github.com/python/mypy) from 1.7.0 to 1.7.1. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.7.0...v1.7.1) --- updated-dependencies: - dependency-name: mypy dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Clarify that WASI tool requirements are included in the devcontainer (GH-112561)Brett Cannon2023-11-301-8/+8
|
* gh-112519: Make it possible to specify instruction flags for pseudo ↵Irit Katriel2023-11-302-4/+30
| | | | instructions in bytecodes.c (#112520)
* gh-112205: Support @getter annotation from AC (gh-112396)Donghee Na2023-11-301-10/+43
|
* GH-103065, GH-106704, GH-105253: Provide a `Tools/wasm/wasi.py` script to ↵Brett Cannon2023-11-303-76/+369
| | | | simplify doing a WASI build (GH-112473)
* gh-112213: Add missing declaration of target_critical_section (gh-112374)Donghee Na2023-11-241-2/+4
| | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* GH-111485: Sort cases in the case generator output (GH-112315)Mark Shannon2023-11-221-1/+5
|
* gh-112287: Speed up Tier 2 (uop) interpreter a little (#112286)Guido van Rossum2023-11-202-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | This makes the Tier 2 interpreter a little faster. I calculated by about 3%, though I hesitate to claim an exact number. This starts by doubling the trace size limit (to 512), making it more likely that loops fit in a trace. The rest of the approach is to only load `oparg` and `operand` in cases that use them. The code generator know when these are used. For `oparg`, it will conditionally emit ``` oparg = CURRENT_OPARG(); ``` at the top of the case block. (The `oparg` variable may be referenced multiple times by the instructions code block, so it must be in a variable.) For `operand`, it will use `CURRENT_OPERAND()` directly instead of referencing the `operand` variable, which no longer exists. (There is only one place where this will be used.)