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
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
@@ -86,7 +85,7 @@ def api2_side_effect(_: httpx.Request):
8685 except Exception as e :
8786 if "with status code: 429" in str (
8887 e
89- ) and 'message: {"status": "RATE_ERROR"}' in str (e ):
88+ ) and 'message: {"status":"RATE_ERROR"}' in str (e ):
9089 pass
9190 else :
9291 raise e
@@ -186,12 +185,16 @@ async def test_querier_text_and_headers():
186185 )
187186
188187 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" )
189193 assert res == {
190194 "bar" : "baz" ,
191195 "_headers" : {
192196 "greet" : "hi" ,
193197 "content-type" : "application/json" ,
194- "content-length" : str (len (json .dumps (body ))),
195198 },
196199 }
197200
You can’t perform that action at this time.
0 commit comments