Skip to content

Commit

Permalink
⬆️Prepaaring release 0.2.10.
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsil committed Nov 18, 2022
1 parent af06c96 commit 12d6a83
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 14 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,5 @@ jobs:
- name: "Install dependencies"
if: steps.cache.outputs.cache-hit != 'true'
run: "scripts/install"
# - name: "Run linting checks"
# run: "scripts/lint"
# - name: "Build package"
# run: "scripts/build"
- name: "Run tests"
run: "scripts/test"
13 changes: 13 additions & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Release Notes

## 0.2.10

November 18, 2022

## Changed

- Supporting Starlette version 0.22.0.

### Fixed

- `max_age` from [SessionConfig](../docs/configurations/session.md) allowing negative numbers being passed
and can be used for testing purposes or to clear a session.

## 0.2.9

November 15, 2022
Expand Down
2 changes: 1 addition & 1 deletion esmerald/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Esmerald: Highly scalable, performant, easy to learn and for every application.
"""
__version__ = "0.2.9"
__version__ = "0.2.10"

from esmerald.conf import settings
from esmerald.conf.global_settings import EsmeraldAPISettings
Expand Down
7 changes: 0 additions & 7 deletions esmerald/applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@

if TYPE_CHECKING:
from openapi_schemas_pydantic.v3_1_0 import SecurityRequirement
from pydantic.typing import DictAny


class Esmerald(Starlette):
Expand Down Expand Up @@ -541,12 +540,6 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
scope["state"] = {}
await super().__call__(scope, receive, send)

def add_middleware(
self, middleware_class: type, **options: "DictAny"
) -> None: # pragma: no cover
self.user_middleware.insert(0, StarletteMiddleware(middleware_class, **options))
self.middleware_stack = self.build_middleware_stack()

def mount(self, path: str, app: ASGIApp, name: Optional[str] = None) -> None:
raise ImproperlyConfigured("`mount` is not supported by Esmerald. Use Include() instead.")

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ dependencies = [
"python-jose>=3.3.0,<4",
"openapi-schemas-pydantic>=1.0.0",
"orjson >=3.7.11,<4.0.0",
"starlette>=0.22.0",
"starlette==0.22.0",
"ujson>=5.5.0,<6",
]
keywords = ["api", "rest", "http", "asgi", "pydantic", "starlette", "fastapi", "framework", "websocket", "openapi", "ml", "machine learning"]
Expand Down Expand Up @@ -143,7 +143,7 @@ all = [
"python-jose>=3.3.0,<4",
"python-multipart >=0.0.5,<0.0.6",
"requests >=2.24.0,<3.0.0",
"starlette>=0.21.0",
"starlette==0.22.0",
"ujson>=5.5.0,<6",
]

Expand Down

0 comments on commit 12d6a83

Please sign in to comment.