Skip to content

Commit 4c4b271

Browse files
Merge branch 'main' into pythongh-100061
2 parents 2ffcc16 + a794ebe commit 4c4b271

File tree

2,234 files changed

+155061
-139527
lines changed

Some content is hidden

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

2,234 files changed

+155061
-139527
lines changed

.azure-pipelines/ci.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,6 @@ jobs:
1414
- template: ./prebuild-checks.yml
1515

1616

17-
- job: Docs_PR
18-
displayName: Docs PR
19-
dependsOn: Prebuild
20-
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['docs.run'], 'true'))
21-
22-
pool:
23-
vmImage: ubuntu-22.04
24-
25-
steps:
26-
- template: ./docs-steps.yml
27-
parameters:
28-
upload: true
29-
30-
3117
- job: macOS_CI_Tests
3218
displayName: macOS CI Tests
3319
dependsOn: Prebuild
@@ -57,7 +43,7 @@ jobs:
5743
variables:
5844
testRunTitle: '$(build.sourceBranchName)-linux'
5945
testRunPlatform: linux
60-
openssl_version: 1.1.1t
46+
openssl_version: 1.1.1u
6147

6248
steps:
6349
- template: ./posix-steps.yml
@@ -83,7 +69,7 @@ jobs:
8369
variables:
8470
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
8571
testRunPlatform: linux-coverage
86-
openssl_version: 1.1.1t
72+
openssl_version: 1.1.1u
8773

8874
steps:
8975
- template: ./posix-steps.yml

.azure-pipelines/docs-steps.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.azure-pipelines/pr.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,6 @@ jobs:
1414
- template: ./prebuild-checks.yml
1515

1616

17-
- job: Docs_PR
18-
displayName: Docs PR
19-
dependsOn: Prebuild
20-
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['docs.run'], 'true'))
21-
22-
pool:
23-
vmImage: ubuntu-22.04
24-
25-
steps:
26-
- template: ./docs-steps.yml
27-
28-
2917
- job: macOS_PR_Tests
3018
displayName: macOS PR Tests
3119
dependsOn: Prebuild
@@ -57,7 +45,7 @@ jobs:
5745
variables:
5846
testRunTitle: '$(system.pullRequest.TargetBranch)-linux'
5947
testRunPlatform: linux
60-
openssl_version: 1.1.1t
48+
openssl_version: 1.1.1u
6149

6250
steps:
6351
- template: ./posix-steps.yml
@@ -83,7 +71,7 @@ jobs:
8371
variables:
8472
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
8573
testRunPlatform: linux-coverage
86-
openssl_version: 1.1.1t
74+
openssl_version: 1.1.1u
8775

8876
steps:
8977
- template: ./posix-steps.yml

.azure-pipelines/prebuild-checks.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,6 @@ steps:
1111
displayName: Fetch comparison tree
1212
condition: and(succeeded(), variables['System.PullRequest.TargetBranch'])
1313

14-
- script: |
15-
if ! git diff --name-only $(diffTarget) | grep -qE '(\.rst$|^Doc|^Misc)'
16-
then
17-
echo "No docs were updated: docs.run=false"
18-
echo "##vso[task.setvariable variable=run;isOutput=true]false"
19-
else
20-
echo "Docs were updated: docs.run=true"
21-
echo "##vso[task.setvariable variable=run;isOutput=true]true"
22-
fi
23-
displayName: Detect documentation changes
24-
name: docs
25-
2614
- script: |
2715
if ! git diff --name-only $(diffTarget) | grep -qvE '(\.rst$|^Doc|^Misc)'
2816
then

.coveragerc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[run]
2+
branch = True
3+
4+
[report]
5+
# Regexes for lines to exclude from consideration
6+
exclude_lines =
7+
# Don't complain if non-runnable code isn't run:
8+
if 0:
9+
if __name__ == .__main__.:
10+
raise AssertionError\(
11+
12+
# Empty bodies in protocols or abstract methods
13+
^\s*def [a-zA-Z0-9_]+\(.*\)(\s*->.*)?:\s*\.\.\.(\s*#.*)?$
14+
^\s*\.\.\.(\s*#.*)?$
15+
16+
.*# pragma: no cover
17+
.*# pragma: no branch
18+
19+
# Additions for IDLE:
20+
.*# htest #
21+
if not (_htest or _utest):
22+
if not .*_utest:
23+
if .*_htest:
24+

.devcontainer/Dockerfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM docker.io/library/fedora:37
2+
3+
ENV CC=clang
4+
5+
ENV WASI_SDK_VERSION=20
6+
ENV WASI_SDK_PATH=/opt/wasi-sdk
7+
8+
ENV WASMTIME_HOME=/opt/wasmtime
9+
ENV WASMTIME_VERSION=9.0.1
10+
ENV WASMTIME_CPU_ARCH=x86_64
11+
12+
RUN dnf -y --nodocs --setopt=install_weak_deps=False install /usr/bin/{blurb,clang,curl,git,ln,tar,xz} 'dnf-command(builddep)' && \
13+
dnf -y --nodocs --setopt=install_weak_deps=False builddep python3 && \
14+
dnf -y clean all
15+
16+
RUN mkdir ${WASI_SDK_PATH} && \
17+
curl --location https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-${WASI_SDK_VERSION}/wasi-sdk-${WASI_SDK_VERSION}.0-linux.tar.gz | \
18+
tar --strip-components 1 --directory ${WASI_SDK_PATH} --extract --gunzip
19+
20+
RUN mkdir --parents ${WASMTIME_HOME} && \
21+
curl --location "https://github.com/bytecodealliance/wasmtime/releases/download/v${WASMTIME_VERSION}/wasmtime-v${WASMTIME_VERSION}-${WASMTIME_CPU_ARCH}-linux.tar.xz" | \
22+
xz --decompress | \
23+
tar --strip-components 1 --directory ${WASMTIME_HOME} -x && \
24+
ln -s ${WASMTIME_HOME}/wasmtime /usr/local/bin

.devcontainer/devcontainer.json

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

.gitattributes

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
*.zip binary
1919

2020
# Specific binary files
21-
Lib/test/sndhdrdata/sndhdr.* binary
2221
PC/classicAppCompat.* binary
2322

2423
# Text files that should not be subject to eol conversion
@@ -32,6 +31,10 @@ Lib/test/test_importlib/resources/data01/* noeol
3231
Lib/test/test_importlib/resources/namespacedata01/* noeol
3332
Lib/test/xmltestdata/* noeol
3433

34+
# Shell scripts should have LF even on Windows because of Cygwin
35+
Lib/venv/scripts/common/activate text eol=lf
36+
Lib/venv/scripts/posix/* text eol=lf
37+
3538
# CRLF files
3639
[attr]dos text eol=crlf
3740

@@ -69,9 +72,12 @@ Doc/library/token-list.inc generated
6972
Include/internal/pycore_ast.h generated
7073
Include/internal/pycore_ast_state.h generated
7174
Include/internal/pycore_opcode.h generated
75+
Include/internal/pycore_opcode_metadata.h generated
7276
Include/internal/pycore_*_generated.h generated
7377
Include/opcode.h generated
78+
Include/opcode_ids.h generated
7479
Include/token.h generated
80+
Lib/_opcode_metadata.py generated
7581
Lib/keyword.py generated
7682
Lib/test/levenshtein_examples.json generated
7783
Lib/test/test_stable_abi_ctypes.py generated
@@ -82,7 +88,9 @@ Parser/parser.c generated
8288
Parser/token.c generated
8389
Programs/test_frozenmain.h generated
8490
Python/Python-ast.c generated
91+
Python/executor_cases.c.h generated
8592
Python/generated_cases.c.h generated
93+
Python/abstract_interp_cases.c.h generated
8694
Python/opcode_targets.h generated
8795
Python/stdlib_module_names.h generated
8896
Tools/peg_generator/pegen/grammar_parser.py generated

0 commit comments

Comments
 (0)