Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds webp and webm to default extensions #432

Merged
merged 2 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0a12] - 2023-11-?? :fallen_leaf:
## [2.0a12] - 2023-11-17 :fallen_leaf:

- Adds support for Python 3.12, by @bymoye
- Replaces `pkg_resources` with `importlib.resources` for all supported Python
versions except for `3.8`.
- Runs tests against Pydantic `2.4.2` instead of Pydantic `2.0` to check
support for Pydantic v2.
- Upgrades dependencies.
- Adds `.webp` and `.webm` to the list of extensions of files that are served
by default.

## [2.0a11] - 2023-09-19 :warning:

Expand Down
2 changes: 1 addition & 1 deletion blacksheep/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
used types to reduce the verbosity of the imports statements.
"""
__author__ = "Roberto Prevato <[email protected]>"
__version__ = "2.0a11"
__version__ = "2.0a12"

from .contents import Content as Content
from .contents import FormContent as FormContent
Expand Down
2 changes: 2 additions & 0 deletions blacksheep/server/files/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ def get_default_extensions() -> Set[str]:
".svg",
".mp4",
".mp3",
".webp",
".webm",
}


Expand Down
Loading