Skip to content

Commit 6e637ef

Browse files
committed
Update pipeline
1 parent 5fdc1ac commit 6e637ef

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.azuredevops/deploy-azure-function.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,18 @@ jobs:
4949
SecretsFilter: "*"
5050
RunAsPreJob: false
5151

52-
- script: |
52+
- bash: |
5353
python -m pip install --upgrade pip && \
54-
pip install --target="$(functionAppPath)/.python_packages/lib/site-packages" -r requirements.txt
54+
python -m pip install poetry~="1.8" poetry-plugin-export
55+
displayName: "Install poetry"
56+
57+
- bash: |
58+
python -m poetry export -f requirements.txt --without-hashes > requirements.txt
59+
displayName: "Export dependencies"
60+
61+
- bash: |
62+
python -m pip install -t "$(functionAppPath)/.python_packages/lib/site-packages" \
63+
-r requirements.txt
5564
displayName: "Install dependencies"
5665
5766
- task: ArchiveFiles@2

0 commit comments

Comments
 (0)