diff --git a/make_serverless_requirements.sh b/make_serverless_requirements.sh new file mode 100644 index 00000000..690cc82c --- /dev/null +++ b/make_serverless_requirements.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# This script combines the requirements from base.txt and requirements.txt into serverless_requirements.txt + +# Navigate to the directory containing this script +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +cd "$DIR" + +# Concatenate the requirements files with a newline character in between +cat backend/requirements/base.txt > serverless_requirements.txt +echo "" >> serverless_requirements.txt +cat model_data/requirements/requirements.txt >> serverless_requirements.txt + +# Identify duplicates +duplicates=$(sort serverless_requirements.txt | uniq -d) + +if [ -n "$duplicates" ]; then + echo "Warning: Duplicate entries found:" + echo "$duplicates" + echo "Please resolve these conflicts manually in the combined requirements file." +fi + +# Print a success message +echo "Combined requirements files into serverless_requirements.txt" diff --git a/serverless.yml b/serverless.yml index 8cf60038..b91a7371 100644 --- a/serverless.yml +++ b/serverless.yml @@ -14,7 +14,7 @@ provider: package: - # individually: true + individually: true # include: # - backend/** # # Might need to refine the paths that are included diff --git a/serverless_requirements.txt b/serverless_requirements.txt index 11ec7436..762019ef 100644 --- a/serverless_requirements.txt +++ b/serverless_requirements.txt @@ -1,2 +1,47 @@ --r backend/requirements/base.txt --r model_data/requirements/requirements.txt \ No newline at end of file +anyio==3.7.1 +cffi==1.15.1 +click==8.1.3 +cryptography==37.0.4 +ecdsa==0.18.0 +exceptiongroup==1.1.2 +fastapi==0.99.1 +h11==0.14.0 +httptools==0.5.0 +idna==3.4 +mangum==0.17.0 +pyasn1==0.5.0 +pycparser==2.21 +pydantic==1.10.11 +PyJWT==2.7.0 +python-dotenv==1.0.0 +python-jose==3.3.0 +PyYAML==6.0 +rsa==4.9 +six==1.16.0 +sniffio==1.3.0 +starlette==0.27.0 +typing_extensions==4.7.1 +uvicorn==0.22.0 +uvloop==0.17.0 +watchfiles==0.19.0 +websockets==11.0.3 +boto3 +pandas==2.0.3 +numpy==1.25.1 +pytz==2023.3 +tzdata==2023.3 +epc-api-python==1.0.2 +tqdm +mypy +fuzzywuzzy +python-Levenshtein +dbfread +pyproj +pint +mip +seaborn +statsmodels +scikit-learn +pyspellchecker +textblob +xgboost \ No newline at end of file