Skip to content

Commit

Permalink
Add messages for easier deployment workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
danuker committed Jun 25, 2024
1 parent 4f4648e commit 139646b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,16 @@ Install
`Azure Functions Core Tools
<https://github.com/Azure/azure-functions-core-tools>`_.

On Arch Linux, these packages are on the AUR named `azure-cli-bin` and `azure-functions-core-tools-bin`. The `azure-cli` package from the official repository did NOT work.

Also install `pip_tools` (via `pip`) for `pip-compile`,
to generate hashes for `requirements.txt`, as a workaround to
a `poetry issue <https://github.com/python-poetry/poetry/issues/2060#issuecomment-623737835>`_.

Then, in the virtual env::

poetry export -f requirements.txt --output requirements.txt
pip install pip_tools
pip-compile --generate-hashes -o requirements.txt.new requirements.txt
mv requirements.txt.new requirements.txt
# Poetry won't pin setuptools, but Azure wants it to prevent tampering.
Expand Down
2 changes: 1 addition & 1 deletion build-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ cp -r ../requirements.txt .
cp -r ../scripts .
cp -r ../setup.py .

echo "Done. Size of unpacked package:"
echo "Done. Size of unpacked package (should be below 1MB):"
du -hs .

0 comments on commit 139646b

Please sign in to comment.