File tree Expand file tree Collapse file tree 5 files changed +14
-10
lines changed
Expand file tree Collapse file tree 5 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
99## [ unreleased]
1010
11+ ## [ 0.28.1] - 2025-02-26
12+ - Pins ` httpx ` and ` respx ` to current major versions (<1.0.0)
13+ - Removes ` respx ` dependency from ` fastapi ` install
14+
1115## [ 0.28.0]
1216- ** [ Breaking] Updates pre-commit hooks to use ` pre-commit ` **
1317 - Migration:
Original file line number Diff line number Diff line change @@ -18,6 +18,6 @@ pytest-mock==3.14.0
1818pytest-rerunfailures==14.0
1919pyyaml==6.0.2
2020requests-mock==1.12.1
21- respx==0.21.1
21+ respx>=0.13.0, <1.0.0
2222uvicorn==0.32.0
2323-e .
Original file line number Diff line number Diff line change 1515 # on changes in these frameworks
1616 "fastapi" : (
1717 [
18- "respx==0.21.1" ,
1918 "fastapi" ,
2019 "uvicorn" ,
2120 "python-dotenv==1.0.1" ,
8382
8483setup (
8584 name = "supertokens_python" ,
86- version = "0.28.0 " ,
85+ version = "0.28.1 " ,
8786 author = "SuperTokens" ,
8887 license = "Apache 2.0" ,
8988116115 # [crypto] ensures that it installs the `cryptography` library as well
117116 # based on constraints specified in https://github.com/jpadilla/pyjwt/blob/master/setup.cfg#L50
118117 "PyJWT[crypto]>=2.5.0,<3.0.0" ,
119- "httpx>=0.15.0,<=0.27.2 " ,
118+ "httpx>=0.15.0,<1.0.0 " ,
120119 "pycryptodome<3.21.0" ,
121120 "tldextract<5.1.3" ,
122121 "asgiref>=3.4.1,<4" ,
Original file line number Diff line number Diff line change 1515from __future__ import annotations
1616
1717SUPPORTED_CDI_VERSIONS = ["5.2" ]
18- VERSION = "0.28.0 "
18+ VERSION = "0.28.1 "
1919TELEMETRY = "/telemetry"
2020USER_COUNT = "/users/count"
2121USER_DELETE = "/user/remove"
Original file line number Diff line number Diff line change 1212# License for the specific language governing permissions and limitations
1313# under the License.
1414import asyncio
15- import json
1615from typing import Any , Dict , Optional
1716
1817import httpx
@@ -84,9 +83,7 @@ def api2_side_effect(_: httpx.Request):
8483 try :
8584 await q .send_get_request (NormalisedURLPath ("/api1" ), None , None )
8685 except Exception as e :
87- if "with status code: 429" in str (
88- e
89- ) and 'message: {"status": "RATE_ERROR"}' in str (e ):
86+ if "with status code: 429" in str (e ) and '"RATE_ERROR"' in str (e ):
9087 pass
9188 else :
9289 raise e
@@ -186,12 +183,16 @@ async def test_querier_text_and_headers():
186183 )
187184
188185 res = await q .send_get_request (NormalisedURLPath ("/json-api" ), None , None )
186+ assert "content-length" in res ["_headers" ]
187+ # httpx 0.28.0 seems to have changed their `json.dumps` signature in https://github.com/encode/httpx/issues/3363
188+ # Does not make sense to keep up to date with minor changes like this
189+ # Dropping content-length checks to avoid flake here
190+ res ["_headers" ].pop ("content-length" )
189191 assert res == {
190192 "bar" : "baz" ,
191193 "_headers" : {
192194 "greet" : "hi" ,
193195 "content-type" : "application/json" ,
194- "content-length" : str (len (json .dumps (body ))),
195196 },
196197 }
197198
You can’t perform that action at this time.
0 commit comments