Skip to content

Commit 3933501

Browse files
committed
Merge branch 'pythongh-90385/add-pathlib-path-whatsnew-section' of github.com:Ovsyanka83/cpython into pythongh-90385/add-pathlib-path-whatsnew-section
2 parents f35b55f + b4c9319 commit 3933501

File tree

1,383 files changed

+41106
-26034
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,383 files changed

+41106
-26034
lines changed

.gitattributes

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Lib/test/cjkencodings/* noeol
2828
Lib/test/coding20731.py noeol
2929
Lib/test/decimaltestdata/*.decTest noeol
3030
Lib/test/test_email/data/*.txt noeol
31-
Lib/test/test_importlib/data01/* noeol
32-
Lib/test/test_importlib/namespacedata01/* noeol
31+
Lib/test/test_importlib/resources/data01/* noeol
32+
Lib/test/test_importlib/resources/namespacedata01/* noeol
3333
Lib/test/xmltestdata/* noeol
3434

3535
# CRLF files
@@ -62,26 +62,27 @@ PCbuild/readme.txt dos
6262
#
6363
[attr]generated linguist-generated=true diff=generated
6464

65-
**/clinic/*.c.h generated
66-
*_db.h generated
67-
Doc/data/stable_abi.dat generated
68-
Doc/library/token-list.inc generated
69-
Include/internal/pycore_ast.h generated
70-
Include/internal/pycore_ast_state.h generated
71-
Include/internal/pycore_opcode.h generated
72-
Include/opcode.h generated
73-
Include/token.h generated
74-
Lib/keyword.py generated
75-
Lib/test/test_stable_abi_ctypes.py generated
76-
Lib/token.py generated
77-
Objects/typeslots.inc generated
78-
PC/python3dll.c generated
79-
Parser/parser.c generated
80-
Parser/token.c generated
81-
Programs/test_frozenmain.h generated
82-
Python/Python-ast.c generated
83-
Python/opcode_targets.h generated
84-
Python/stdlib_module_names.h generated
85-
Tools/peg_generator/pegen/grammar_parser.py generated
86-
aclocal.m4 generated
87-
configure generated
65+
**/clinic/*.c.h generated
66+
*_db.h generated
67+
Doc/data/stable_abi.dat generated
68+
Doc/library/token-list.inc generated
69+
Include/internal/pycore_ast.h generated
70+
Include/internal/pycore_ast_state.h generated
71+
Include/internal/pycore_opcode.h generated
72+
Include/internal/pycore_runtime_init_generated.h generated
73+
Include/opcode.h generated
74+
Include/token.h generated
75+
Lib/keyword.py generated
76+
Lib/test/test_stable_abi_ctypes.py generated
77+
Lib/token.py generated
78+
Objects/typeslots.inc generated
79+
PC/python3dll.c generated
80+
Parser/parser.c generated
81+
Parser/token.c generated
82+
Programs/test_frozenmain.h generated
83+
Python/Python-ast.c generated
84+
Python/opcode_targets.h generated
85+
Python/stdlib_module_names.h generated
86+
Tools/peg_generator/pegen/grammar_parser.py generated
87+
aclocal.m4 generated
88+
configure generated

.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/ISSUE_TEMPLATE/bug.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ labels: "type-bug"
1515
your problem has already been reported
1616
-->
1717

18-
**Bug report**
18+
# Bug report
1919

2020
A clear and concise description of what the bug is.
2121
Include a minimal, reproducible example (https://stackoverflow.com/help/minimal-reproducible-example), if possible.
2222

23-
**Your environment**
23+
# Your environment
2424

2525
<!-- Include as many relevant details as possible about the environment you experienced the bug in -->
2626

.github/ISSUE_TEMPLATE/crash.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ labels: "type-crash"
1313
For CPython, a "crash" is when Python itself fails, leading to a traceback in the C stack.
1414
-->
1515

16-
**Crash report**
16+
# Crash report
1717

1818
Tell us what happened, ideally including a minimal, reproducible example (https://stackoverflow.com/help/minimal-reproducible-example).
1919

20-
**Error messages**
20+
# Error messages
2121

2222
Enter any relevant error message caused by the crash, including a core dump if there is one.
2323

24-
**Your environment**
24+
# Your environment
2525

2626
<!-- Include as many relevant details as possible about the environment you experienced the bug in -->
2727

.github/ISSUE_TEMPLATE/documentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ about: Report a problem with the documentation
44
labels: "docs"
55
---
66

7-
**Documentation**
7+
# Documentation
88

99
(A clear and concise description of the issue.)

.github/ISSUE_TEMPLATE/feature.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ about: Submit a proposal for a new CPython feature or enhancement
44
labels: "type-feature"
55
---
66

7-
**Feature or enhancement**
7+
# Feature or enhancement
88

99
(A clear and concise description of your proposal.)
1010

11-
**Pitch**
11+
# Pitch
1212

1313
(Explain why this feature or enhancement should be implemented and how it would be used.
1414
Add examples, if applicable.)
1515

16-
**Previous discussion**
16+
# Previous discussion
1717

1818
<!--
1919
New features to Python should first be discussed elsewhere before creating issues on GitHub,

.github/workflows/build_msi.yml

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,48 +5,27 @@ on:
55
push:
66
branches:
77
- 'main'
8-
- '3.11'
9-
- '3.10'
10-
- '3.9'
11-
- '3.8'
12-
- '3.7'
8+
- '3.*'
139
paths:
1410
- 'Tools/msi/**'
1511
pull_request:
1612
branches:
1713
- 'main'
18-
- '3.11'
19-
- '3.10'
20-
- '3.9'
21-
- '3.8'
22-
- '3.7'
14+
- '3.*'
2315
paths:
2416
- 'Tools/msi/**'
2517

2618
permissions:
2719
contents: read
2820

2921
jobs:
30-
build_win32:
31-
name: 'Windows (x86) Installer'
22+
build:
23+
name: Windows Installer
3224
runs-on: windows-latest
25+
strategy:
26+
matrix:
27+
type: [x86, x64, arm64]
3328
steps:
3429
- uses: actions/checkout@v3
3530
- name: Build CPython installer
36-
run: .\Tools\msi\build.bat -x86
37-
38-
build_win_amd64:
39-
name: 'Windows (x64) Installer'
40-
runs-on: windows-latest
41-
steps:
42-
- uses: actions/checkout@v3
43-
- name: Build CPython installer
44-
run: .\Tools\msi\build.bat -x64
45-
46-
build_win_arm64:
47-
name: 'Windows (ARM64) Installer'
48-
runs-on: windows-latest
49-
steps:
50-
- uses: actions/checkout@v3
51-
- name: Build CPython installer
52-
run: .\Tools\msi\build.bat -arm64
31+
run: .\Tools\msi\build.bat -${{ matrix.type }}

.github/workflows/doc.yml

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ on:
2323
paths:
2424
- 'Doc/**'
2525
- 'Misc/**'
26+
- '.github/workflows/doc.yml'
2627

2728
permissions:
2829
contents: read
@@ -35,6 +36,38 @@ jobs:
3536
- uses: actions/checkout@v3
3637
- name: Register Sphinx problem matcher
3738
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-
3871
- name: 'Install Dependencies'
3972
run: sudo ./.github/workflows/posix-deps-apt.sh && sudo apt-get install wamerican
4073
- name: 'Configure CPython'
@@ -43,17 +76,6 @@ jobs:
4376
run: make -j4
4477
- name: 'Install build dependencies'
4578
run: make -C Doc/ PYTHON=../python venv
46-
# Run "check doctest html" as 3 steps to get a more readable output
47-
# in the web UI
48-
- name: 'Check documentation'
49-
run: make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going" check
5079
# Use "xvfb-run" since some doctest tests open GUI windows
5180
- name: 'Run documentation doctest'
52-
run: xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going" doctest
53-
- name: 'Build HTML documentation'
54-
run: make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going" html
55-
- name: 'Upload'
56-
uses: actions/upload-artifact@v3
57-
with:
58-
name: doc-html
59-
path: Doc/build/html
81+
run: xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q" SPHINXERRORHANDLING="-W --keep-going" doctest

.github/workflows/project-updater.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Update GH projects
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
- labeled
8+
9+
jobs:
10+
add-to-project:
11+
name: Add to the Release and Deferred Blocker project
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/[email protected]
15+
with:
16+
project-url: https://github.com/orgs/python/projects/2
17+
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
18+
labeled: release-blocker, deferred-blocker
19+
label-operator: OR

.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

0 commit comments

Comments
 (0)