CacheControl 0.14.2__tar.gz → 0.14.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/PKG-INFO +5 -5
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/cachecontrol/__init__.py +1 -1
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/pyproject.toml +4 -5
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/tests/test_adapter.py +7 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/LICENSE.txt +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/README.rst +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/cachecontrol/_cmd.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/cachecontrol/adapter.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/cachecontrol/cache.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/cachecontrol/caches/__init__.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/cachecontrol/caches/file_cache.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/cachecontrol/caches/redis_cache.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/cachecontrol/controller.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/cachecontrol/filewrapper.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/cachecontrol/heuristics.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/cachecontrol/py.typed +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/cachecontrol/serialize.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/cachecontrol/wrapper.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/tests/__init__.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/tests/conftest.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/tests/issue_263.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/tests/test_cache_control.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/tests/test_chunked_response.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/tests/test_etag.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/tests/test_expires_heuristics.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/tests/test_max_age.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/tests/test_redirects.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/tests/test_regressions.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/tests/test_serialization.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/tests/test_server_http_version.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/tests/test_storage_filecache.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/tests/test_storage_redis.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/tests/test_vary.py +0 -0
- {cachecontrol-0.14.2 → cachecontrol-0.14.3}/tests/utils.py +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: CacheControl
|
|
3
|
-
Version: 0.14.
|
|
3
|
+
Version: 0.14.3
|
|
4
4
|
Summary: httplib2 caching for requests
|
|
5
5
|
Keywords: requests,http,caching,web
|
|
6
6
|
Author-email: Eric Larson <ericlarson@ionrock.com>, Frost Ming <me@frostming.com>, William Woodruff <william@yossarian.net>
|
|
7
|
-
Requires-Python: >=3.
|
|
7
|
+
Requires-Python: >=3.9
|
|
8
8
|
Description-Content-Type: text/x-rst
|
|
9
|
+
License-Expression: Apache-2.0
|
|
9
10
|
Classifier: Development Status :: 4 - Beta
|
|
10
11
|
Classifier: Environment :: Web Environment
|
|
11
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
12
|
Classifier: Operating System :: OS Independent
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
14
13
|
Classifier: Programming Language :: Python :: 3.9
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.10
|
|
16
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
17
16
|
Classifier: Programming Language :: Python :: 3.12
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.13
|
|
19
18
|
Classifier: Topic :: Internet :: WWW/HTTP
|
|
19
|
+
License-File: LICENSE.txt
|
|
20
20
|
Requires-Dist: requests >= 2.16.0
|
|
21
21
|
Requires-Dist: msgpack >= 0.5.2, < 2.0.0
|
|
22
22
|
Requires-Dist: CacheControl[filecache, redis] ; extra == "dev"
|
|
@@ -9,7 +9,7 @@ Make it easy to import from cachecontrol without long namespaces.
|
|
|
9
9
|
|
|
10
10
|
__author__ = "Eric Larson"
|
|
11
11
|
__email__ = "eric@ionrock.org"
|
|
12
|
-
__version__ = "0.14.
|
|
12
|
+
__version__ = "0.14.3"
|
|
13
13
|
|
|
14
14
|
from cachecontrol.adapter import CacheControlAdapter
|
|
15
15
|
from cachecontrol.controller import CacheController
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["flit_core >=3.
|
|
2
|
+
requires = ["flit_core >=3.11,<4"]
|
|
3
3
|
build-backend = "flit_core.buildapi"
|
|
4
4
|
|
|
5
5
|
[tool.flit.module]
|
|
@@ -13,7 +13,8 @@ name = "CacheControl"
|
|
|
13
13
|
dynamic = ["version"]
|
|
14
14
|
description = "httplib2 caching for requests"
|
|
15
15
|
readme = "README.rst"
|
|
16
|
-
license =
|
|
16
|
+
license = "Apache-2.0"
|
|
17
|
+
license-files = ["LICENSE.txt"]
|
|
17
18
|
authors = [
|
|
18
19
|
{ name = "Eric Larson", email = "ericlarson@ionrock.com" },
|
|
19
20
|
{ name = "Frost Ming", email = "me@frostming.com" },
|
|
@@ -22,9 +23,7 @@ authors = [
|
|
|
22
23
|
classifiers = [
|
|
23
24
|
"Development Status :: 4 - Beta",
|
|
24
25
|
"Environment :: Web Environment",
|
|
25
|
-
"License :: OSI Approved :: Apache Software License",
|
|
26
26
|
"Operating System :: OS Independent",
|
|
27
|
-
"Programming Language :: Python :: 3.8",
|
|
28
27
|
"Programming Language :: Python :: 3.9",
|
|
29
28
|
"Programming Language :: Python :: 3.10",
|
|
30
29
|
"Programming Language :: Python :: 3.11",
|
|
@@ -34,7 +33,7 @@ classifiers = [
|
|
|
34
33
|
]
|
|
35
34
|
keywords = ["requests", "http", "caching", "web"]
|
|
36
35
|
dependencies = ["requests >= 2.16.0", "msgpack >= 0.5.2, < 2.0.0"]
|
|
37
|
-
requires-python = ">=3.
|
|
36
|
+
requires-python = ">=3.9"
|
|
38
37
|
|
|
39
38
|
[project.urls]
|
|
40
39
|
Homepage = "https://pypi.org/project/CacheControl/"
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
# SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
|
|
5
5
|
import gc
|
|
6
|
+
import platform
|
|
6
7
|
import weakref
|
|
7
8
|
from unittest import mock
|
|
8
9
|
|
|
@@ -82,6 +83,12 @@ class TestSessionActions:
|
|
|
82
83
|
# We should not break this.
|
|
83
84
|
|
|
84
85
|
resp = None
|
|
86
|
+
if platform.python_implementation() == "PyPy":
|
|
87
|
+
# NOTE: Need to explicitly tell PyPy to collect at this point.
|
|
88
|
+
# See: https://github.com/psf/cachecontrol/issues/351
|
|
89
|
+
# See: https://doc.pypy.org/en/latest/cpython_differences.html#differences-related-to-garbage-collection-strategies
|
|
90
|
+
gc.collect()
|
|
91
|
+
|
|
85
92
|
# Below this point, it should be closed because there are no more references
|
|
86
93
|
# to the session response.
|
|
87
94
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|