Skip to content

Commit ca85605

Browse files
Merge branch 'master' into int-implicit-lossless
2 parents dba44f0 + 2b0e654 commit ca85605

File tree

1,952 files changed

+258145
-81766
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,952 files changed

+258145
-81766
lines changed

.azure-pipelines/ci.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,16 @@ jobs:
3535
- job: macOS_CI_Tests
3636
displayName: macOS CI Tests
3737
dependsOn: Prebuild
38-
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
38+
#condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
39+
# bpo-39837: macOS tests on Azure Pipelines are disabled
40+
condition: false
3941

4042
variables:
4143
testRunTitle: '$(build.sourceBranchName)-macos'
4244
testRunPlatform: macos
4345

4446
pool:
45-
vmImage: xcode9-macos10.13
47+
vmImage: macos-10.14
4648

4749
steps:
4850
- template: ./macos-steps.yml
@@ -59,7 +61,7 @@ jobs:
5961
variables:
6062
testRunTitle: '$(build.sourceBranchName)-linux'
6163
testRunPlatform: linux
62-
openssl_version: 1.1.1c
64+
openssl_version: 1.1.1f
6365

6466
steps:
6567
- template: ./posix-steps.yml
@@ -116,7 +118,7 @@ jobs:
116118
variables:
117119
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
118120
testRunPlatform: linux-coverage
119-
openssl_version: 1.1.1c
121+
openssl_version: 1.1.1f
120122

121123
steps:
122124
- template: ./posix-steps.yml
@@ -131,7 +133,7 @@ jobs:
131133
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
132134

133135
pool:
134-
vmImage: vs2017-win2016
136+
vmImage: windows-2019
135137

136138
strategy:
137139
matrix:
@@ -145,7 +147,7 @@ jobs:
145147
buildOpt: '-p x64'
146148
testRunTitle: '$(Build.SourceBranchName)-win64'
147149
testRunPlatform: win64
148-
maxParallel: 2
150+
maxParallel: 4
149151

150152
steps:
151153
- template: ./windows-steps.yml

.azure-pipelines/docs-steps.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ steps:
1212
inputs:
1313
versionSpec: '>=3.6'
1414

15-
- script: python -m pip install sphinx==2.0.1 blurb python-docs-theme
15+
- script: python -m pip install sphinx==2.2.0 blurb python-docs-theme
1616
displayName: 'Install build dependencies'
1717

1818
- ${{ if ne(parameters.latex, 'true') }}:
@@ -21,7 +21,7 @@ steps:
2121
displayName: 'Build documentation'
2222

2323
- ${{ if eq(parameters.latex, 'true') }}:
24-
- script: sudo apt-get update && sudo apt-get install -qy --force-yes texlive-full
24+
- script: sudo apt-get update && sudo apt-get install -qy --force-yes texlive-full
2525
displayName: 'Install LaTeX'
2626

2727
- script: make dist PYTHON=python SPHINXBUILD='python -m sphinx' BLURB='python -m blurb'

.azure-pipelines/macos-steps.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ steps:
66
- script: ./configure --with-pydebug --with-openssl=/usr/local/opt/openssl --prefix=/opt/python-azdev
77
displayName: 'Configure CPython (debug)'
88

9-
- script: make -s -j4
9+
- script: make -j4
1010
displayName: 'Build CPython'
1111

1212
- script: make pythoninfo
1313
displayName: 'Display build info'
1414

1515
- script: make buildbottest TESTOPTS="-j4 -uall,-cpu --junit-xml=$(build.binariesDirectory)/test-results.xml"
1616
displayName: 'Tests'
17+
continueOnError: true
18+
timeoutInMinutes: 30
1719

1820
- task: PublishTestResults@2
1921
displayName: 'Publish Test Results'

.azure-pipelines/posix-steps.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ steps:
2020
- script: ./configure --with-pydebug
2121
displayName: 'Configure CPython (debug)'
2222

23-
- script: make -s -j4
23+
- script: make -j4
2424
displayName: 'Build CPython'
2525

2626
- ${{ if eq(parameters.coverage, 'true') }}:
@@ -49,7 +49,7 @@ steps:
4949
- script: ./venv/bin/python -m coverage xml
5050
displayName: 'Generate coverage.xml'
5151

52-
- script: source ./venv/bin/activate && bash <(curl -s https://codecov.io/bash)
52+
- script: source ./venv/bin/activate && bash <(curl -s https://codecov.io/bash) -y .github/codecov.yml
5353
displayName: 'Publish code coverage results'
5454

5555

.azure-pipelines/pr.yml

+11-6
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,16 @@ jobs:
3333
- job: macOS_PR_Tests
3434
displayName: macOS PR Tests
3535
dependsOn: Prebuild
36-
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
36+
#condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
37+
# bpo-39837: macOS tests on Azure Pipelines are disabled
38+
condition: false
3739

3840
variables:
3941
testRunTitle: '$(system.pullRequest.TargetBranch)-macos'
4042
testRunPlatform: macos
4143

4244
pool:
43-
vmImage: xcode9-macos10.13
45+
vmImage: macos-10.14
4446

4547
steps:
4648
- template: ./macos-steps.yml
@@ -59,7 +61,7 @@ jobs:
5961
variables:
6062
testRunTitle: '$(system.pullRequest.TargetBranch)-linux'
6163
testRunPlatform: linux
62-
openssl_version: 1.1.1c
64+
openssl_version: 1.1.1f
6365

6466
steps:
6567
- template: ./posix-steps.yml
@@ -116,7 +118,7 @@ jobs:
116118
variables:
117119
testRunTitle: '$(Build.SourceBranchName)-linux-coverage'
118120
testRunPlatform: linux-coverage
119-
openssl_version: 1.1.1c
121+
openssl_version: 1.1.1f
120122

121123
steps:
122124
- template: ./posix-steps.yml
@@ -131,7 +133,7 @@ jobs:
131133
condition: and(succeeded(), eq(dependencies.Prebuild.outputs['tests.run'], 'true'))
132134

133135
pool:
134-
vmImage: vs2017-win2016
136+
vmImage: windows-2019
135137

136138
strategy:
137139
matrix:
@@ -145,7 +147,10 @@ jobs:
145147
buildOpt: '-p x64'
146148
testRunTitle: '$(System.PullRequest.TargetBranch)-win64'
147149
testRunPlatform: win64
148-
maxParallel: 2
150+
winarm64:
151+
arch: arm64
152+
buildOpt: '-p arm64'
153+
maxParallel: 4
149154

150155
steps:
151156
- template: ./windows-steps.yml

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ steps:
4343

4444
- powershell: |
4545
$env:SigningCertificate = $null
46-
.\python.bat PC\layout -vv -t "$(Build.BinariesDirectory)\catalog" --catalog "${env:CAT}.cdf" --preset-default
46+
$(_HostPython) PC\layout -vv -b "$(Build.BinariesDirectory)\bin" -t "$(Build.BinariesDirectory)\catalog" --catalog "${env:CAT}.cdf" --preset-default --arch $(Arch)
4747
makecat "${env:CAT}.cdf"
4848
del "${env:CAT}.cdf"
4949
if (-not (Test-Path "${env:CAT}.cat")) {
@@ -52,6 +52,7 @@ steps:
5252
displayName: 'Generate catalog'
5353
env:
5454
CAT: $(Build.BinariesDirectory)\bin\$(Arch)\python
55+
PYTHON_HEXVERSION: $(VersionHex)
5556

5657
- task: PublishPipelineArtifact@0
5758
displayName: 'Publish binaries'

.azure-pipelines/windows-release/layout-command.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
steps:
2+
- task: DownloadPipelineArtifact@1
3+
displayName: 'Download artifact: bin_$(HostArch)'
4+
condition: and(succeeded(), variables['HostArch'])
5+
inputs:
6+
artifactName: bin_$(HostArch)
7+
targetPath: $(Build.BinariesDirectory)\bin_$(HostArch)
8+
29
- powershell: >
310
Write-Host (
411
'##vso[task.setvariable variable=LayoutCmd]&
5-
"{0}\bin\python.exe"
12+
"$(Python)"
613
"{1}\PC\layout"
714
-vv
815
--source "{1}"
916
--build "{0}\bin"
17+
--arch "$(Name)"
1018
--temp "{0}\layout-temp"
1119
--include-cat "{0}\bin\python.cat"
1220
--doc-build "{0}\doc"'

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

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ steps:
5454
- powershell: |
5555
copy $(Build.BinariesDirectory)\amd64\Activate.ps1 Lib\venv\scripts\common\Activate.ps1 -Force
5656
displayName: 'Copy signed files into sources'
57+
condition: and(succeeded(), variables['SigningCertificate'])
5758
5859
- script: |
5960
call Tools\msi\get_externals.bat

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

+26-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ jobs:
33
displayName: Docs build
44
pool:
55
name: 'Windows Release'
6-
#vmName: win2016-vs2017
6+
#vmImage: windows-2019
77

88
workspace:
99
clean: all
@@ -16,14 +16,16 @@ jobs:
1616
env:
1717
BUILDDIR: $(Build.BinariesDirectory)\Doc
1818

19-
#- powershell: iwr "https://www.python.org/ftp/python/3.7.3/python373.chm" -OutFile "$(Build.BinariesDirectory)\python390a0.chm"
20-
# displayName: 'Cheat at building CHM docs'
21-
2219
- script: Doc\make.bat htmlhelp
2320
displayName: 'Build CHM docs'
2421
env:
2522
BUILDDIR: $(Build.BinariesDirectory)\Doc
2623

24+
#- powershell: |
25+
# mkdir -Force "$(Build.BinariesDirectory)\Doc\htmlhelp"
26+
# iwr "https://www.python.org/ftp/python/3.8.0/python380.chm" -OutFile "$(Build.BinariesDirectory)\Doc\htmlhelp\python390a0.chm"
27+
# displayName: 'Cheat at building CHM docs'
28+
2729
- task: CopyFiles@2
2830
displayName: 'Assemble artifact: Doc'
2931
inputs:
@@ -43,7 +45,7 @@ jobs:
4345
displayName: Python build
4446

4547
pool:
46-
vmName: win2016-vs2017
48+
vmImage: windows-2019
4749

4850
workspace:
4951
clean: all
@@ -55,16 +57,31 @@ jobs:
5557
Arch: win32
5658
Platform: x86
5759
Configuration: Release
60+
_HostPython: .\python
5861
win32_d:
5962
Name: win32_d
6063
Arch: win32
6164
Platform: x86
6265
Configuration: Debug
66+
_HostPython: .\python
6367
amd64_d:
6468
Name: amd64_d
6569
Arch: amd64
6670
Platform: x64
6771
Configuration: Debug
72+
_HostPython: .\python
73+
arm64:
74+
Name: arm64
75+
Arch: arm64
76+
Platform: ARM64
77+
Configuration: Release
78+
_HostPython: python
79+
arm64_d:
80+
Name: arm64_d
81+
Arch: arm64
82+
Platform: ARM64
83+
Configuration: Debug
84+
_HostPython: python
6885

6986
steps:
7087
- template: ./build-steps.yml
@@ -74,7 +91,7 @@ jobs:
7491
condition: and(succeeded(), ne(variables['DoPGO'], 'true'))
7592

7693
pool:
77-
vmName: win2016-vs2017
94+
vmImage: windows-2019
7895

7996
workspace:
8097
clean: all
@@ -86,6 +103,7 @@ jobs:
86103
Arch: amd64
87104
Platform: x64
88105
Configuration: Release
106+
_HostPython: .\python
89107

90108
steps:
91109
- template: ./build-steps.yml
@@ -111,6 +129,7 @@ jobs:
111129
Arch: amd64
112130
Platform: x64
113131
Configuration: Release
132+
_HostPython: .\python
114133

115134
steps:
116135
- template: ./build-steps.yml
@@ -122,7 +141,7 @@ jobs:
122141
displayName: Publish Tcl/Tk Library
123142

124143
pool:
125-
vmName: windows-latest
144+
vmImage: windows-2019
126145

127146
workspace:
128147
clean: all

.azure-pipelines/windows-release/stage-layout-embed.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
condition: and(succeeded(), eq(variables['DoEmbed'], 'true'))
55

66
pool:
7-
vmName: win2016-vs2017
7+
vmImage: windows-2019
88

99
workspace:
1010
clean: all
@@ -19,6 +19,11 @@ jobs:
1919
Name: amd64
2020
Python: $(Build.BinariesDirectory)\bin\python.exe
2121
PYTHONHOME: $(Build.SourcesDirectory)
22+
arm64:
23+
Name: arm64
24+
HostArch: amd64
25+
Python: $(Build.BinariesDirectory)\bin_amd64\python.exe
26+
PYTHONHOME: $(Build.SourcesDirectory)
2227

2328
steps:
2429
- template: ./checkout.yml

.azure-pipelines/windows-release/stage-layout-full.yml

+14-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
condition: and(succeeded(), eq(variables['DoLayout'], 'true'))
55

66
pool:
7-
vmName: win2016-vs2017
7+
vmImage: windows-2019
88

99
workspace:
1010
clean: all
@@ -13,11 +13,18 @@ jobs:
1313
matrix:
1414
win32:
1515
Name: win32
16-
Python: $(Build.BinariesDirectory)\bin_$(Name)\python.exe
16+
Python: $(Build.BinariesDirectory)\bin\python.exe
1717
PYTHONHOME: $(Build.SourcesDirectory)
18+
TclLibrary: $(Build.BinariesDirectory)\tcltk_lib\tcl8
1819
amd64:
1920
Name: amd64
20-
Python: $(Build.BinariesDirectory)\bin_$(Name)\python.exe
21+
Python: $(Build.BinariesDirectory)\bin\python.exe
22+
PYTHONHOME: $(Build.SourcesDirectory)
23+
TclLibrary: $(Build.BinariesDirectory)\tcltk_lib\tcl8
24+
arm64:
25+
Name: arm64
26+
HostArch: amd64
27+
Python: $(Build.BinariesDirectory)\bin_amd64\python.exe
2128
PYTHONHOME: $(Build.SourcesDirectory)
2229

2330
steps:
@@ -43,21 +50,23 @@ jobs:
4350

4451
- task: DownloadPipelineArtifact@1
4552
displayName: 'Download artifact: tcltk_lib_$(Name)'
53+
condition: and(succeeded(), variables['TclLibrary'])
4654
inputs:
4755
artifactName: tcltk_lib_$(Name)
4856
targetPath: $(Build.BinariesDirectory)\tcltk_lib
4957

5058
- powershell: |
51-
copy $(Build.BinariesDirectory)\bin\Activate.ps1 Lib\venv\scripts\common\Activate.ps1 -Force
59+
copy "$(Build.BinariesDirectory)\bin\Activate.ps1" Lib\venv\scripts\common\Activate.ps1 -Force
5260
displayName: 'Copy signed files into sources'
61+
condition: and(succeeded(), variables['SigningCertificate'])
5362
5463
- template: ./layout-command.yml
5564

5665
- powershell: |
5766
$(LayoutCmd) --copy "$(Build.ArtifactStagingDirectory)\layout" --preset-default
5867
displayName: 'Generate full layout'
5968
env:
60-
TCL_LIBRARY: $(Build.BinariesDirectory)\tcltk_lib\tcl8
69+
TCL_LIBRARY: $(TclLibrary)
6170
6271
- task: PublishPipelineArtifact@0
6372
displayName: 'Publish Artifact: layout_full_$(Name)'

0 commit comments

Comments
 (0)