testing creation of a combined requirements file for serverless deployment

This commit is contained in:
Khalim Conn-Kowlessar 2023-07-19 13:13:50 +01:00
parent 606e5213db
commit 96295f1c3b
3 changed files with 71 additions and 3 deletions

View file

@ -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"

View file

@ -14,7 +14,7 @@ provider:
package:
# individually: true
individually: true
# include:
# - backend/**
# # Might need to refine the paths that are included

View file

@ -1,2 +1,47 @@
-r backend/requirements/base.txt
-r model_data/requirements/requirements.txt
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