Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bbd2da9

Browse files
authored
Merge pull request #1 from python/master
Update to 15 March
2 parents 81a5fc3 + 448801d commit bbd2da9

File tree

1,947 files changed

+176476
-110746
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,947 files changed

+176476
-110746
lines changed

.azure-pipelines/ci.yml

Lines changed: 8 additions & 43 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.1f
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.1f
86+
openssl_version: 1.1.1g
12287

12388
steps:
12489
- template: ./posix-steps.yml
@@ -139,7 +104,7 @@ jobs:
139104
matrix:
140105
win32:
141106
arch: win32
142-
buildOpt:
107+
buildOpt: '-p Win32'
143108
testRunTitle: '$(Build.SourceBranchName)-win32'
144109
testRunPlatform: win32
145110
win64:

.azure-pipelines/docs-steps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ steps:
1616
displayName: 'Install build dependencies'
1717

1818
- ${{ if ne(parameters.latex, 'true') }}:
19-
- script: make check suspicious html PYTHON=python
19+
- script: make check html PYTHON=python
2020
workingDirectory: '$(build.sourcesDirectory)/Doc'
2121
displayName: 'Build documentation'
2222

@@ -31,7 +31,7 @@ steps:
3131
- ${{ if eq(parameters.upload, 'true') }}:
3232
- task: PublishBuildArtifacts@1
3333
displayName: 'Publish docs'
34-
34+
3535
inputs:
3636
PathToPublish: '$(build.sourcesDirectory)/Doc/build'
3737
ArtifactName: docs

.azure-pipelines/pr.yml

Lines changed: 8 additions & 43 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.1f
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.1f
86+
openssl_version: 1.1.1g
12287

12388
steps:
12489
- template: ./posix-steps.yml
@@ -139,7 +104,7 @@ jobs:
139104
matrix:
140105
win32:
141106
arch: win32
142-
buildOpt:
107+
buildOpt: '-p Win32'
143108
testRunTitle: '$(System.PullRequest.TargetBranch)-win32'
144109
testRunPlatform: win32
145110
win64:

.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: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,19 +105,26 @@ 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:
114120
artifactName: unsigned_msix
115121
downloadPath: $(Build.BinariesDirectory)
116122

123+
# MSIX must be signed and timestamped simultaneously
117124
- powershell: |
118125
$failed = $true
119126
foreach ($retry in 1..3) {
120-
signtool sign /a /n "$(SigningCertificate)" /fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d "$(SigningDescription)" (gi *.msix)
127+
signtool sign /a /n "$(SigningCertificate)" /fd sha256 /tr http://timestamp.digicert.com/ /td sha256 /d "$(SigningDescription)" (gi *.msix)
121128
if ($?) {
122129
$failed = $false
123130
break

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
condition: and(succeeded(), eq(variables['DoNuget'], 'true'))
55

66
pool:
7-
vmImage: windows-2019
7+
name: 'Windows Release'
88

99
workspace:
1010
clean: all
@@ -36,6 +36,14 @@ jobs:
3636
nuget pack "$(Build.BinariesDirectory)\layout\python.nuspec" -OutputDirectory $(Build.ArtifactStagingDirectory) -NoPackageAnalysis -NonInteractive
3737
displayName: 'Create nuget package'
3838
39+
- powershell: |
40+
gci *.nupkg | %{
41+
nuget sign "$_" -CertificateSubjectName "$(SigningCertificate)" -Timestamper http://timestamp.digicert.com/ -Overwrite
42+
}
43+
displayName: 'Sign nuget package'
44+
workingDirectory: $(Build.ArtifactStagingDirectory)
45+
condition: and(succeeded(), variables['SigningCertificate'])
46+
3947
- task: PublishBuildArtifacts@1
4048
displayName: 'Publish Artifact: nuget'
4149
inputs:

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

Lines changed: 7 additions & 1 deletion
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'
@@ -51,7 +57,7 @@ jobs:
5157
$files = (gi ${{ parameters.Include }} -Exclude ${{ parameters.Exclude }})
5258
$failed = $true
5359
foreach ($retry in 1..10) {
54-
signtool timestamp /t http://timestamp.verisign.com/scripts/timestamp.dll $files
60+
signtool timestamp /tr http://timestamp.digicert.com/ /td sha256 $files
5561
if ($?) {
5662
$failed = $false
5763
break

.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: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,17 @@
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
22+
Python/ast_opt.c @isidentical
1623

1724
# Hashing
1825
**/*hashlib* @python/crypto-team @tiran
@@ -72,10 +79,17 @@ Include/pytime.h @pganssle @abalkin
7279
/Modules/gcmodule.c @pablogsal
7380
/Doc/library/gc.rst @pablogsal
7481

75-
# Parser/Pgen
76-
/Parser/pgen/ @pablogsal
77-
/Parser/pegen/ @pablogsal
78-
/Tools/peg_generator/ @pablogsal
82+
# Parser
83+
/Parser/ @pablogsal @lysnikolaou
84+
/Tools/peg_generator/ @pablogsal @lysnikolaou
85+
/Lib/test/test_peg_generator/ @pablogsal @lysnikolaou
86+
/Grammar/python.gram @pablogsal @lysnikolaou
87+
88+
# AST
89+
Python/ast.c @isidentical
90+
Parser/asdl.py @isidentical
91+
Parser/asdl_c.py @isidentical
92+
Lib/ast.py @isidentical
7993

8094
# SQLite 3
8195
**/*sqlite* @berkerpeksag

0 commit comments

Comments
 (0)