From e1aae7ef80c39ae5fb863e888f99dc8cdc3fe8a4 Mon Sep 17 00:00:00 2001 From: Chirag Jain Date: Fri, 18 Feb 2022 20:18:19 +0530 Subject: [PATCH 1/2] Bump python to 3.8 and uprgade few dependencies --- docker/Dockerfile | 2 +- requirements.txt | 21 ++++++++++----------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 6f43808f..4b25a28d 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.6.15 +FROM python:3.8.12 ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && \ apt-get install -y wget build-essential curl nginx supervisor diff --git a/requirements.txt b/requirements.txt index 6bfc6241..9f711e62 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ # Python-C stuff -Cython==0.28.2 -six==1.15.0 +Cython==0.29.28 +six==1.16.0 # WSGI compatible server uwsgi==2.0.19.1 @@ -10,9 +10,9 @@ botocore==1.21.35 s3transfer==0.5.0 boto3==1.18.35 -scipy==1.4.1 -numpy==1.19.2 -pandas==1.0.5 +scipy==1.8.0 +numpy==1.21.0 +pandas==1.4.1 urllib3==1.26.5 requests==2.26.0 @@ -20,13 +20,13 @@ requests-aws4auth==0.9 Django==3.2.12 elasticsearch==5.5.3 -nltk==3.4.5 +nltk==3.6.6 phonenumberslite==8.10.18 pyaml==19.4.1 -python-dateutil==2.7.3 +python-dateutil==2.8.1 pytz==2020.1 -regex==2020.7.14 -weighted-levenshtein==0.1 +regex==2021.8.3 +weighted-levenshtein==0.2.1 word2number==1.1 # Spacy and models @@ -50,5 +50,4 @@ nose-exclude==0.5.0 # Other convenience libs, ideally should only be installed in dev flake8==3.4.1 -jedi==0.17.2 -ipython==7.16.3 +ipython==8.0.1 \ No newline at end of file From e032cca6481e21d45d61cfca7fb2bef0f9a0bf61 Mon Sep 17 00:00:00 2001 From: Chirag Jain Date: Fri, 18 Feb 2022 20:21:17 +0530 Subject: [PATCH 2/2] Add `omw` corpora to nltk setup --- nltk_setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nltk_setup.py b/nltk_setup.py index 7d2a5475..3e82f387 100755 --- a/nltk_setup.py +++ b/nltk_setup.py @@ -2,7 +2,7 @@ import nltk -NLTK_RESOURCES = ['punkt', 'wordnet', 'maxent_treebank_pos_tagger', 'averaged_perceptron_tagger'] +NLTK_RESOURCES = ['punkt', 'wordnet', 'maxent_treebank_pos_tagger', 'averaged_perceptron_tagger', 'omw', 'omw-1.4'] def download_nltk_resources():