Skip to content

Commit 59be79d

Browse files
authored
Merge branch 'master' into cachelib-class-integration
2 parents 9f459e9 + 7fcb14d commit 59be79d

26 files changed

+227
-163
lines changed

.github/workflows/tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
include:
2626
- {name: Linux, python: '3.9', os: ubuntu-latest, tox: py39}
2727
- {name: '3.8', python: '3.8', os: ubuntu-latest, tox: py38}
28-
- {name: '3.7', python: '3.7', os: ubuntu-latest, tox: py37}
2928
- {name: '3.10', python: '3.10', os: ubuntu-latest, tox: py310}
30-
- {name: 'PyPy', python: pypy-3.7, os: ubuntu-latest, tox: pypy37}
29+
- {name: '3.11', python: '3.11', os: ubuntu-latest, tox: py311}
30+
- {name: 'PyPy', python: pypy-3.8, os: ubuntu-latest, tox: pypy38}
3131
- {name: 'mypy', python: '3.9', os: ubuntu-latest, tox: typing}
3232
steps:
3333
- uses: actions/checkout@v2

.pre-commit-config.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,29 @@ ci:
22
autoupdate_schedule: monthly
33
repos:
44
- repo: https://github.com/asottile/pyupgrade
5-
rev: v2.32.0
5+
rev: v3.15.2
66
hooks:
77
- id: pyupgrade
8-
args: ["--py36-plus"]
8+
args: ["--py38-plus"]
99
- repo: https://github.com/asottile/reorder_python_imports
10-
rev: v3.0.1
10+
rev: v3.12.0
1111
hooks:
1212
- id: reorder-python-imports
1313
args: ["--application-directories", "src"]
14-
- repo: https://github.com/psf/black
15-
rev: 22.3.0
16-
hooks:
17-
- id: black
1814
- repo: https://github.com/PyCQA/flake8
19-
rev: 4.0.1
15+
rev: 7.0.0
2016
hooks:
2117
- id: flake8
2218
additional_dependencies:
2319
- flake8-bugbear
2420
- flake8-implicit-str-concat
2521
- repo: https://github.com/pre-commit/pre-commit-hooks
26-
rev: v4.2.0
22+
rev: v4.6.0
2723
hooks:
2824
- id: fix-byte-order-marker
2925
- id: trailing-whitespace
3026
- id: end-of-file-fixer
27+
- repo: https://github.com/psf/black
28+
rev: 24.4.2
29+
hooks:
30+
- id: black

.readthedocs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ sphinx:
1919
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
2020
# python:
2121
# install:
22-
# - requirements: docs/requirements.txt
22+
# - requirements: docs/requirements.txt

CHANGES.rst

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
11
Changelog
22
=========
33

4-
Version 2.1.0
4+
5+
Version 2.3.0
6+
-------------
7+
8+
Released 2024-05-04
9+
10+
- Added ``response_hit_indication`` flag to ``Cache.cached`` decorator for appending 'hit_cache' headers to responses, indicating cache hits.
11+
12+
13+
Version 2.2.0
14+
-------------
15+
16+
- Drop python 3.7 support
17+
- python 3.11 officially supported
18+
- Fix issue causing `args_to_ignore` to not work with `flask_caching.Cache.memoize` decorator when keyword arguments were used in the decorated function call
19+
20+
21+
Version 2.1.0
522
-------------
623

724
Released 2024-10-08
@@ -10,6 +27,7 @@ Released 2024-10-08
1027
- Added docs and example for make_cache_key
1128
- support Flask 3
1229

30+
1331
Version 2.0.2
1432
-------------
1533

docs/index.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ from other parameters in a request. An example usecase would be for caching POST
143143
Where the cache key should be derived from the data in that request, rather than just the
144144
route/view itself.
145145

146-
``make_cache_key`` can be used to specify such a function. The function should return a
146+
``make_cache_key`` can be used to specify such a function. The function should return a
147147
string which should act like the key to the required value that is being cached::
148148

149149
def make_key():
@@ -406,8 +406,8 @@ The following configuration values exist for Flask-Caching:
406406
deletion process will be ignored. However, if
407407
it is set to ``False`` it will stop on the
408408
first error. This option is only relevant for
409-
the backends **filesystem** and **simple**.
410-
Defaults to ``False``.
409+
the backends **FileSystemCache** and
410+
**SimpleCache**. Defaults to ``False``.
411411
``CACHE_THRESHOLD`` The maximum number of items the cache
412412
will store before it starts deleting
413413
some. Used only for SimpleCache and

requirements/dev.txt

+55-56
Original file line numberDiff line numberDiff line change
@@ -1,159 +1,158 @@
11
#
2-
# This file is autogenerated by pip-compile with python 3.7
3-
# To update, run:
2+
# This file is autogenerated by pip-compile with Python 3.11
3+
# by the following command:
44
#
55
# pip-compile dev.in
66
#
7-
alabaster==0.7.12
7+
alabaster==0.7.16
88
# via sphinx
9-
asgiref==3.7.2
9+
asgiref==3.8.1
1010
# via -r tests.in
11-
babel==2.10.3
11+
babel==2.15.0
1212
# via sphinx
13-
build==0.8.0
13+
blinker==1.8.2
14+
# via flask
15+
build==1.2.1
1416
# via pip-tools
15-
cachelib==0.10.2
17+
cachelib==0.13.0
1618
# via -r tests.in
17-
cachetools==5.3.1
19+
cachetools==5.3.3
1820
# via tox
19-
certifi==2023.7.22
21+
certifi==2024.2.2
2022
# via requests
21-
cfgv==3.3.1
23+
cfgv==3.4.0
2224
# via pre-commit
2325
chardet==5.2.0
2426
# via tox
25-
charset-normalizer==2.1.0
27+
charset-normalizer==3.3.2
2628
# via requests
27-
click==8.1.3
29+
click==8.1.7
2830
# via
2931
# flask
3032
# pip-tools
3133
colorama==0.4.6
3234
# via tox
33-
distlib==0.3.7
35+
distlib==0.3.8
3436
# via virtualenv
35-
docutils==0.18.1
37+
docutils==0.21.2
3638
# via
3739
# sphinx
3840
# sphinx-tabs
39-
filelock==3.12.3
41+
filelock==3.14.0
4042
# via
4143
# tox
4244
# virtualenv
43-
flask==2.2.5
45+
flask==3.0.3
4446
# via -r tests.in
45-
identify==2.5.2
47+
identify==2.5.36
4648
# via pre-commit
47-
idna==3.3
49+
idna==3.7
4850
# via requests
4951
imagesize==1.4.1
5052
# via sphinx
51-
iniconfig==1.1.1
53+
iniconfig==2.0.0
5254
# via pytest
53-
itsdangerous==2.1.2
55+
itsdangerous==2.2.0
5456
# via flask
55-
jinja2==3.1.2
57+
jinja2==3.1.4
5658
# via
5759
# flask
5860
# sphinx
59-
markupsafe==2.1.1
61+
markupsafe==2.1.5
6062
# via
6163
# jinja2
6264
# werkzeug
63-
nodeenv==1.7.0
65+
nodeenv==1.8.0
6466
# via pre-commit
65-
packaging==23.1
67+
packaging==24.0
6668
# via
6769
# build
6870
# pallets-sphinx-themes
6971
# pyproject-api
7072
# pytest
7173
# sphinx
7274
# tox
73-
pallets-sphinx-themes==2.0.3
75+
pallets-sphinx-themes==2.1.3
7476
# via -r docs.in
75-
pep517==0.13.0
76-
# via build
77-
pip-tools==7.3.0
77+
pip-tools==7.4.1
7878
# via -r dev.in
79-
platformdirs==3.10.0
79+
platformdirs==4.2.2
8080
# via
8181
# tox
8282
# virtualenv
83-
pluggy==1.3.0
83+
pluggy==1.5.0
8484
# via
8585
# pytest
8686
# tox
87-
pre-commit==3.2.2
87+
pre-commit==3.7.1
8888
# via -r dev.in
89-
psutil==5.9.1
90-
# via pytest-xprocess
91-
py==1.11.0
89+
psutil==5.9.8
9290
# via pytest-xprocess
93-
pygments==2.15.0
91+
pygments==2.18.0
9492
# via
9593
# sphinx
9694
# sphinx-tabs
9795
pylibmc==1.6.3
9896
# via -r tests.in
9997
pyproject-api==1.6.1
10098
# via tox
101-
pytest==7.3.1
99+
pyproject-hooks==1.1.0
100+
# via
101+
# build
102+
# pip-tools
103+
pytest==8.2.0
102104
# via
103105
# -r tests.in
104106
# pytest-asyncio
105107
# pytest-xprocess
106-
pytest-asyncio==0.21.1
108+
pytest-asyncio==0.23.7
107109
# via -r tests.in
108-
pytest-xprocess==0.22.2
110+
pytest-xprocess==1.0.2
109111
# via -r tests.in
110-
pytz==2022.1
111-
# via babel
112-
pyyaml==6.0
112+
pyyaml==6.0.1
113113
# via pre-commit
114-
redis==5.0.0
114+
redis==5.0.4
115115
# via -r tests.in
116116
requests==2.31.0
117117
# via sphinx
118118
snowballstemmer==2.2.0
119119
# via sphinx
120-
sphinx==7.2.6
120+
sphinx==7.3.7
121121
# via
122122
# -r docs.in
123123
# pallets-sphinx-themes
124124
# sphinx-issues
125125
# sphinx-tabs
126126
# sphinxcontrib-log-cabinet
127-
# sphinxcontrib-serializinghtml
128-
sphinx-issues==3.0.1
127+
sphinx-issues==4.1.0
129128
# via -r docs.in
130-
sphinx-tabs==3.4.1
129+
sphinx-tabs==3.4.5
131130
# via -r docs.in
132-
sphinxcontrib-applehelp==1.0.2
131+
sphinxcontrib-applehelp==1.0.8
133132
# via sphinx
134-
sphinxcontrib-devhelp==1.0.2
133+
sphinxcontrib-devhelp==1.0.6
135134
# via sphinx
136-
sphinxcontrib-htmlhelp==2.0.0
135+
sphinxcontrib-htmlhelp==2.0.5
137136
# via sphinx
138137
sphinxcontrib-jsmath==1.0.1
139138
# via sphinx
140139
sphinxcontrib-log-cabinet==1.0.1
141140
# via -r docs.in
142-
sphinxcontrib-qthelp==1.0.3
141+
sphinxcontrib-qthelp==1.0.7
143142
# via sphinx
144-
sphinxcontrib-serializinghtml==1.1.9
143+
sphinxcontrib-serializinghtml==1.1.10
145144
# via sphinx
146-
tox==4.11.0
145+
tox==4.15.0
147146
# via -r dev.in
148-
urllib3==1.26.17
147+
urllib3==2.2.1
149148
# via requests
150-
virtualenv==20.24.4
149+
virtualenv==20.26.2
151150
# via
152151
# pre-commit
153152
# tox
154-
werkzeug==2.2.3
153+
werkzeug==3.0.3
155154
# via flask
156-
wheel==0.38.1
155+
wheel==0.43.0
157156
# via pip-tools
158157

159158
# The following packages are considered to be unsafe in a requirements file:

0 commit comments

Comments
 (0)