Skip to content

Commit 177f028

Browse files
committed
Merge branch 'release/4.1.5'
2 parents b2a59aa + 9885bfb commit 177f028

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9.7-alpine3.13
1+
FROM python:3.9.17-alpine
22

33
RUN apk add --no-cache \
44
curl \
@@ -11,7 +11,10 @@ RUN apk add --no-cache \
1111
# For psycopg \
1212
postgresql-dev \
1313
# For mysql deps \
14-
mariadb-connector-c-dev
14+
mariadb-connector-c-dev \
15+
# For UI \
16+
ncurses \
17+
bash
1518

1619
RUN adduser --disabled-password fastapi_template
1720
RUN mkdir /projects /src
@@ -32,6 +35,9 @@ RUN rm -rfv /src
3235
RUN apk del curl
3336
USER fastapi_template
3437

38+
RUN git config --global user.name "Fastapi Template"
39+
RUN git config --global user.email "[email protected]"
40+
3541
VOLUME /projects
3642
WORKDIR /projects
3743

fastapi_template/template/{{cookiecutter.project_name}}/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ An example of .env file:
9090
You can read more about BaseSettings class here: https://pydantic-docs.helpmanual.io/usage/settings/
9191
9292
{%- if cookiecutter.otlp_enabled == "True" %}
93-
## Opentelemetry
93+
## OpenTelemetry
9494
95-
If you want to start your project with opentelemetry collector
95+
If you want to start your project with OpenTelemetry collector
9696
you can add `-f ./deploy/docker-compose.otlp.yml` to your docker command.
9797
9898
Like this:
@@ -101,14 +101,14 @@ Like this:
101101
docker-compose -f deploy/docker-compose.yml -f deploy/docker-compose.otlp.yml --project-directory . up
102102
```
103103
104-
This command will start opentelemetry collector and jaeger.
104+
This command will start OpenTelemetry collector and jaeger.
105105
After sending a requests you can see traces in jaeger's UI
106106
at http://localhost:16686/.
107107
108108
This docker configuration is not supposed to be used in production.
109109
It's only for demo purpose.
110110
111-
You can read more about opentelemetry here: https://opentelemetry.io/
111+
You can read more about OpenTelemetry here: https://opentelemetry.io/
112112
{%- endif %}
113113
114114
## Pre-commit
@@ -125,7 +125,7 @@ By default it runs:
125125
* black (formats your code);
126126
* mypy (validates types);
127127
* isort (sorts imports in all files);
128-
* flake8 (spots possibe bugs);
128+
* flake8 (spots possible bugs);
129129
130130
131131
You can read more about pre-commit here: https://pre-commit.com/

fastapi_template/template/{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/tkq.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,11 @@
2121
{%- if cookiecutter.enable_rmq == "True" %}
2222
broker = AioPikaBroker(
2323
str(settings.rabbit_url),
24-
{%- if cookiecutter.enable_redis == "True" %}result_backend=result_backend, {%- endif %}
25-
)
24+
){%- if cookiecutter.enable_redis == "True" %}.with_result_backend(result_backend){%- endif %}
2625
{%- elif cookiecutter.enable_redis == "True" %}
2726
broker = ListQueueBroker(
2827
str(settings.redis_url.with_path("/1")),
29-
result_backend=result_backend,
30-
)
28+
).with_result_backend(result_backend)
3129
{%- else %}
3230
broker = ZeroMQBroker()
3331
{%- endif %}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "fastapi_template"
3-
version = "4.1.4"
3+
version = "4.1.5"
44
description = "Feature-rich robust FastAPI template"
55
authors = ["Pavel Kirilin <[email protected]>"]
66
packages = [{ include = "fastapi_template" }]

0 commit comments

Comments
 (0)