Skip to content

Commit fb9382e

Browse files
Merge branch 'master' into randrange-index
2 parents ccff52e + 02cdfc9 commit fb9382e

File tree

1,902 files changed

+207641
-70479
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,902 files changed

+207641
-70479
lines changed

.azure-pipelines/ci.yml

Lines changed: 7 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
variables:
2-
manylinux: false
32
coverage: false
43

5-
resources:
6-
containers:
7-
- container: manylinux1
8-
image: pyca/cryptography-manylinux1:x86_64
4+
trigger: ['master', '3.9', '3.8', '3.7']
95

106
jobs:
117
- job: Prebuild
128
displayName: Pre-build checks
139

1410
pool:
15-
vmImage: ubuntu-16.04
11+
vmImage: ubuntu-18.04
1612

1713
steps:
1814
- template: ./prebuild-checks.yml
@@ -24,7 +20,7 @@ jobs:
2420
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['docs.run'], 'true'))
2521

2622
pool:
27-
vmImage: ubuntu-16.04
23+
vmImage: ubuntu-18.04
2824

2925
steps:
3026
- template: ./docs-steps.yml
@@ -56,50 +52,19 @@ jobs:
5652
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
5753

5854
pool:
59-
vmImage: ubuntu-16.04
55+
vmImage: ubuntu-18.04
6056

6157
variables:
6258
testRunTitle: '$(build.sourceBranchName)-linux'
6359
testRunPlatform: linux
64-
openssl_version: 1.1.1d
60+
openssl_version: 1.1.1g
6561

6662
steps:
6763
- template: ./posix-steps.yml
6864
parameters:
6965
dependencies: apt
7066

7167

72-
- job: ManyLinux1_CI_Tests
73-
displayName: ManyLinux1 CI Tests
74-
dependsOn: Prebuild
75-
condition: |
76-
and(
77-
and(
78-
succeeded(),
79-
eq(variables['manylinux'], 'true')
80-
),
81-
eq(dependencies.Prebuild.outputs['tests.run'], 'true')
82-
)
83-
84-
pool:
85-
vmImage: ubuntu-16.04
86-
87-
container: manylinux1
88-
89-
variables:
90-
testRunTitle: '$(build.sourceBranchName)-manylinux1'
91-
testRunPlatform: manylinux1
92-
openssl_version: ''
93-
94-
steps:
95-
- template: ./posix-steps.yml
96-
parameters:
97-
dependencies: yum
98-
sudo_dependencies: ''
99-
xvfb: false
100-
patchcheck: false
101-
102-
10368
- job: Ubuntu_Coverage_CI_Tests
10469
displayName: Ubuntu CI Tests (coverage)
10570
dependsOn: Prebuild
@@ -113,12 +78,12 @@ jobs:
11378
)
11479
11580
pool:
116-
vmImage: ubuntu-16.04
81+
vmImage: ubuntu-18.04
11782

11883
variables:
11984
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
12085
testRunPlatform: linux-coverage
121-
openssl_version: 1.1.1d
86+
openssl_version: 1.1.1g
12287

12388
steps:
12489
- template: ./posix-steps.yml

.azure-pipelines/pr.yml

Lines changed: 7 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
variables:
2-
manylinux: false
32
coverage: false
43

5-
resources:
6-
containers:
7-
- container: manylinux1
8-
image: pyca/cryptography-manylinux1:x86_64
4+
pr: ['master', '3.9', '3.8', '3.7']
95

106
jobs:
117
- job: Prebuild
128
displayName: Pre-build checks
139

1410
pool:
15-
vmImage: ubuntu-16.04
11+
vmImage: ubuntu-18.04
1612

1713
steps:
1814
- template: ./prebuild-checks.yml
@@ -24,7 +20,7 @@ jobs:
2420
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['docs.run'], 'true'))
2521

2622
pool:
27-
vmImage: ubuntu-16.04
23+
vmImage: ubuntu-18.04
2824

2925
steps:
3026
- template: ./docs-steps.yml
@@ -56,50 +52,19 @@ jobs:
5652
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
5753

5854
pool:
59-
vmImage: ubuntu-16.04
55+
vmImage: ubuntu-18.04
6056

6157
variables:
6258
testRunTitle: '$(system.pullRequest.TargetBranch)-linux'
6359
testRunPlatform: linux
64-
openssl_version: 1.1.1d
60+
openssl_version: 1.1.1g
6561

6662
steps:
6763
- template: ./posix-steps.yml
6864
parameters:
6965
dependencies: apt
7066

7167

72-
- job: ManyLinux1_PR_Tests
73-
displayName: ManyLinux1 PR Tests
74-
dependsOn: Prebuild
75-
condition: |
76-
and(
77-
and(
78-
succeeded(),
79-
eq(variables['manylinux'], 'true')
80-
),
81-
eq(dependencies.Prebuild.outputs['tests.run'], 'true')
82-
)
83-
84-
pool:
85-
vmImage: ubuntu-16.04
86-
87-
container: manylinux1
88-
89-
variables:
90-
testRunTitle: '$(system.pullRequest.TargetBranch)-manylinux1'
91-
testRunPlatform: manylinux1
92-
openssl_version: ''
93-
94-
steps:
95-
- template: ./posix-steps.yml
96-
parameters:
97-
dependencies: yum
98-
sudo_dependencies: ''
99-
xvfb: false
100-
patchcheck: false
101-
102-
10368
- job: Ubuntu_Coverage_PR_Tests
10469
displayName: Ubuntu PR Tests (coverage)
10570
dependsOn: Prebuild
@@ -113,12 +78,12 @@ jobs:
11378
)
11479
11580
pool:
116-
vmImage: ubuntu-16.04
81+
vmImage: ubuntu-18.04
11782

11883
variables:
11984
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
12085
testRunPlatform: linux-coverage
121-
openssl_version: 1.1.1d
86+
openssl_version: 1.1.1g
12287

12388
steps:
12489
- template: ./posix-steps.yml

.azure-pipelines/windows-release/msi-steps.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
steps:
22
- template: ./checkout.yml
33

4+
- powershell: |
5+
$d = (.\PCbuild\build.bat -V) | %{ if($_ -match '\s+(\w+):\s*(.+)\s*$') { @{$Matches[1] = $Matches[2];} }};
6+
Write-Host "##vso[task.setvariable variable=SigningDescription]Python $($d.PythonVersion)"
7+
displayName: 'Update signing description'
8+
condition: and(succeeded(), not(variables['SigningDescription']))
9+
410
- task: DownloadPipelineArtifact@1
511
displayName: 'Download artifact: doc'
612
inputs:

.azure-pipelines/windows-release/stage-pack-msix.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,15 @@ jobs:
105105
clean: all
106106

107107
steps:
108-
- checkout: none
108+
- template: ./checkout.yml
109109
- template: ./find-sdk.yml
110110

111+
- powershell: |
112+
$d = (.\PCbuild\build.bat -V) | %{ if($_ -match '\s+(\w+):\s*(.+)\s*$') { @{$Matches[1] = $Matches[2];} }};
113+
Write-Host "##vso[task.setvariable variable=SigningDescription]Python $($d.PythonVersion)"
114+
displayName: 'Update signing description'
115+
condition: and(succeeded(), not(variables['SigningDescription']))
116+
111117
- task: DownloadBuildArtifacts@0
112118
displayName: 'Download Artifact: unsigned_msix'
113119
inputs:

.azure-pipelines/windows-release/stage-sign.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ jobs:
2626
- template: ./checkout.yml
2727
- template: ./find-sdk.yml
2828

29+
- powershell: |
30+
$d = (.\PCbuild\build.bat -V) | %{ if($_ -match '\s+(\w+):\s*(.+)\s*$') { @{$Matches[1] = $Matches[2];} }};
31+
Write-Host "##vso[task.setvariable variable=SigningDescription]Python $($d.PythonVersion)"
32+
displayName: 'Update signing description'
33+
condition: and(succeeded(), not(variables['SigningDescription']))
34+
2935
- powershell: |
3036
Write-Host "##vso[build.addbuildtag]signed"
3137
displayName: 'Add build tags'

.gitattributes

Lines changed: 10 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
@@ -59,3 +57,13 @@ Doc/library/token-list.inc linguist-generated=true
5957
Include/token.h linguist-generated=true
6058
Lib/token.py linguist-generated=true
6159
Parser/token.c linguist-generated=true
60+
61+
# Language aware diff headers
62+
# https://tekin.co.uk/2020/10/better-git-diff-output-for-ruby-python-elixir-and-more
63+
# https://gist.github.com/tekin/12500956bd56784728e490d8cef9cb81
64+
*.c diff=cpp
65+
*.h diff=cpp
66+
*.css diff=css
67+
*.html diff=html
68+
*.py diff=python
69+
*.md diff=markdown

.github/CODEOWNERS

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@
99

1010
# Core
1111
**/*context* @1st1
12-
**/*genobject* @1st1
12+
**/*genobject* @1st1 @markshannon
1313
**/*hamt* @1st1
1414
Objects/set* @rhettinger
15-
Objects/dict* @methane
15+
Objects/dict* @methane @markshannon
16+
Objects/type* @markshannon
17+
Objects/codeobject.c @markshannon
18+
Objects/frameobject.c @markshannon
19+
Objects/call.c @markshannon
20+
Python/ceval.c @markshannon
21+
Python/compile.c @markshannon
1622

1723
# Hashing
1824
**/*hashlib* @python/crypto-team @tiran
@@ -72,8 +78,11 @@ Include/pytime.h @pganssle @abalkin
7278
/Modules/gcmodule.c @pablogsal
7379
/Doc/library/gc.rst @pablogsal
7480

75-
# Parser/Pgen
76-
/Parser/pgen/ @pablogsal
81+
# Parser
82+
/Parser/ @pablogsal @lysnikolaou
83+
/Tools/peg_generator/ @pablogsal @lysnikolaou
84+
/Lib/test/test_peg_generator/ @pablogsal @lysnikolaou
85+
/Grammar/python.gram @pablogsal @lysnikolaou
7786

7887
# SQLite 3
7988
**/*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/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
custom: https://www.python.org/psf/donations/python-dev/
2+
github: [python]

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
7+
labels:
8+
- "skip issue"
9+
- "skip news"

.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+
}

.github/problem-matchers/sphinx.json

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+
}

0 commit comments

Comments
 (0)