Skip to content

Commit b2e8a76

Browse files
authored
Merge branch 'main' into hy/close_issue_127068
2 parents 003ce9f + b8d3fdd commit b2e8a76

File tree

1,863 files changed

+147711
-42658
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,863 files changed

+147711
-42658
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"image": "ghcr.io/python/wasicontainer:latest",
3+
"onCreateCommand": [
4+
// Install common tooling.
5+
"dnf",
6+
"install",
7+
"-y",
8+
// For umask fix below.
9+
"/usr/bin/setfacl"
10+
],
11+
"updateContentCommand": {
12+
// Using the shell for `nproc` usage.
13+
"python": "python3 Tools/wasm/wasi build --quiet -- --with-pydebug -C"
14+
},
15+
"postCreateCommand": {
16+
// https://github.com/orgs/community/discussions/26026
17+
"umask fix: workspace": ["sudo", "setfacl", "-bnR", "."],
18+
"umask fix: /tmp": ["sudo", "setfacl", "-bnR", "/tmp"]
19+
},
20+
"customizations": {
21+
"vscode": {
22+
"extensions": [
23+
// Highlighting for Parser/Python.asdl.
24+
"brettcannon.zephyr-asdl",
25+
// Highlighting for configure.ac.
26+
"maelvalais.autoconf",
27+
// C auto-complete.
28+
"ms-vscode.cpptools",
29+
// Python auto-complete.
30+
"ms-python.python"
31+
],
32+
"settings": {
33+
"C_Cpp.default.compilerPath": "/usr/bin/clang",
34+
"C_Cpp.default.cStandard": "c11",
35+
"C_Cpp.default.defines": [
36+
"CONFIG_64",
37+
"Py_BUILD_CORE"
38+
],
39+
"C_Cpp.default.includePath": [
40+
"${workspaceFolder}/*",
41+
"${workspaceFolder}/Include/**"
42+
],
43+
// https://github.com/microsoft/vscode-cpptools/issues/10732
44+
"C_Cpp.errorSquiggles": "disabled",
45+
"editor.insertSpaces": true,
46+
"editor.rulers": [
47+
80
48+
],
49+
"editor.tabSize": 4,
50+
"editor.trimAutoWhitespace": true,
51+
"files.associations": {
52+
"*.h": "c"
53+
},
54+
"files.encoding": "utf8",
55+
"files.eol": "\n",
56+
"files.insertFinalNewline": true,
57+
"files.trimTrailingWhitespace": true,
58+
"python.analysis.diagnosticSeverityOverrides": {
59+
// Complains about shadowing the stdlib w/ the stdlib.
60+
"reportShadowedImports": "none",
61+
// Doesn't like _frozen_importlib.
62+
"reportMissingImports": "none"
63+
},
64+
"python.analysis.extraPaths": [
65+
"Lib"
66+
],
67+
"[restructuredtext]": {
68+
"editor.tabSize": 3
69+
}
70+
}
71+
}
72+
}
73+
}

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ PCbuild/readme.txt dos
6868
**/clinic/*.cpp.h generated
6969
**/clinic/*.h.h generated
7070
*_db.h generated
71+
Doc/_static/tachyon-example-*.html generated
7172
Doc/c-api/lifecycle.dot.svg generated
7273
Doc/data/stable_abi.dat generated
7374
Doc/library/token-list.inc generated
@@ -83,10 +84,12 @@ Include/opcode_ids.h generated
8384
Include/token.h generated
8485
Lib/_opcode_metadata.py generated
8586
Lib/keyword.py generated
87+
Lib/idlelib/help.html generated
8688
Lib/test/certdata/*.pem generated
8789
Lib/test/certdata/*.0 generated
8890
Lib/test/levenshtein_examples.json generated
8991
Lib/test/test_stable_abi_ctypes.py generated
92+
Lib/test/test_zoneinfo/data/*.json generated
9093
Lib/token.py generated
9194
Misc/sbom.spdx.json generated
9295
Objects/typeslots.inc generated

.github/CODEOWNERS

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ Modules/makesetup @erlend-aasland @AA-Turner @emmatyping
8686
Modules/Setup* @erlend-aasland @AA-Turner @emmatyping
8787
Tools/build/regen-configure.sh @AA-Turner
8888

89+
# generate-build-details
90+
Tools/build/generate-build-details.py @FFY00
91+
Lib/test/test_build_details.py @FFY00
92+
8993

9094
# ----------------------------------------------------------------------------
9195
# Documentation
@@ -122,6 +126,9 @@ Doc/howto/clinic.rst @erlend-aasland @AA-Turner
122126
# C Analyser
123127
Tools/c-analyzer/ @ericsnowcurrently
124128

129+
# C API Documentation Checks
130+
Tools/check-c-api-docs/ @ZeroIntensity
131+
125132
# Fuzzing
126133
Modules/_xxtestfuzz/ @ammaraskar
127134

@@ -241,10 +248,10 @@ Lib/test/test_getpath.py @FFY00
241248
Modules/getpath* @FFY00
242249

243250
# Hashing / ``hash()`` and related
244-
Include/cpython/pyhash.h @gpshead @picnixz @tiran
245-
Include/internal/pycore_pyhash.h @gpshead @picnixz @tiran
246-
Include/pyhash.h @gpshead @picnixz @tiran
247-
Python/pyhash.c @gpshead @picnixz @tiran
251+
Include/cpython/pyhash.h @gpshead @picnixz
252+
Include/internal/pycore_pyhash.h @gpshead @picnixz
253+
Include/pyhash.h @gpshead @picnixz
254+
Python/pyhash.c @gpshead @picnixz
248255

249256
# The import system (including importlib)
250257
**/*import* @brettcannon @ericsnowcurrently @ncoghlan @warsaw
@@ -282,10 +289,10 @@ Tools/jit/ @brandtbucher @savannahostrowski @diegorusso
282289
InternalDocs/jit.md @brandtbucher @savannahostrowski @diegorusso @AA-Turner
283290

284291
# Micro-op / μop / Tier 2 Optimiser
285-
Python/optimizer.c @markshannon
292+
Python/optimizer.c @markshannon @Fidget-Spinner
286293
Python/optimizer_analysis.c @markshannon @tomasr8 @Fidget-Spinner
287294
Python/optimizer_bytecodes.c @markshannon @tomasr8 @Fidget-Spinner
288-
Python/optimizer_symbols.c @markshannon @tomasr8
295+
Python/optimizer_symbols.c @markshannon @tomasr8 @Fidget-Spinner
289296

290297
# Parser, Lexer, and Grammar
291298
Grammar/python.gram @pablogsal @lysnikolaou
@@ -315,7 +322,7 @@ Tools/build/generate_global_objects.py @ericsnowcurrently
315322
# Remote Debugging
316323
Python/remote_debug.h @pablogsal
317324
Python/remote_debugging.c @pablogsal
318-
Modules/_remote_debugging_module.c @pablogsal @ambv @1st1
325+
Modules/_remote_debugging/ @pablogsal
319326

320327
# Sub-Interpreters
321328
**/*crossinterp* @ericsnowcurrently
@@ -371,14 +378,14 @@ Lib/calendar.py @AA-Turner
371378
Lib/test/test_calendar.py @AA-Turner
372379

373380
# Cryptographic Primitives and Applications
374-
**/*hashlib* @gpshead @picnixz @tiran
375-
**/*hashopenssl* @gpshead @picnixz @tiran
381+
**/*hashlib* @gpshead @picnixz
382+
**/*hashopenssl* @gpshead @picnixz
376383
**/*hmac* @gpshead @picnixz
377384
**/*ssl* @gpshead @picnixz
378385
Modules/_hacl/ @gpshead @picnixz
379-
Modules/*blake* @gpshead @picnixz @tiran
380-
Modules/*md5* @gpshead @picnixz @tiran
381-
Modules/*sha* @gpshead @picnixz @tiran
386+
Modules/*blake* @gpshead @picnixz
387+
Modules/*md5* @gpshead @picnixz
388+
Modules/*sha* @gpshead @picnixz
382389

383390
# Codecs
384391
Modules/cjkcodecs/ @corona10
@@ -530,6 +537,11 @@ Lib/pydoc.py @AA-Turner
530537
Lib/pydoc_data/ @AA-Turner
531538
Lib/test/test_pydoc/ @AA-Turner
532539

540+
# Profiling (Sampling)
541+
Doc/library/profiling*.rst @pablogsal
542+
Lib/profiling/ @pablogsal
543+
Lib/test/test_profiling/ @pablogsal
544+
533545
# PyREPL
534546
Lib/_pyrepl/ @pablogsal @lysnikolaou @ambv
535547
Lib/test/test_pyrepl/ @pablogsal @lysnikolaou @ambv

.github/CONTRIBUTING.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@ Please be aware that our workflow does deviate slightly from the typical GitHub
2828
project. Details on how to properly submit a pull request are covered in
2929
`Lifecycle of a Pull Request <https://devguide.python.org/getting-started/pull-request-lifecycle.html>`_.
3030
We utilize various bots and status checks to help with this, so do follow the
31-
comments they leave and their "Details" links, respectively. The key points of
32-
our workflow that are not covered by a bot or status check are:
31+
comments they leave and their "Details" links, respectively.
3332

34-
- All discussions that are not directly related to the code in the pull request
35-
should happen on `GitHub Issues <https://github.com/python/cpython/issues>`_.
36-
- Upon your first non-trivial pull request (which includes documentation changes),
37-
feel free to add yourself to ``Misc/ACKS``.
33+
The final key part of our workflow is that all discussions that are not
34+
directly related to the code in the pull request should happen on
35+
`GitHub Issues <https://github.com/python/cpython/issues>`__, generally in the
36+
pull request's parent issue.
3837

3938

4039
Setting Expectations

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ contact_links:
55
- name: "Proposing new features"
66
about: "Submit major feature proposal (e.g. syntax changes) to an ideas forum first."
77
url: "https://discuss.python.org/c/ideas/6"
8+
- name: "Python Install Manager issues"
9+
about: "Report issues with the Python Install Manager (for Windows)"
10+
url: "https://github.com/python/pymanager/issues"

.github/actionlint.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
self-hosted-runner:
22
# Pending https://github.com/rhysd/actionlint/issues/533
3-
labels: ["windows-11-arm"]
3+
# and https://github.com/rhysd/actionlint/issues/571
4+
labels: ["windows-11-arm", "macos-15-intel"]
45

56
config-variables: null
67

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,17 @@ updates:
1212
update-types:
1313
- "version-update:semver-minor"
1414
- "version-update:semver-patch"
15+
cooldown:
16+
# https://blog.yossarian.net/2025/11/21/We-should-all-be-using-dependency-cooldowns
17+
# Cooldowns protect against supply chain attacks by avoiding the
18+
# highest-risk window immediately after new releases.
19+
default-days: 14
1520
- package-ecosystem: "pip"
1621
directory: "/Tools/"
1722
schedule:
1823
interval: "monthly"
1924
labels:
2025
- "skip issue"
2126
- "skip news"
27+
cooldown:
28+
default-days: 14

0 commit comments

Comments
 (0)