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" 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, 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, diff --git a/requirements.txt b/requirements.txt index 37a5e3f..105b4ca 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,8 +4,8 @@ wheel==0.37.0 # Testing autoflake==1.4 -black==22.1.0 -CherryPy==18.6.1 +black==23.1.0 +CherryPy==18.8.0 coverage==6.3.2 flake8==4.0.1 flake8-bugbear==22.1.11 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 +) 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}")