Skip to content

Commit

Permalink
Upgrade Starlette version (#17)
Browse files Browse the repository at this point in the history
Upgrade Starlette version
  • Loading branch information
euri10 authored and tiangolo committed Feb 1, 2019
1 parent 014c7df commit 5c9c088
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 37 deletions.
3 changes: 2 additions & 1 deletion Pipfile
Expand Up @@ -20,9 +20,10 @@ autoflake = "*"
email-validator = "*"
ujson = "*"
flake8 = "*"
python-multipart = "*"

[packages]
starlette = "==0.9.10"
starlette = "==0.10.1"
pydantic = "==0.18.2"

[requires]
Expand Down
69 changes: 38 additions & 31 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions fastapi/routing.py
Expand Up @@ -18,7 +18,7 @@
from starlette.formparsers import UploadFile
from starlette.requests import Request
from starlette.responses import JSONResponse, Response
from starlette.routing import get_name, request_response
from starlette.routing import compile_path, get_name, request_response
from starlette.status import HTTP_422_UNPROCESSABLE_ENTITY


Expand Down Expand Up @@ -149,9 +149,7 @@ def __init__(
self.include_in_schema = include_in_schema
self.content_type = content_type

self.path_regex, self.path_format, self.param_convertors = self.compile_path(
path
)
self.path_regex, self.path_format, self.param_convertors = compile_path(path)
assert inspect.isfunction(endpoint) or inspect.ismethod(
endpoint
), f"An endpoint must be a function or method"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -19,7 +19,7 @@ classifiers = [
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
]
requires = [
"starlette >=0.9.7,<0.9.11",
"starlette >=0.9.11,<=0.10.1",
"pydantic >=0.17,<=0.18.2"
]
description-file = "README.md"
Expand Down

0 comments on commit 5c9c088

Please sign in to comment.