Skip to content

Commit

Permalink
refactor: Stop generating requirements.txt during deployment (#1354)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdougal authored Oct 4, 2024
1 parent 2faf2f5 commit 3963114
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 18 deletions.
16 changes: 0 additions & 16 deletions azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,8 @@ services:
project: ./code/backend
language: py
host: appservice
hooks:
prepackage:
windows:
shell: pwsh
run: poetry install; poetry export -o requirements.txt
posix:
shell: sh
run: poetry install; poetry export -o requirements.txt

function:
project: ./code/backend/batch
language: py
host: function
hooks:
prepackage:
windows:
shell: pwsh
run: poetry install; poetry export -o requirements.txt
posix:
shell: sh
run: poetry install; poetry export -o requirements.txt
3 changes: 2 additions & 1 deletion scripts/package_frontend.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ rm dist/* -r -Force

# Python
poetry install
poetry export -o dist/requirements.txt
cp *.py dist -Force
cp backend dist -r -Force
cp ../pyproject.toml dist -Force
cp ../poetry.lock dist -Force

# Node
cd frontend
Expand Down
3 changes: 2 additions & 1 deletion scripts/package_frontend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ set -eou pipefail
mkdir -p dist
rm -rf dist/*
poetry install
poetry export -o dist/requirements.txt
cp *.py dist
cp -r backend dist
cp ../pyproject.toml dist
cp ../poetry.lock dist

cd frontend
npm install
Expand Down

0 comments on commit 3963114

Please sign in to comment.