3 Commits
v0.2.2 ... main

Author SHA1 Message Date
long2ice
b2143ef85e Update README.md 2025-06-30 08:20:56 +08:00
long2ice
157a91359b chore: update deps 2024-09-19 15:38:04 +08:00
long2ice
567934300b ci: remove py37 2024-07-24 23:42:19 +08:00
6 changed files with 1189 additions and 1526 deletions

View File

@@ -41,7 +41,7 @@ jobs:
- lint
strategy:
matrix:
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python: ["3.8", "3.9", "3.10", "3.11"]
fail-fast: false
name: "Test on Python ${{ matrix.python }}"

View File

@@ -232,3 +232,7 @@ xdg-open htmlcov/index.html
## License
This project is licensed under the [Apache-2.0](https://github.com/long2ice/fastapi-cache/blob/master/LICENSE) License.
## Sponsor
[![Powered by DartNode](https://dartnode.com/branding/DN-Open-Source-sm.png)](https://dartnode.com "Powered by DartNode - Free VPS for Open Source")

View File

@@ -97,7 +97,7 @@ class Coder:
class JsonCoder(Coder):
@classmethod
def encode(cls, value: Any) -> bytes:
def encode(cls, value: Any) -> Any:
if isinstance(value, JSONResponse):
return value.body
return json.dumps(value, cls=JsonEncoder).encode()

2699
poetry.lock generated

File diff suppressed because one or more lines are too long

View File

@@ -18,12 +18,12 @@ include = ["LICENSE", "README.md"]
python = "^3.8"
fastapi = "*"
uvicorn = "*"
redis = { version = "^4.2.0rc1", optional = true }
typing-extensions = { version = ">=4.1.0" }
importlib-metadata = { version = "^6.6.0", python = "<3.8" }
pendulum = "^3.0.0"
aiomcache = { version = "^0.8.2", optional = true }
aiobotocore = {version = "^2.13.1", optional = true}
redis = {version = "^5.0.8", extras = ["redis"]}
[tool.poetry.group.linting]
optional = true

View File

@@ -1,13 +1,11 @@
[tox]
env_list =
py37,py38,py39,py310,py311
env_list = py38,py39,py310,py311
minversion = 4.5.1
[gh-actions]
# Map Github Actions Python version to environment factors
# Requires tox-gh-actions 3.x is installed in the GitHub action
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310