Skip to content

Commit

Permalink
Merge branch 'master' into Update-Chinese-translation-for-tutorial-bo…
Browse files Browse the repository at this point in the history
…dy.md
  • Loading branch information
tiangolo committed Mar 30, 2024
2 parents cd87b76 + e99a15d commit e4bf554
Show file tree
Hide file tree
Showing 1,248 changed files with 91,224 additions and 14,014 deletions.
14 changes: 14 additions & 0 deletions .github/DISCUSSION_TEMPLATE/questions.yml
Expand Up @@ -123,6 +123,20 @@ body:
```
validations:
required: true
- type: input
id: pydantic-version
attributes:
label: Pydantic Version
description: |
What Pydantic version are you using?
You can find the Pydantic version with:
```bash
python -c "import pydantic; print(pydantic.version.VERSION)"
```
validations:
required: true
- type: input
id: python-version
attributes:
Expand Down
6 changes: 4 additions & 2 deletions .github/actions/comment-docs-preview-in-pr/Dockerfile
@@ -1,6 +1,8 @@
FROM python:3.7
FROM python:3.10

RUN pip install httpx "pydantic==1.5.1" pygithub
COPY ./requirements.txt /app/requirements.txt

RUN pip install -r /app/requirements.txt

COPY ./app /app

Expand Down
3 changes: 2 additions & 1 deletion .github/actions/comment-docs-preview-in-pr/app/main.py
Expand Up @@ -6,7 +6,8 @@
import httpx
from github import Github
from github.PullRequest import PullRequest
from pydantic import BaseModel, BaseSettings, SecretStr, ValidationError
from pydantic import BaseModel, SecretStr, ValidationError
from pydantic_settings import BaseSettings

github_api = "https://api.github.com"

Expand Down
4 changes: 4 additions & 0 deletions .github/actions/comment-docs-preview-in-pr/requirements.txt
@@ -0,0 +1,4 @@
PyGithub
pydantic>=2.5.3,<3.0.0
pydantic-settings>=2.1.0,<3.0.0
httpx
2 changes: 1 addition & 1 deletion .github/actions/notify-translations/Dockerfile
@@ -1,4 +1,4 @@
FROM python:3.7
FROM python:3.9

RUN pip install httpx PyGithub "pydantic==1.5.1" "pyyaml>=5.3.1,<6.0.0"

Expand Down
2 changes: 1 addition & 1 deletion .github/actions/notify-translations/app/main.py
Expand Up @@ -9,7 +9,7 @@
from github import Github
from pydantic import BaseModel, BaseSettings, SecretStr

awaiting_label = "awaiting review"
awaiting_label = "awaiting-review"
lang_all_label = "lang-all"
approved_label = "approved-2"
translations_path = Path(__file__).parent / "translations.yml"
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/people/Dockerfile
@@ -1,6 +1,6 @@
FROM python:3.7
FROM python:3.9

RUN pip install httpx PyGithub "pydantic==1.5.1" "pyyaml>=5.3.1,<6.0.0"
RUN pip install httpx PyGithub "pydantic==2.0.2" pydantic-settings "pyyaml>=5.3.1,<6.0.0"

COPY ./app /app

Expand Down
5 changes: 1 addition & 4 deletions .github/actions/people/action.yml
Expand Up @@ -3,10 +3,7 @@ description: "Generate the data for the FastAPI People page"
author: "Sebastián Ramírez <tiangolo@gmail.com>"
inputs:
token:
description: 'User token, to read the GitHub API. Can be passed in using {{ secrets.ACTION_TOKEN }}'
required: true
standard_token:
description: 'Default GitHub Action token, used for the PR. Can be passed in using {{ secrets.GITHUB_TOKEN }}'
description: 'User token, to read the GitHub API. Can be passed in using {{ secrets.FASTAPI_PEOPLE }}'
required: true
runs:
using: 'docker'
Expand Down

0 comments on commit e4bf554

Please sign in to comment.