Skip to content

Commit

Permalink
revert: Reverted the changes from PR-1354 (#1420)
Browse files Browse the repository at this point in the history
  • Loading branch information
Prasanjeet-Microsoft authored Oct 15, 2024
1 parent c767212 commit 69d0e98
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
16 changes: 16 additions & 0 deletions azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,24 @@ 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 export -o requirements.txt; pip install -r requirements.txt
posix:
shell: sh
run: poetry export -o requirements.txt; pip install -r requirements.txt
3 changes: 1 addition & 2 deletions scripts/package_frontend.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ 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: 1 addition & 2 deletions scripts/package_frontend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ 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 69d0e98

Please sign in to comment.