Skip to content

Commit db87f65

Browse files
authored
Merge branch 'master' into fix-syncmanager-40307
2 parents e703c5b + 5241e18 commit db87f65

1,536 files changed

Lines changed: 170719 additions & 46714 deletions

File tree

Some content is hidden

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

.azure-pipelines/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
variables:
6262
testRunTitle: '$(build.sourceBranchName)-linux'
6363
testRunPlatform: linux
64-
openssl_version: 1.1.1d
64+
openssl_version: 1.1.1g
6565

6666
steps:
6767
- template: ./posix-steps.yml
@@ -118,7 +118,7 @@ jobs:
118118
variables:
119119
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
120120
testRunPlatform: linux-coverage
121-
openssl_version: 1.1.1d
121+
openssl_version: 1.1.1g
122122

123123
steps:
124124
- template: ./posix-steps.yml

.azure-pipelines/pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
variables:
6262
testRunTitle: '$(system.pullRequest.TargetBranch)-linux'
6363
testRunPlatform: linux
64-
openssl_version: 1.1.1d
64+
openssl_version: 1.1.1g
6565

6666
steps:
6767
- template: ./posix-steps.yml
@@ -118,7 +118,7 @@ jobs:
118118
variables:
119119
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
120120
testRunPlatform: linux-coverage
121-
openssl_version: 1.1.1d
121+
openssl_version: 1.1.1g
122122

123123
steps:
124124
- template: ./posix-steps.yml

.gitattributes

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ PC/readme.txt text eol=crlf
4141

4242
# Generated files
4343
# https://github.com/github/linguist#generated-code
44-
Include/graminit.h linguist-generated=true
45-
Python/graminit.h linguist-generated=true
4644
Modules/clinic/*.h linguist-generated=true
4745
Objects/clinic/*.h linguist-generated=true
4846
PC/clinic/*.h linguist-generated=true

.github/CODEOWNERS

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ Include/pytime.h @pganssle @abalkin
7272
/Modules/gcmodule.c @pablogsal
7373
/Doc/library/gc.rst @pablogsal
7474

75-
# Parser/Pgen
76-
/Parser/pgen/ @pablogsal
75+
# Parser
76+
/Parser/ @pablogsal @lysnikolaou
77+
/Tools/peg_generator/ @pablogsal @lysnikolaou
78+
/Lib/test/test_peg_generator/ @pablogsal @lysnikolaou
7779

7880
# SQLite 3
7981
**/*sqlite* @berkerpeksag

.github/CONTRIBUTING.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ Build Status
88

99
+ `Stable buildbots <http://buildbot.python.org/3.x.stable/>`_
1010

11-
- 3.7
11+
- 3.9
1212

13-
+ `Stable buildbots <http://buildbot.python.org/3.7.stable/>`_
13+
+ `Stable buildbots <http://buildbot.python.org/3.9.stable/>`_
1414

15-
- 3.6
15+
- 3.8
1616

17-
+ `Stable buildbots <http://buildbot.python.org/3.6.stable/>`_
17+
+ `Stable buildbots <http://buildbot.python.org/3.8.stable/>`_
1818

19-
- 2.7
19+
- 3.7
2020

21-
+ `Stable buildbots <http://buildbot.python.org/2.7.stable/>`_
21+
+ `Stable buildbots <http://buildbot.python.org/3.7.stable/>`_
2222

2323

2424
Thank You

.github/problem-matchers/gcc.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"__comment": "Taken from vscode-cpptools's Extension/package.json gcc rule",
3+
"problemMatcher": [
4+
{
5+
"owner": "gcc-problem-matcher",
6+
"pattern": [
7+
{
8+
"regexp": "^(.*):(\\d+):(\\d+):\\s+(?:fatal\\s+)?(warning|error):\\s+(.*)$",
9+
"file": 1,
10+
"line": 2,
11+
"column": 3,
12+
"severity": 4,
13+
"message": 5
14+
}
15+
]
16+
}
17+
]
18+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "sphinx-problem-matcher",
5+
"pattern": [
6+
{
7+
"regexp": "^(.*):(\\d+):\\s+(\\w*):\\s+(.*)$",
8+
"file": 1,
9+
"line": 2,
10+
"severity": 3,
11+
"message": 4
12+
}
13+
]
14+
},
15+
{
16+
"owner": "sphinx-problem-matcher-loose",
17+
"pattern": [
18+
{
19+
"_comment": "A bit of a looser pattern, doesn't look for line numbers, just looks for file names relying on them to start with / and end with .rst",
20+
"regexp": "(\/.*\\.rst):\\s+(\\w*):\\s+(.*)$",
21+
"file": 1,
22+
"severity": 2,
23+
"message": 3
24+
}
25+
]
26+
},
27+
{
28+
"owner": "sphinx-problem-matcher-loose-no-severity",
29+
"pattern": [
30+
{
31+
"_comment": "Looks for file names ending with .rst and line numbers but without severity",
32+
"regexp": "^(.*\\.rst):(\\d+):(.*)$",
33+
"file": 1,
34+
"line": 2,
35+
"message": 3
36+
}
37+
]
38+
}
39+
]
40+
}

.github/workflows/build.yml

Lines changed: 36 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,46 @@
11
name: Tests
22

3+
# bpo-40548: "paths-ignore" is not used to skip documentation-only PRs, because
4+
# it prevents to mark a job as mandatory. A PR cannot be merged if a job is
5+
# mandatory but not scheduled because of "paths-ignore".
36
on:
47
push:
58
branches:
69
- master
10+
- 3.9
711
- 3.8
812
- 3.7
9-
paths-ignore:
10-
- 'Doc/**'
11-
- 'Misc/**'
12-
- '**/*.md'
13-
- '**/*.rst'
1413
pull_request:
1514
branches:
1615
- master
16+
- 3.9
1717
- 3.8
1818
- 3.7
19-
paths-ignore:
20-
- 'Doc/**'
21-
- 'Misc/**'
22-
- '**/*.md'
23-
- '**/*.rst'
2419

2520
jobs:
21+
check_source:
22+
name: 'Check for source changes'
23+
runs-on: ubuntu-latest
24+
outputs:
25+
run_tests: ${{ steps.check.outputs.run_tests }}
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: Check for source changes
29+
id: check
30+
run: |
31+
if [ -z "GITHUB_BASE_REF" ]; then
32+
echo '::set-output name=run_tests::true'
33+
else
34+
git fetch origin $GITHUB_BASE_REF --depth=1
35+
git diff --name-only origin/$GITHUB_BASE_REF... | grep -qvE '(\.rst$|^Doc|^Misc)' && echo '::set-output name=run_tests::true' || true
36+
fi
2637
build_win32:
2738
name: 'Windows (x86)'
2839
runs-on: windows-latest
40+
needs: check_source
41+
if: needs.check_source.outputs.run_tests == 'true'
2942
steps:
30-
- uses: actions/checkout@v1
43+
- uses: actions/checkout@v2
3144
- name: Build CPython
3245
run: .\PCbuild\build.bat -e -p Win32
3346
- name: Display build info
@@ -38,8 +51,10 @@ jobs:
3851
build_win_amd64:
3952
name: 'Windows (x64)'
4053
runs-on: windows-latest
54+
needs: check_source
55+
if: needs.check_source.outputs.run_tests == 'true'
4156
steps:
42-
- uses: actions/checkout@v1
57+
- uses: actions/checkout@v2
4358
- name: Build CPython
4459
run: .\PCbuild\build.bat -e -p x64
4560
- name: Display build info
@@ -50,8 +65,10 @@ jobs:
5065
build_macos:
5166
name: 'macOS'
5267
runs-on: macos-latest
68+
needs: check_source
69+
if: needs.check_source.outputs.run_tests == 'true'
5370
steps:
54-
- uses: actions/checkout@v1
71+
- uses: actions/checkout@v2
5572
- name: Configure CPython
5673
run: ./configure --with-pydebug --with-openssl=/usr/local/opt/openssl --prefix=/opt/python-dev
5774
- name: Build CPython
@@ -64,10 +81,14 @@ jobs:
6481
build_ubuntu:
6582
name: 'Ubuntu'
6683
runs-on: ubuntu-latest
84+
needs: check_source
85+
if: needs.check_source.outputs.run_tests == 'true'
6786
env:
68-
OPENSSL_VER: 1.1.1d
87+
OPENSSL_VER: 1.1.1f
6988
steps:
70-
- uses: actions/checkout@v1
89+
- uses: actions/checkout@v2
90+
- name: Register gcc problem matcher
91+
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
7192
- name: Install Dependencies
7293
run: sudo ./.github/workflows/posix-deps-apt.sh
7394
- name: 'Restore OpenSSL build'

.github/workflows/build_msi.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ on:
44
push:
55
branches:
66
- master
7+
- 3.9
78
- 3.8
89
- 3.7
910
paths:
1011
- 'Tools/msi/**'
1112
pull_request:
1213
branches:
1314
- master
15+
- 3.9
1416
- 3.8
1517
- 3.7
1618
paths:
@@ -21,14 +23,14 @@ jobs:
2123
name: 'Windows (x86) Installer'
2224
runs-on: windows-latest
2325
steps:
24-
- uses: actions/checkout@v1
26+
- uses: actions/checkout@v2
2527
- name: Build CPython installer
2628
run: .\Tools\msi\build.bat -x86
2729

2830
build_win_amd64:
2931
name: 'Windows (x64) Installer'
3032
runs-on: windows-latest
3133
steps:
32-
- uses: actions/checkout@v1
34+
- uses: actions/checkout@v2
3335
- name: Build CPython installer
3436
run: .\Tools\msi\build.bat -x64

.github/workflows/coverage.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- master
7+
- 3.9
78
- 3.8
89
- 3.7
910
paths-ignore:
@@ -12,6 +13,7 @@ on:
1213
#pull_request:
1314
# branches:
1415
# - master
16+
# - 3.9
1517
# - 3.8
1618
# - 3.7
1719
# paths-ignore:
@@ -23,9 +25,9 @@ jobs:
2325
name: 'Ubuntu (Coverage)'
2426
runs-on: ubuntu-latest
2527
env:
26-
OPENSSL_VER: 1.1.1d
28+
OPENSSL_VER: 1.1.1f
2729
steps:
28-
- uses: actions/checkout@v1
30+
- uses: actions/checkout@v2
2931
- name: Install Dependencies
3032
run: sudo ./.github/workflows/posix-deps-apt.sh
3133
- name: 'Restore OpenSSL build'
@@ -48,7 +50,9 @@ jobs:
4850
./python -m venv .venv
4951
source ./.venv/bin/activate
5052
python -m pip install -U coverage
53+
python -m pip install -r Misc/requirements-test.txt
5154
python -m test.pythoninfo
55+
export PYTHONPATH=`find .venv -name fullcoverage`
5256
- name: 'Tests with coverage'
5357
run: >
5458
source ./.venv/bin/activate &&
@@ -64,6 +68,7 @@ jobs:
6468
|| true
6569
- name: 'Publish code coverage results'
6670
run: |
71+
export PYTHONPATH=
6772
source ./.venv/bin/activate
6873
bash <(curl -s https://codecov.io/bash) -y .github/codecov.yml
6974
env:
@@ -73,7 +78,7 @@ jobs:
7378
name: 'Ubuntu (C Coverage)'
7479
runs-on: ubuntu-latest
7580
steps:
76-
- uses: actions/checkout@v1
81+
- uses: actions/checkout@v2
7782
- name: Install Dependencies
7883
run: sudo ./.github/workflows/posix-deps-apt.sh
7984
- name: Configure CPython

0 commit comments

Comments
 (0)