Skip to content

Commit 986323b

Browse files
ebretontiangolo
authored andcommitted
✨ Upgrade to Python 3.7, including new compatible Celery (fastapi#10)
1 parent c970b2e commit 986323b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

{{cookiecutter.project_slug}}/backend/app/Pipfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pyjwt = "*"
2020
python-multipart = "*"
2121
email-validator = "*"
2222
requests = "*"
23-
celery = "==4.2.1"
23+
celery = "~=4.3"
2424
passlib = {extras = ["bcrypt"],version = "*"}
2525
tenacity = "*"
2626
pydantic = "*"

{{cookiecutter.project_slug}}/backend/backend.dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.6
1+
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.7
22

3-
RUN pip install celery==4.2.1 passlib[bcrypt] tenacity requests emails "fastapi>=0.7.1" uvicorn gunicorn pyjwt python-multipart email_validator jinja2 psycopg2-binary alembic SQLAlchemy
3+
RUN pip install celery~=4.3 passlib[bcrypt] tenacity requests emails "fastapi>=0.7.1" uvicorn gunicorn pyjwt python-multipart email_validator jinja2 psycopg2-binary alembic SQLAlchemy
44

55
# For development, Jupyter remote kernel, Hydrogen
66
# Using inside the container:

{{cookiecutter.project_slug}}/backend/celeryworker.dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM python:3.6
1+
FROM python:3.7
22

3-
RUN pip install raven celery==4.2.1 passlib[bcrypt] tenacity requests "fastapi>=0.7.1" emails pyjwt email_validator jinja2 psycopg2-binary alembic SQLAlchemy
3+
RUN pip install raven celery~=4.3 passlib[bcrypt] tenacity requests "fastapi>=0.7.1" emails pyjwt email_validator jinja2 psycopg2-binary alembic SQLAlchemy
44

55
# For development, Jupyter remote kernel, Hydrogen
66
# Using inside the container:

{{cookiecutter.project_slug}}/backend/tests.dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.6
1+
FROM python:3.7
22

33
RUN pip install requests pytest tenacity passlib[bcrypt] "fastapi>=0.7.1" psycopg2-binary SQLAlchemy
44

0 commit comments

Comments
 (0)