Skip to content

Commit 8d36747

Browse files
authored
Merge branch 'main' into issue-23188-set-object-docs
2 parents 04995c3 + c0f488b commit 8d36747

File tree

2,584 files changed

+166079
-154185
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,584 files changed

+166079
-154185
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

.cirrus.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
freebsd_task:
2+
freebsd_instance:
3+
matrix:
4+
- image: freebsd-13-2-release-amd64
5+
# Turn off TCP and UDP blackhole. It is not enabled by default in FreeBSD,
6+
# but it is in the FreeBSD GCE images as used by Cirrus-CI. It causes even
7+
# local local connections to fail with ETIMEDOUT instead of ECONNREFUSED.
8+
# For more information see https://reviews.freebsd.org/D41751 and
9+
# https://github.com/cirruslabs/cirrus-ci-docs/issues/483.
10+
sysctl_script:
11+
- sysctl net.inet.tcp.blackhole=0
12+
- sysctl net.inet.udp.blackhole=0
13+
configure_script:
14+
- mkdir build
15+
- cd build
16+
- ../configure --with-pydebug
17+
build_script:
18+
- cd build
19+
- make -j$(sysctl -n hw.ncpu)
20+
pythoninfo_script:
21+
- cd build
22+
- make pythoninfo
23+
test_script:
24+
- cd build
25+
# dtrace fails to build on FreeBSD - see gh-73263
26+
- make buildbottest TESTOPTS="-j0 -x test_dtrace --timeout=600"

.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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ FROM docker.io/library/fedora:37
22

33
ENV CC=clang
44

5-
ENV WASI_SDK_VERSION=19
5+
ENV WASI_SDK_VERSION=20
66
ENV WASI_SDK_PATH=/opt/wasi-sdk
77

88
ENV WASMTIME_HOME=/opt/wasmtime
9-
ENV WASMTIME_VERSION=7.0.0
9+
ENV WASMTIME_VERSION=9.0.1
1010
ENV WASMTIME_CPU_ARCH=x86_64
1111

1212
RUN dnf -y --nodocs --setopt=install_weak_deps=False install /usr/bin/{blurb,clang,curl,git,ln,tar,xz} 'dnf-command(builddep)' && \

.devcontainer/devcontainer.json

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
"-y",
1010
"which",
1111
"zsh",
12-
"fish"
12+
"fish",
13+
// For umask fix below.
14+
"/usr/bin/setfacl"
1315
],
1416
"updateContentCommand": {
1517
// Using the shell for `nproc` usage.
@@ -22,6 +24,11 @@
2224
"html"
2325
]
2426
},
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+
},
2532
"customizations": {
2633
"vscode": {
2734
"extensions": [
@@ -31,10 +38,10 @@
3138
"maelvalais.autoconf",
3239
// C auto-complete.
3340
"ms-vscode.cpptools",
34-
// To view built docs.
35-
"ms-vscode.live-server"
36-
// https://github.com/microsoft/vscode-python/issues/18073
37-
// "ms-python.python"
41+
// To view HTML build of docs.
42+
"ms-vscode.live-server",
43+
// Python auto-complete.
44+
"ms-python.python"
3845
],
3946
"settings": {
4047
"C_Cpp.default.compilerPath": "/usr/bin/clang",

.gitattributes

Lines changed: 7 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
@@ -67,15 +66,20 @@ PCbuild/readme.txt dos
6766
[attr]generated linguist-generated=true diff=generated
6867

6968
**/clinic/*.c.h generated
69+
**/clinic/*.cpp.h generated
70+
**/clinic/*.h.h generated
7071
*_db.h generated
7172
Doc/data/stable_abi.dat generated
7273
Doc/library/token-list.inc generated
7374
Include/internal/pycore_ast.h generated
7475
Include/internal/pycore_ast_state.h generated
7576
Include/internal/pycore_opcode.h generated
77+
Include/internal/pycore_opcode_metadata.h generated
7678
Include/internal/pycore_*_generated.h generated
7779
Include/opcode.h generated
80+
Include/opcode_ids.h generated
7881
Include/token.h generated
82+
Lib/_opcode_metadata.py generated
7983
Lib/keyword.py generated
8084
Lib/test/levenshtein_examples.json generated
8185
Lib/test/test_stable_abi_ctypes.py generated
@@ -86,7 +90,9 @@ Parser/parser.c generated
8690
Parser/token.c generated
8791
Programs/test_frozenmain.h generated
8892
Python/Python-ast.c generated
93+
Python/executor_cases.c.h generated
8994
Python/generated_cases.c.h generated
95+
Python/abstract_interp_cases.c.h generated
9096
Python/opcode_targets.h generated
9197
Python/stdlib_module_names.h generated
9298
Tools/peg_generator/pegen/grammar_parser.py generated

.github/CODEOWNERS

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,34 @@
77
# GitHub
88
.github/** @ezio-melotti @hugovk
99

10+
# pre-commit
11+
.pre-commit-config.yaml @hugovk @AlexWaygood
12+
1013
# Build system
1114
configure* @erlend-aasland @corona10
1215

1316
# asyncio
14-
**/*asyncio* @1st1 @asvetlov @gvanrossum @kumaraditya303
17+
**/*asyncio* @1st1 @asvetlov @gvanrossum @kumaraditya303 @willingc
1518

1619
# Core
1720
**/*context* @1st1
1821
**/*genobject* @markshannon
1922
**/*hamt* @1st1
2023
Objects/set* @rhettinger
2124
Objects/dict* @methane @markshannon
25+
Objects/typevarobject.c @JelleZijlstra
2226
Objects/type* @markshannon
2327
Objects/codeobject.c @markshannon
2428
Objects/frameobject.c @markshannon
2529
Objects/call.c @markshannon
2630
Python/ceval.c @markshannon
2731
Python/compile.c @markshannon @iritkatriel
32+
Python/assemble.c @markshannon @iritkatriel
33+
Python/flowgraph.c @markshannon @iritkatriel
2834
Python/ast_opt.c @isidentical
2935
Lib/test/test_patma.py @brandtbucher
3036
Lib/test/test_peepholer.py @brandtbucher
37+
Lib/test/test_type_*.py @JelleZijlstra
3138

3239
# Exceptions
3340
Lib/traceback.py @iritkatriel
@@ -61,7 +68,8 @@ Python/traceback.c @iritkatriel
6168
/Tools/build/parse_html5_entities.py @ezio-melotti
6269

6370
# Import (including importlib).
64-
**/*import* @brettcannon @encukou @ericsnowcurrently @ncoghlan @warsaw
71+
**/*import* @brettcannon @ericsnowcurrently @ncoghlan @warsaw
72+
/Python/import.c @kumaraditya303
6573
**/*importlib/resources/* @jaraco @warsaw @FFY00
6674
**/importlib/metadata/* @jaraco @warsaw
6775

@@ -72,7 +80,7 @@ Doc/library/time.rst @pganssle @abalkin
7280
Lib/test/test_time.py @pganssle @abalkin
7381
Modules/timemodule.c @pganssle @abalkin
7482
Python/pytime.c @pganssle @abalkin
75-
Include/pytime.h @pganssle @abalkin
83+
Include/internal/pycore_time.h @pganssle @abalkin
7684

7785
# Email and related
7886
**/*mail* @python/email-team
@@ -90,6 +98,8 @@ Include/pytime.h @pganssle @abalkin
9098
/Tools/peg_generator/ @pablogsal @lysnikolaou
9199
/Lib/test/test_peg_generator/ @pablogsal @lysnikolaou
92100
/Grammar/python.gram @pablogsal @lysnikolaou
101+
/Lib/tokenize.py @pablogsal @lysnikolaou
102+
/Lib/test/test_tokenize.py @pablogsal @lysnikolaou
93103

94104
# AST
95105
Python/ast.c @isidentical
@@ -109,6 +119,12 @@ Lib/ast.py @isidentical
109119
/Lib/test/test_subprocess.py @gpshead
110120
/Modules/*subprocess* @gpshead
111121

122+
# Limited C API & stable ABI
123+
Tools/build/stable_abi.py @encukou
124+
Misc/stable_abi.toml @encukou
125+
Doc/data/*.abi @encukou
126+
Doc/c-api/stable.rst @encukou
127+
112128
# Windows
113129
/PC/ @python/windows-team
114130
/PCbuild/ @python/windows-team
@@ -157,4 +173,12 @@ Lib/ast.py @isidentical
157173
**/*pathlib* @barneygale
158174

159175
# zipfile.Path
160-
**/*zipfile/*_path.py @jaraco
176+
**/*zipfile/_path/* @jaraco
177+
178+
# Argument Clinic
179+
/Tools/clinic/** @erlend-aasland @AlexWaygood
180+
/Lib/test/test_clinic.py @erlend-aasland @AlexWaygood
181+
Doc/howto/clinic.rst @erlend-aasland
182+
183+
# WebAssembly
184+
/Tools/wasm/ @brettcannon

0 commit comments

Comments
 (0)