mirror of
https://github.com/long2ice/fastapi-cache.git
synced 2026-03-25 13:07:53 +00:00
Compare commits
3 Commits
v0.2.2
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b4396d4d1a | ||
|
|
157a91359b | ||
|
|
567934300b |
2
.github/workflows/ci-cd.yml
vendored
2
.github/workflows/ci-cd.yml
vendored
@@ -41,7 +41,7 @@ jobs:
|
|||||||
- lint
|
- lint
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
python: ["3.8", "3.9", "3.10", "3.11"]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
||||||
name: "Test on Python ${{ matrix.python }}"
|
name: "Test on Python ${{ matrix.python }}"
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ class Coder:
|
|||||||
|
|
||||||
class JsonCoder(Coder):
|
class JsonCoder(Coder):
|
||||||
@classmethod
|
@classmethod
|
||||||
def encode(cls, value: Any) -> bytes:
|
def encode(cls, value: Any) -> Any:
|
||||||
if isinstance(value, JSONResponse):
|
if isinstance(value, JSONResponse):
|
||||||
return value.body
|
return value.body
|
||||||
return json.dumps(value, cls=JsonEncoder).encode()
|
return json.dumps(value, cls=JsonEncoder).encode()
|
||||||
|
|||||||
2698
poetry.lock
generated
2698
poetry.lock
generated
File diff suppressed because one or more lines are too long
@@ -18,12 +18,12 @@ include = ["LICENSE", "README.md"]
|
|||||||
python = "^3.8"
|
python = "^3.8"
|
||||||
fastapi = "*"
|
fastapi = "*"
|
||||||
uvicorn = "*"
|
uvicorn = "*"
|
||||||
redis = { version = "^4.2.0rc1", optional = true }
|
|
||||||
typing-extensions = { version = ">=4.1.0" }
|
typing-extensions = { version = ">=4.1.0" }
|
||||||
importlib-metadata = { version = "^6.6.0", python = "<3.8" }
|
importlib-metadata = { version = "^6.6.0", python = "<3.8" }
|
||||||
pendulum = "^3.0.0"
|
pendulum = "^3.0.0"
|
||||||
aiomcache = { version = "^0.8.2", optional = true }
|
aiomcache = { version = "^0.8.2", optional = true }
|
||||||
aiobotocore = {version = "^2.13.1", optional = true}
|
aiobotocore = {version = "^2.13.1", optional = true}
|
||||||
|
redis = {version = "^5.0.8", extras = ["redis"]}
|
||||||
|
|
||||||
[tool.poetry.group.linting]
|
[tool.poetry.group.linting]
|
||||||
optional = true
|
optional = true
|
||||||
|
|||||||
4
tox.ini
4
tox.ini
@@ -1,13 +1,11 @@
|
|||||||
[tox]
|
[tox]
|
||||||
env_list =
|
env_list = py38,py39,py310,py311
|
||||||
py37,py38,py39,py310,py311
|
|
||||||
minversion = 4.5.1
|
minversion = 4.5.1
|
||||||
|
|
||||||
[gh-actions]
|
[gh-actions]
|
||||||
# Map Github Actions Python version to environment factors
|
# Map Github Actions Python version to environment factors
|
||||||
# Requires tox-gh-actions 3.x is installed in the GitHub action
|
# Requires tox-gh-actions 3.x is installed in the GitHub action
|
||||||
python =
|
python =
|
||||||
3.7: py37
|
|
||||||
3.8: py38
|
3.8: py38
|
||||||
3.9: py39
|
3.9: py39
|
||||||
3.10: py310
|
3.10: py310
|
||||||
|
|||||||
Reference in New Issue
Block a user