Skip to content

Commit 69d0e98

Browse files
revert: Reverted the changes from PR-1354 (Azure-Samples#1420)
1 parent c767212 commit 69d0e98

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

azure.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,24 @@ services:
2929
project: ./code/backend
3030
language: py
3131
host: appservice
32+
hooks:
33+
prepackage:
34+
windows:
35+
shell: pwsh
36+
run: poetry install; poetry export -o requirements.txt
37+
posix:
38+
shell: sh
39+
run: poetry install; poetry export -o requirements.txt
3240

3341
function:
3442
project: ./code/backend/batch
3543
language: py
3644
host: function
45+
hooks:
46+
prepackage:
47+
windows:
48+
shell: pwsh
49+
run: poetry export -o requirements.txt; pip install -r requirements.txt
50+
posix:
51+
shell: sh
52+
run: poetry export -o requirements.txt; pip install -r requirements.txt

scripts/package_frontend.ps1

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ rm dist/* -r -Force
33

44
# Python
55
poetry install
6+
poetry export -o dist/requirements.txt
67
cp *.py dist -Force
78
cp backend dist -r -Force
8-
cp ../pyproject.toml dist -Force
9-
cp ../poetry.lock dist -Force
109

1110
# Node
1211
cd frontend

scripts/package_frontend.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ set -eou pipefail
44
mkdir -p dist
55
rm -rf dist/*
66
poetry install
7+
poetry export -o dist/requirements.txt
78
cp *.py dist
89
cp -r backend dist
9-
cp ../pyproject.toml dist
10-
cp ../poetry.lock dist
1110

1211
cd frontend
1312
npm install

0 commit comments

Comments
 (0)