Skip to content

Commit 98db929

Browse files
authored
Merge branch 'main' into getaddrinfo-numeric-only
2 parents 219049f + 51fd4de commit 98db929

File tree

928 files changed

+12914
-6659
lines changed

Some content is hidden

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

928 files changed

+12914
-6659
lines changed

.github/CODEOWNERS

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,16 @@ Python/pythonrun.c @iritkatriel
5353
/Lib/html/ @ezio-melotti
5454
/Lib/_markupbase.py @ezio-melotti
5555
/Lib/test/test_html*.py @ezio-melotti
56+
/Tools/scripts/*html5* @ezio-melotti
5657

5758
# Import (including importlib).
5859
# Ignoring importlib.h so as to not get flagged on
5960
# all pull requests that change the emitted
6061
# bytecode.
6162
**/*import*.c @brettcannon @encukou @ericsnowcurrently @ncoghlan @warsaw
6263
**/*import*.py @brettcannon @encukou @ericsnowcurrently @ncoghlan @warsaw
64+
**/importlib/resources/* @jaraco @warsaw @brettcannon
65+
**/importlib/metadata/* @jaraco @warsaw
6366

6467
# Dates and times
6568
**/*datetime* @pganssle @abalkin
@@ -95,7 +98,7 @@ Lib/ast.py @isidentical
9598

9699
# Mock
97100
/Lib/unittest/mock.py @cjw296
98-
/Lib/unittest/test/testmock/* @cjw296
101+
/Lib/test/test_unittest/testmock/* @cjw296
99102

100103
# SQLite 3
101104
**/*sqlite* @berkerpeksag @erlend-aasland

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ on:
2222
- '3.8'
2323
- '3.7'
2424

25+
permissions:
26+
contents: read
27+
2528
jobs:
2629
check_source:
2730
name: 'Check for source changes'

.github/workflows/build_msi.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ on:
2323
paths:
2424
- 'Tools/msi/**'
2525

26+
permissions:
27+
contents: read
28+
2629
jobs:
2730
build_win32:
2831
name: 'Windows (x86) Installer'

.github/workflows/doc.yml

Lines changed: 37 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ on:
2323
paths:
2424
- 'Doc/**'
2525
- 'Misc/**'
26+
- '.github/workflows/doc.yml'
27+
28+
permissions:
29+
contents: read
2630

2731
jobs:
2832
build_doc:
@@ -32,6 +36,38 @@ jobs:
3236
- uses: actions/checkout@v3
3337
- name: Register Sphinx problem matcher
3438
run: echo "::add-matcher::.github/problem-matchers/sphinx.json"
39+
- name: 'Set up Python'
40+
uses: actions/setup-python@v4
41+
with:
42+
python-version: '3'
43+
cache: 'pip'
44+
cache-dependency-path: 'Doc/requirements.txt'
45+
- name: 'Install build dependencies'
46+
run: make -C Doc/ venv
47+
- name: 'Check documentation'
48+
run: make -C Doc/ check
49+
- name: 'Build HTML documentation'
50+
run: make -C Doc/ SPHINXOPTS="-q" SPHINXERRORHANDLING="-W --keep-going" html
51+
- name: 'Upload'
52+
uses: actions/upload-artifact@v3
53+
with:
54+
name: doc-html
55+
path: Doc/build/html
56+
57+
# Run "doctest" on HEAD as new syntax doesn't exist in the latest stable release
58+
doctest:
59+
name: 'Doctest'
60+
runs-on: ubuntu-latest
61+
steps:
62+
- uses: actions/checkout@v3
63+
- name: Register Sphinx problem matcher
64+
run: echo "::add-matcher::.github/problem-matchers/sphinx.json"
65+
- uses: actions/cache@v3
66+
with:
67+
path: ~/.cache/pip
68+
key: ubuntu-doc-${{ hashFiles('Doc/requirements.txt') }}
69+
restore-keys: |
70+
ubuntu-doc-
3571
- name: 'Install Dependencies'
3672
run: sudo ./.github/workflows/posix-deps-apt.sh && sudo apt-get install wamerican
3773
- name: 'Configure CPython'
@@ -40,17 +76,6 @@ jobs:
4076
run: make -j4
4177
- name: 'Install build dependencies'
4278
run: make -C Doc/ PYTHON=../python venv
43-
# Run "check doctest html" as 3 steps to get a more readable output
44-
# in the web UI
45-
- name: 'Check documentation'
46-
run: make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going" check
4779
# Use "xvfb-run" since some doctest tests open GUI windows
4880
- name: 'Run documentation doctest'
49-
run: xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going" doctest
50-
- name: 'Build HTML documentation'
51-
run: make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going" html
52-
- name: 'Upload'
53-
uses: actions/upload-artifact@v3
54-
with:
55-
name: doc-html
56-
path: Doc/build/html
81+
run: xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q" SPHINXERRORHANDLING="-W --keep-going" doctest

.github/workflows/new-bugs-announce-notifier.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
types:
66
- opened
77

8+
permissions:
9+
issues: read
10+
811
jobs:
912
notify-new-bugs-announce:
1013
runs-on: ubuntu-latest
@@ -39,7 +42,7 @@ jobs:
3942
assignee : issue.data.assignees.map(assignee => { return assignee.login }),
4043
body : issue.data.body
4144
};
42-
45+
4346
const data = {
4447
from: "CPython Issues <github@mg.python.org>",
4548
to: "new-bugs-announce@python.org",

.github/workflows/regen-abidump.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
set -ex
2+
3+
export DEBIAN_FRONTEND=noninteractive
4+
./.github/workflows/posix-deps-apt.sh
5+
apt-get install -yq abigail-tools python3
6+
export CFLAGS="-g3 -O0"
7+
./configure --enable-shared && make
8+
make regen-abidump
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Verify bundled pip and setuptools
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths:
7+
- 'Lib/ensurepip/_bundled/**'
8+
- '.github/workflows/verify-ensurepip-wheels.yml'
9+
- 'Tools/scripts/verify_ensurepip_wheels.py'
10+
pull_request:
11+
paths:
12+
- 'Lib/ensurepip/_bundled/**'
13+
- '.github/workflows/verify-ensurepip-wheels.yml'
14+
- 'Tools/scripts/verify_ensurepip_wheels.py'
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
verify:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v3
24+
- uses: actions/setup-python@v4
25+
with:
26+
python-version: '3'
27+
- name: Compare checksums of bundled pip and setuptools to ones published on PyPI
28+
run: ./Tools/scripts/verify_ensurepip_wheels.py

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,6 @@ Python/frozen_modules/MANIFEST
150150
# Ignore ./python binary on Unix but still look into ./Python/ directory.
151151
/python
152152
!/Python/
153+
154+
# main branch only: ABI files are not checked/maintained
155+
Doc/data/python*.abi

Doc/c-api/bytes.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ called with a non-bytes parameter.
5858
5959
.. % XXX: This should be exactly the same as the table in PyErr_Format.
6060
.. % One should just refer to the other.
61-
.. % XXX: The descriptions for %zd and %zu are wrong, but the truth is complicated
62-
.. % because not all compilers support the %z width modifier -- we fake it
63-
.. % when necessary via interpolating PY_FORMAT_SIZE_T.
6461
6562
.. tabularcolumns:: |l|l|L|
6663

Doc/c-api/call.rst

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,6 @@ Vectorcall Support API
144144
However, the function ``PyVectorcall_NARGS`` should be used to allow
145145
for future extensions.
146146
147-
This function is not part of the :ref:`limited API <stable>`.
148-
149147
.. versionadded:: 3.8
150148
151149
.. c:function:: vectorcallfunc PyVectorcall_Function(PyObject *op)
@@ -158,8 +156,6 @@ Vectorcall Support API
158156
This is mostly useful to check whether or not *op* supports vectorcall,
159157
which can be done by checking ``PyVectorcall_Function(op) != NULL``.
160158
161-
This function is not part of the :ref:`limited API <stable>`.
162-
163159
.. versionadded:: 3.8
164160
165161
.. c:function:: PyObject* PyVectorcall_Call(PyObject *callable, PyObject *tuple, PyObject *dict)
@@ -172,8 +168,6 @@ Vectorcall Support API
172168
It does not check the :const:`Py_TPFLAGS_HAVE_VECTORCALL` flag
173169
and it does not fall back to ``tp_call``.
174170
175-
This function is not part of the :ref:`limited API <stable>`.
176-
177171
.. versionadded:: 3.8
178172
179173
@@ -256,8 +250,6 @@ please see individual documentation for details.
256250
Return the result of the call on success, or raise an exception and return
257251
*NULL* on failure.
258252
259-
This function is not part of the :ref:`limited API <stable>`.
260-
261253
.. versionadded:: 3.9
262254
263255
@@ -343,8 +335,6 @@ please see individual documentation for details.
343335
Return the result of the call on success, or raise an exception and return
344336
*NULL* on failure.
345337
346-
This function is not part of the :ref:`limited API <stable>`.
347-
348338
.. versionadded:: 3.9
349339
350340
@@ -357,8 +347,6 @@ please see individual documentation for details.
357347
Return the result of the call on success, or raise an exception and return
358348
*NULL* on failure.
359349
360-
This function is not part of the :ref:`limited API <stable>`.
361-
362350
.. versionadded:: 3.9
363351
364352
@@ -372,8 +360,6 @@ please see individual documentation for details.
372360
Return the result of the call on success, or raise an exception and return
373361
*NULL* on failure.
374362
375-
This function is not part of the :ref:`limited API <stable>`.
376-
377363
.. versionadded:: 3.9
378364
379365
.. c:function:: PyObject* PyObject_VectorcallDict(PyObject *callable, PyObject *const *args, size_t nargsf, PyObject *kwdict)
@@ -388,8 +374,6 @@ please see individual documentation for details.
388374
already has a dictionary ready to use for the keyword arguments,
389375
but not a tuple for the positional arguments.
390376
391-
This function is not part of the :ref:`limited API <stable>`.
392-
393377
.. versionadded:: 3.9
394378
395379
.. c:function:: PyObject* PyObject_VectorcallMethod(PyObject *name, PyObject *const *args, size_t nargsf, PyObject *kwnames)
@@ -410,8 +394,6 @@ please see individual documentation for details.
410394
Return the result of the call on success, or raise an exception and return
411395
*NULL* on failure.
412396
413-
This function is not part of the :ref:`limited API <stable>`.
414-
415397
.. versionadded:: 3.9
416398
417399

0 commit comments

Comments
 (0)