File tree Expand file tree Collapse file tree 5 files changed +14
-8
lines changed Expand file tree Collapse file tree 5 files changed +14
-8
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
8
8
9
9
## [ unreleased]
10
10
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
+
11
15
## [ 0.28.0]
12
16
- ** [ Breaking] Updates pre-commit hooks to use ` pre-commit ` **
13
17
- Migration:
Original file line number Diff line number Diff line change @@ -18,6 +18,6 @@ pytest-mock==3.14.0
18
18
pytest-rerunfailures==14.0
19
19
pyyaml==6.0.2
20
20
requests-mock==1.12.1
21
- respx==0.21.1
21
+ respx>=0.13.0, <1.0.0
22
22
uvicorn==0.32.0
23
23
-e .
Original file line number Diff line number Diff line change 15
15
# on changes in these frameworks
16
16
"fastapi" : (
17
17
[
18
- "respx==0.21.1" ,
19
18
"fastapi" ,
20
19
"uvicorn" ,
21
20
"python-dotenv==1.0.1" ,
83
82
84
83
setup (
85
84
name = "supertokens_python" ,
86
- version = "0.28.0 " ,
85
+ version = "0.28.1 " ,
87
86
author = "SuperTokens" ,
88
87
license = "Apache 2.0" ,
89
88
116
115
# [crypto] ensures that it installs the `cryptography` library as well
117
116
# based on constraints specified in https://github.com/jpadilla/pyjwt/blob/master/setup.cfg#L50
118
117
"PyJWT[crypto]>=2.5.0,<3.0.0" ,
119
- "httpx>=0.15.0,<=0.27.2 " ,
118
+ "httpx>=0.15.0,<1.0.0 " ,
120
119
"pycryptodome<3.21.0" ,
121
120
"tldextract<5.1.3" ,
122
121
"asgiref>=3.4.1,<4" ,
Original file line number Diff line number Diff line change 15
15
from __future__ import annotations
16
16
17
17
SUPPORTED_CDI_VERSIONS = ["5.2" ]
18
- VERSION = "0.28.0 "
18
+ VERSION = "0.28.1 "
19
19
TELEMETRY = "/telemetry"
20
20
USER_COUNT = "/users/count"
21
21
USER_DELETE = "/user/remove"
Original file line number Diff line number Diff line change 12
12
# License for the specific language governing permissions and limitations
13
13
# under the License.
14
14
import asyncio
15
- import json
16
15
from typing import Any , Dict , Optional
17
16
18
17
import httpx
@@ -86,7 +85,7 @@ def api2_side_effect(_: httpx.Request):
86
85
except Exception as e :
87
86
if "with status code: 429" in str (
88
87
e
89
- ) and 'message: {"status": "RATE_ERROR"}' in str (e ):
88
+ ) and 'message: {"status":"RATE_ERROR"}' in str (e ):
90
89
pass
91
90
else :
92
91
raise e
@@ -186,12 +185,16 @@ async def test_querier_text_and_headers():
186
185
)
187
186
188
187
res = await q .send_get_request (NormalisedURLPath ("/json-api" ), None , None )
188
+ assert "content-length" in res ["_headers" ]
189
+ # httpx 0.28.0 seems to have changed their `json.dumps` signature in https://github.com/encode/httpx/issues/3363
190
+ # Does not make sense to keep up to date with minor changes like this
191
+ # Dropping content-length checks to avoid flake here
192
+ res ["_headers" ].pop ("content-length" )
189
193
assert res == {
190
194
"bar" : "baz" ,
191
195
"_headers" : {
192
196
"greet" : "hi" ,
193
197
"content-type" : "application/json" ,
194
- "content-length" : str (len (json .dumps (body ))),
195
198
},
196
199
}
197
200
You can’t perform that action at this time.
0 commit comments