Skip to content

Commit faae7c8

Browse files
change publish to use AzureArtifacts feed instead of directly PyPi feed (#757)
1 parent 7cc9039 commit faae7c8

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

.ado/publish.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ variables:
4242
value: none # Disable usage telemetry for internal test pipelines
4343
- name: PYTEST_MAX_PARALLEL_TESTS
4444
value: "auto"
45+
- name: PipFeed
46+
value: "AzureQuantum/azure-quantum"
4547

4648
resources:
4749
repositories:
@@ -76,6 +78,12 @@ extends:
7678
versionSpec: "3.11"
7779
displayName: Set Python version
7880

81+
- task: PipAuthenticate@1
82+
displayName: Authenticate pip to Azure Artifacts feed
83+
inputs:
84+
artifactFeeds: $(PipFeed)
85+
onlyAddExtraIndex: false
86+
7987
- script: |
8088
pip install wheel
8189
displayName: Install wheel
@@ -109,6 +117,12 @@ extends:
109117
versionSpec: "3.11"
110118
displayName: Set Python version
111119

120+
- task: PipAuthenticate@1
121+
displayName: Authenticate pip to Azure Artifacts feed
122+
inputs:
123+
artifactFeeds: $(PipFeed)
124+
onlyAddExtraIndex: false
125+
112126
- script: |
113127
python -m pip install --upgrade pip
114128
pip install pytest pytest-azurepipelines pytest-cov pytest-xdist tox
@@ -170,6 +184,12 @@ extends:
170184
versionSpec: "3.11"
171185
displayName: Set Python version
172186

187+
- task: PipAuthenticate@1
188+
displayName: Authenticate pip to Azure Artifacts feed
189+
inputs:
190+
artifactFeeds: $(PipFeed)
191+
onlyAddExtraIndex: false
192+
173193
- script: |
174194
python $(Pipeline.Workspace)/azure-quantum-wheels/set_version.py
175195
env:

azure-quantum/tox.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ basepython =
88
py311: python3.11
99
py312: python3.12
1010
py313: python3.13
11+
# Forward the pip index/auth configured by PipAuthenticate@1 into tox's isolated
12+
# environments so package restores go through the Azure Artifacts feed (CFS policy).
13+
passenv =
14+
PIP_INDEX_URL
15+
PIP_EXTRA_INDEX_URL
1116
allowlist_externals = pytest
1217
deps =
1318
qiskit1: qiskit<2

0 commit comments

Comments
 (0)