Skip to content

Commit 3963114

Browse files
authored
refactor: Stop generating requirements.txt during deployment (#1354)
1 parent 2faf2f5 commit 3963114

3 files changed

Lines changed: 4 additions & 18 deletions

File tree

azure.yaml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,8 @@ 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
4032

4133
function:
4234
project: ./code/backend/batch
4335
language: py
4436
host: function
45-
hooks:
46-
prepackage:
47-
windows:
48-
shell: pwsh
49-
run: poetry install; poetry export -o requirements.txt
50-
posix:
51-
shell: sh
52-
run: poetry install; poetry export -o requirements.txt

scripts/package_frontend.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ rm dist/* -r -Force
33

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

1011
# Node
1112
cd frontend

scripts/package_frontend.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ set -eou pipefail
44
mkdir -p dist
55
rm -rf dist/*
66
poetry install
7-
poetry export -o dist/requirements.txt
87
cp *.py dist
98
cp -r backend dist
9+
cp ../pyproject.toml dist
10+
cp ../poetry.lock dist
1011

1112
cd frontend
1213
npm install

0 commit comments

Comments
 (0)