appwrite/tests/resources/functions/package-python.sh

13 lines
632 B
Bash
Raw Normal View History

2020-12-11 09:12:54 +00:00
2020-12-10 06:53:03 +00:00
echo 'Python Packaging...'
2020-12-09 21:26:13 +00:00
cp -r $(pwd)/tests/resources/functions/python $(pwd)/tests/resources/functions/packages/python
docker run --rm -v $(pwd)/tests/resources/functions/packages/python:/app -w /app --env PIP_TARGET=./.appwrite appwrite/env-python-3.8:1.0.0 pip install -r ./requirements.txt --upgrade --ignore-installed
docker run --rm -v $(pwd)/tests/resources/functions/packages/python:/app -w /app appwrite/env-python-3.8:1.0.0 tar -zcvf code.tar.gz .
mv $(pwd)/tests/resources/functions/packages/python/code.tar.gz $(pwd)/tests/resources/functions/python.tar.gz
2020-12-11 05:50:54 +00:00
rm -r $(pwd)/tests/resources/functions/packages/python