From 5ebeab6273242bb118d79af9f1df9b60ea52c2ed Mon Sep 17 00:00:00 2001 From: Johannes Date: Tue, 21 Feb 2023 21:46:44 +0000 Subject: [PATCH 1/7] Test with Python 3.11 --- .github/workflows/test-suite.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index d21cb07..72fa1e1 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] steps: - uses: "actions/checkout@v2" From d53bd55d3ddc2812c07c38b1e41ede75b6112533 Mon Sep 17 00:00:00 2001 From: Johannes Date: Tue, 21 Feb 2023 21:47:57 +0000 Subject: [PATCH 2/7] Add Python 3.11 to classifiers --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index f28d013..1d21468 100644 --- a/setup.py +++ b/setup.py @@ -72,6 +72,7 @@ def get_packages(package): "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3 :: Only", ], -) \ No newline at end of file +) From 435a3bd28f9932a565c0460914db76bdcc162f7a Mon Sep 17 00:00:00 2001 From: Johannes Date: Tue, 21 Feb 2023 21:49:37 +0000 Subject: [PATCH 3/7] Bump black version --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 37a5e3f..d7c7049 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ wheel==0.37.0 # Testing autoflake==1.4 -black==22.1.0 +black==23.1.0 CherryPy==18.6.1 coverage==6.3.2 flake8==4.0.1 From 3e5708061dcfa9b2874bb5084dc6ed7801f62dfc Mon Sep 17 00:00:00 2001 From: Johannes Date: Wed, 22 Feb 2023 00:04:11 +0000 Subject: [PATCH 4/7] Linting fixes --- httpx_caching/_async/_transport.py | 1 - 1 file changed, 1 deletion(-) diff --git a/httpx_caching/_async/_transport.py b/httpx_caching/_async/_transport.py index 3d76c45..cc134e7 100644 --- a/httpx_caching/_async/_transport.py +++ b/httpx_caching/_async/_transport.py @@ -43,7 +43,6 @@ async def handle_async_request( self, request: httpx.Request, ) -> httpx.Response: - caching_protocol = CachingPolicy( request=request, cache_etags=self.cache_etags, From ecb697d0ea69e35beaeb80c9cc5d54335e851d02 Mon Sep 17 00:00:00 2001 From: Johannes Date: Wed, 22 Feb 2023 00:04:32 +0000 Subject: [PATCH 5/7] Linting fixes --- httpx_caching/_sync/_transport.py | 1 - 1 file changed, 1 deletion(-) diff --git a/httpx_caching/_sync/_transport.py b/httpx_caching/_sync/_transport.py index cdadd90..94ae0b7 100644 --- a/httpx_caching/_sync/_transport.py +++ b/httpx_caching/_sync/_transport.py @@ -43,7 +43,6 @@ def handle_request( self, request: httpx.Request, ) -> httpx.Response: - caching_protocol = CachingPolicy( request=request, cache_etags=self.cache_etags, From 3f32aca054ef85fe1605fcf401501d30d95dcbcf Mon Sep 17 00:00:00 2001 From: Johannes Date: Wed, 22 Feb 2023 00:05:08 +0000 Subject: [PATCH 6/7] Linting fixes --- tests/conftest.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 5c7b03a..1a203a0 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -67,7 +67,6 @@ def conditional_get(self, env, start_response): return start_response("304 Not Modified", []) def etag(self, env, start_response): - headers = [("Etag", self.etag_string)] print(f'if none match: {env.get("HTTP_IF_NONE_MATCH")}') print(f"etag_string: {self.etag_string}") From c7e97e6511764c0693b389b7517b8d2f54008fa0 Mon Sep 17 00:00:00 2001 From: Johannes Date: Wed, 22 Feb 2023 00:09:47 +0000 Subject: [PATCH 7/7] Bump cherrypy version --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index d7c7049..105b4ca 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,7 @@ wheel==0.37.0 # Testing autoflake==1.4 black==23.1.0 -CherryPy==18.6.1 +CherryPy==18.8.0 coverage==6.3.2 flake8==4.0.1 flake8-bugbear==22.1.11