Last active
October 2, 2020 05:41
-
-
Save jeznag/aa197dceac8e38f86a57393dddbf7337 to your computer and use it in GitHub Desktop.
package dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p build | |
mkdir -p dist | |
pipenv lock -r > requirements.txt | |
export PKG_DIR="build" | |
rm -rf ${PKG_DIR} && mkdir -p ${PKG_DIR} | |
docker run --rm -v $(pwd):/var/task -e PKG_DIR lambci/lambda:build-python3.7 bash -c \ | |
'mkdir -p /var/task/.cache && rsync -a /var/task/.cache/ /root/.cache/ || true && chown -R root /root/.cache && pip install -r requirements.txt -t ${PKG_DIR} && rsync -a /root/.cache/ /var/task/.cache/' | |
touch build/__init__.py | |
chmod -R 755 build | |
tar -czf dist/lambda_dependencies.tar.gz build | |
touch Pipfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[source]] | |
url = "https://pypi.python.org/simple" | |
verify_ssl = true | |
name = "pypi" | |
[packages] | |
pandas = "*" | |
sklearn = "*" | |
xgboost = "*" | |
"psycopg2_binary" = "*" | |
boto3 = "*" | |
imbalanced-learn = "*" | |
numpy = "*" | |
[dev-packages] | |
mocker = "*" | |
pytest = "*" | |
mock = "*" | |
pytest-mock = "*" | |
matplotlib = "*" | |
graphviz = "*" | |
eli5 = "*" | |
jupyter = "*" | |
[requires] | |
python_version = "3.7" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment