Skip to content

Commit

Permalink
drop aiofiles
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Jul 20, 2021
1 parent 9b14e4a commit 7af1e84
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 45 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,6 @@ Used by Pydantic:
Used by Starlette:

* <a href="https://requests.readthedocs.io" target="_blank"><code>requests</code></a> - Required if you want to use the `TestClient`.
* <a href="https://github.com/Tinche/aiofiles" target="_blank"><code>aiofiles</code></a> - Required if you want to use `FileResponse` or `StaticFiles`.
* <a href="https://jinja.palletsprojects.com" target="_blank"><code>jinja2</code></a> - Required if you want to use the default template configuration.
* <a href="https://andrew-d.github.io/python-multipart/" target="_blank"><code>python-multipart</code></a> - Required if you want to support form <abbr title="converting the string that comes from an HTTP request into Python data">"parsing"</abbr>, with `request.form()`.
* <a href="https://pythonhosted.org/itsdangerous/" target="_blank"><code>itsdangerous</code></a> - Required for `SessionMiddleware` support.
Expand Down
15 changes: 0 additions & 15 deletions docs/en/docs/advanced/extending-openapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,21 +152,6 @@ After that, your file structure could look like:
└── swagger-ui.css
```

### Install `aiofiles`

Now you need to install `aiofiles`:


<div class="termy">

```console
$ pip install aiofiles

---> 100%
```

</div>

### Serve the static files

* Import `StaticFiles`.
Expand Down
12 changes: 0 additions & 12 deletions docs/en/docs/advanced/templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,6 @@ $ pip install jinja2

</div>

If you need to also serve static files (as in this example), install `aiofiles`:

<div class="termy">

```console
$ pip install aiofiles

---> 100%
```

</div>

## Using `Jinja2Templates`

* Import `Jinja2Templates`.
Expand Down
1 change: 0 additions & 1 deletion docs/en/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,6 @@ Used by Pydantic:
Used by Starlette:

* <a href="https://requests.readthedocs.io" target="_blank"><code>requests</code></a> - Required if you want to use the `TestClient`.
* <a href="https://github.com/Tinche/aiofiles" target="_blank"><code>aiofiles</code></a> - Required if you want to use `FileResponse` or `StaticFiles`.
* <a href="https://jinja.palletsprojects.com" target="_blank"><code>jinja2</code></a> - Required if you want to use the default template configuration.
* <a href="https://andrew-d.github.io/python-multipart/" target="_blank"><code>python-multipart</code></a> - Required if you want to support form <abbr title="converting the string that comes from an HTTP request into Python data">"parsing"</abbr>, with `request.form()`.
* <a href="https://pythonhosted.org/itsdangerous/" target="_blank"><code>itsdangerous</code></a> - Required for `SessionMiddleware` support.
Expand Down
14 changes: 0 additions & 14 deletions docs/en/docs/tutorial/static-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,6 @@

You can serve static files automatically from a directory using `StaticFiles`.

## Install `aiofiles`

First you need to install `aiofiles`:

<div class="termy">

```console
$ pip install aiofiles

---> 100%
```

</div>

## Use `StaticFiles`

* Import `StaticFiles`.
Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ test = [
"orjson >=3.2.1,<4.0.0",
"ujson >=4.0.1,<5.0.0",
"python-multipart >=0.0.5,<0.0.6",
"aiofiles >=0.5.0,<0.6.0",
"flask >=1.1.2,<2.0.0",
"anyio[trio] >=3.2.1,<4",
]
Expand All @@ -80,7 +79,6 @@ dev = [
]
all = [
"requests >=2.24.0,<3.0.0",
"aiofiles >=0.5.0,<0.6.0",
"jinja2 >=2.11.2,<3.0.0",
"python-multipart >=0.0.5,<0.0.6",
"itsdangerous >=1.1.0,<2.0.0",
Expand Down

0 comments on commit 7af1e84

Please sign in to comment.