2020-12-11 22:12:54 +13:00
|
|
|
|
2020-12-10 19:53:03 +13:00
|
|
|
echo 'Python Packaging...'
|
2020-12-10 10:26:13 +13: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 18:50:54 +13:00
|
|
|
rm -r $(pwd)/tests/resources/functions/packages/python
|