@@ -14,6 +14,12 @@ resources:
14
14
ref : main
15
15
endpoint : Monaco
16
16
17
+ - repository : python-environment-tools
18
+ type : github
19
+ name : microsoft/python-environment-tools
20
+ ref : release/latest
21
+ endpoint : Monaco
22
+
17
23
parameters :
18
24
- name : publishExtension
19
25
displayName : 🚀 Publish Extension
@@ -25,7 +31,48 @@ extends:
25
31
parameters :
26
32
publishExtension : ${{ parameters.publishExtension }}
27
33
l10nSourcePaths : ./src/client
34
+ sourceRepositoriesToScan :
35
+ include :
36
+ - repository : python-environment-tools
37
+ exclude :
38
+ - repository : translations
39
+
40
+ buildPlatforms :
41
+ - name : Linux
42
+ vsceTarget : ' web'
43
+ - name : Linux
44
+ packageArch : arm64
45
+ vsceTarget : linux-arm64
46
+ - name : Linux
47
+ packageArch : arm
48
+ vsceTarget : linux-armhf
49
+ - name : Linux
50
+ packageArch : x64
51
+ vsceTarget : linux-x64
52
+ - name : Linux
53
+ packageArch : arm64
54
+ vsceTarget : alpine-arm64
55
+ - name : Linux
56
+ packageArch : x64
57
+ vsceTarget : alpine-x64
58
+ - name : MacOS
59
+ packageArch : arm64
60
+ vsceTarget : darwin-arm64
61
+ - name : MacOS
62
+ packageArch : x64
63
+ vsceTarget : darwin-x64
64
+ - name : Windows
65
+ packageArch : arm
66
+ vsceTarget : win32-arm64
67
+ - name : Windows
68
+ packageArch : x64
69
+ vsceTarget : win32-x64
70
+
28
71
buildSteps :
72
+ - checkout : self
73
+ displayName : Checkout Python Extension
74
+ path : ./s
75
+
29
76
- task : NodeTool@0
30
77
inputs :
31
78
versionSpec : ' 18.17.1'
@@ -38,33 +85,46 @@ extends:
38
85
architecture : ' x64'
39
86
displayName : Select Python version
40
87
41
- - script : npm ci
42
- displayName : Install NPM dependencies
43
-
44
88
- script : python -m pip install -U pip
45
89
displayName : Upgrade pip
46
90
47
91
- script : python -m pip install wheel nox
48
92
displayName : Install wheel and nox
49
93
50
- - script : |
51
- nox --session install_python_libs
52
- displayName: Install Jedi, get-pip, etc
94
+ - script : npm ci
95
+ displayName : Install NPM dependencies
53
96
54
- - script : |
55
- python ./build/update_ext_version.py --release --for-publishing
56
- displayName: Update build number
97
+ - script : nox --session install_python_libs
98
+ displayName : Install Jedi, get-pip, etc
57
99
58
- - script : |
59
- python ./build/update_package_file.py
100
+ - script : python ./build/update_package_file.py
60
101
displayName : Update telemetry in package.json
61
102
62
103
- script : npm run addExtensionPackDependencies
63
104
displayName : Update optional extension dependencies
64
105
65
- - script : gulp prePublishBundle
106
+ - script : npx gulp prePublishBundle
66
107
displayName : Build
67
108
109
+ - checkout : python-environment-tools
110
+ displayName : Checkout python-environment-tools
111
+ path : ./s/python-env-tools
112
+
113
+ - script : nox --session azure_pet_build_before
114
+ displayName : Enable cargo config for azure
115
+
116
+ - template : azure-pipelines/extension/templates/steps/build-extension-rust-package.yml@templates
117
+ parameters :
118
+ vsceTarget : $(vsceTarget)
119
+ binaryName : pet
120
+ signing : true
121
+ workingDirectory : $(Build.SourcesDirectory)/python-env-tools
122
+ buildWasm : false
123
+ runTest : false
124
+
125
+ - script : nox --session azure_pet_build_after
126
+ displayName : Move bin to final location
127
+
68
128
- script : python -c "import shutil; shutil.rmtree('.nox', ignore_errors=True)"
69
129
displayName : Clean up Nox
70
130
tsa :
0 commit comments