Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Commit 2260efb

Browse files
committed
update python dependencies
1 parent 4a96ab8 commit 2260efb

File tree

5 files changed

+35
-53
lines changed

5 files changed

+35
-53
lines changed

backend/backend/settings/base.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import os
1414

1515
import redis
16-
from corsheaders.defaults import default_headers
1716

1817
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
1918
BASE_DIR = os.path.dirname(
@@ -32,13 +31,6 @@
3231

3332
ALLOWED_HOSTS = ["*"]
3433

35-
CORS_ORIGIN_ALLOW_ALL = True
36-
37-
CORS_ALLOW_HEADERS = default_headers + (
38-
"access-control-allow-headers",
39-
"access-control-allow-methods",
40-
"access-control-allow-origin",
41-
)
4234

4335
# Application definition
4436

backend/backend/settings/production.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from .base import * # noqa
22

3+
ALLOWED_HOSTS = [os.environ.get("FULL_DOMAIN_NAME")] # noqa
4+
35
# Email
46

57
EMAIL_USE_TLS = True
@@ -44,6 +46,5 @@
4446

4547
# Celery
4648

47-
CELERY_BROKER_URL = "sqs://" # f"redis://{REDIS_SERVICE_HOST}:6379/0" # noqa
48-
CELERY_BROKER_TRANSPORT_OPTIONS = {'region': 'us-east-1'}
49+
CELERY_BROKER_URL = f"redis://{REDIS_SERVICE_HOST}:6379/0" # noqa
4950
CELERY_RESULT_BACKEND = f"redis://{REDIS_SERVICE_HOST}:6379/0" # noqa

backend/requirements/base.txt

Lines changed: 21 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,42 @@
1-
boto3==1.9.130
1+
boto3==1.13.16
22

3-
celery==4.3.0
4-
celery[sqs]==4.3.0
3+
celery==4.4.2
4+
kombu==4.6.8
55

6-
channels==2.2.0
7-
channels-redis==2.4.0
6+
channels==2.4.0
7+
channels-redis==2.4.2
88

9-
daphne==2.3.0
9+
daphne==2.5.0
1010

11-
graphene-django==2.8.1
12-
django-graphql-jwt==0.3.0
11+
graphene-django==2.10.1
12+
django-graphql-jwt==0.3.1
1313

14-
Django==2.2
15-
django-cors-headers==2.5.2
16-
django-filter==2.1.0
17-
djangorestframework==3.9.2
18-
djangorestframework_simplejwt==4.3.0
19-
django-shortcuts==1.6
20-
django-debug-toolbar==1.11
14+
Django==3.0.6
15+
django-filter==2.2.0
16+
djangorestframework==3.11.0
17+
djangorestframework_simplejwt==4.4.0
18+
django-debug-toolbar==2.2
2119

2220

2321
# Python Social Auth
2422

2523
social-auth-app-django==3.1.0
26-
social-auth-core==3.2.0
24+
social-auth-core==3.3.3
2725

2826
# Django page caching is not working with this version of Redis
2927
# but this version is required by Celery
30-
django-redis==4.10.0
28+
django-redis==4.11.0
3129

32-
django-storages==1.7.1
33-
django-constance==2.4.0 # for managing settings in admin
30+
django-storages==1.9.1
3431

3532
# TODO: figure out why pandas is taking a long time to download
33+
# in cdk deploy step
3634
# pandas==0.24.2
37-
# pandas_flavor==0.1.2
38-
# pyjanitor==0.16.6
3935

40-
xlrd==1.2.0 # required by pandas for Excel support
41-
XlsxWriter==1.1.6 # used by the excel recon tool
42-
django-postgres-copy==2.4.0
43-
django-safedelete==0.5.1
36+
gunicorn==20.0.4
4437

45-
gunicorn==19.9.0
38+
psycopg2-binary==2.8.5
4639

47-
psycopg2-binary==2.8.2
40+
redis==3.5.2
4841

49-
redis==3.2.1
50-
51-
requests==2.21.0
42+
requests==2.23.0

backend/requirements/dev.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
better_exceptions==0.2.2
2-
pyupio==1.0.2
3-
django-extensions==2.1.6 # NOTE: in installed_apps
4-
Werkzeug==0.15.2 # used for runserver_plus exception console
5-
ipython==7.4.0
2+
django-extensions==2.2.9 # NOTE: in installed_apps
3+
Werkzeug==1.0.1 # used for runserver_plus exception console
4+
ipython==7.14.0
65
jupyter==1.0.0
7-
gql==0.3.0
6+
gql==2.0.0

backend/requirements/test.txt

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
black==19.10b0
2-
pytest==4.4.1
3-
pytest-cov==2.6.1
4-
pytest-django==3.4.8
5-
factory_boy==2.11.1
6-
flake8==3.7.7
7-
flake8-isort==2.7.0
8-
coverage==4.5.3
9-
moto==1.3.7
2+
pytest==5.4.2
3+
pytest-cov==2.8.1
4+
pytest-django==3.9.0
5+
factory_boy==2.12.0
6+
flake8==3.8.1
7+
flake8-isort==3.0.0
8+
coverage==5.1

0 commit comments

Comments
 (0)