Skip to content

Commit b9c824a

Browse files
committed
FEAT: Added Build Artifacts to Release Pipeline
1 parent 4b518c9 commit b9c824a

4 files changed

Lines changed: 50 additions & 56 deletions

File tree

eng/pipelines/build-and-release-pipeline.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

eng/pipelines/build-whl-pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
project: '$(System.TeamProject)'
8585
definition: 2134
8686
buildVersionToDownload: 'latestFromBranch'
87-
branchName: 'refs/heads/bewithgaurav/build_whl_pipeline' # Or 'refs/heads/dev'
87+
branchName: 'refs/heads/main' # Or 'refs/heads/dev'
8888
artifactName: 'mssql-python-arm64-libs'
8989
targetPath: '$(Build.SourcesDirectory)\mssql_python\pybind\python_libs\arm64'
9090
displayName: 'Download ARM64 Python libs from latest successful run on branches'
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: mssql-python-official-release-pipeline
2+
3+
variables:
4+
- group: 'ESRP Federated Creds (AME)'
5+
6+
jobs:
7+
- job: ReleaseESRPPackage
8+
displayName: 'Release ESRP Package'
9+
pool:
10+
vmImage: 'windows-latest'
11+
12+
steps:
13+
- task: DownloadPipelineArtifact@2
14+
inputs:
15+
buildType: 'specific'
16+
project: '$(System.TeamProject)'
17+
definition: 2134
18+
buildVersionToDownload: 'latestFromBranch'
19+
branchName: 'refs/heads/main'
20+
artifactName: 'mssql-python-wheels-dist'
21+
targetPath: '$(Build.SourcesDirectory)\dist'
22+
displayName: 'Download release wheel files artifact from latest successful run on main branch'
23+
24+
# Show content of the downloaded artifact
25+
- script: |
26+
echo "Contents of the dist directory:"
27+
dir "$(Build.SourcesDirectory)\dist"
28+
displayName: 'List contents of dist directory'
29+
30+
# - task: EsrpRelease@9
31+
# displayName: 'ESRP Release'
32+
# inputs:
33+
# connectedservicename: '$(ESRPConnectedServiceName)'
34+
# usemanagedidentity: true
35+
# keyvaultname: '$(AuthAKVName)'
36+
# signcertname: '$(AuthSignCertName)'
37+
# clientid: '$(EsrpClientId)'
38+
# Intent: 'PackageDistribution'
39+
# ContentType: 'PyPI'
40+
# ContentSource: 'Folder'
41+
# FolderLocation: '$(System.DefaultWorkingDirectory)/dist'
42+
# WaitForReleaseCompletion: true
43+
# Owners: '$(owner)'
44+
# Approvers: '$(approver)'
45+
# ServiceEndpointUrl: 'https://api.esrp.microsoft.com'
46+
# MainPublisher: 'ESRPRELPACMAN'
47+
# DomainTenantId: '$(DomainTenantId)'

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ def finalize_options(self):
9494
]
9595
},
9696
include_package_data=True,
97-
# Requires >= Python 3.9
98-
python_requires='>=3.9',
97+
# Requires >= Python 3.10
98+
python_requires='>=3.10',
9999
zip_safe=False,
100100
# Force binary distribution
101101
distclass=BinaryDistribution,

0 commit comments

Comments
 (0)