Skip to content

Commit fffa454

Browse files
authored
Merge branch 'master' into drop-proxies
2 parents 2672d8a + c51e046 commit fffa454

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

CHANGELOG.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1010

1111
* The `proxies` argument is now deprecated and supposed to be replaced by the `proxy` argument. (#2879)
1212

13+
## 0.25.1 (3rd November, 2023)
14+
1315
### Added
1416

1517
* Add support for Python 3.12. (#2854)
@@ -19,7 +21,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1921

2022
* Raise `ValueError` on `Response.encoding` being set after `Response.text` has been accessed. (#2852)
2123

22-
## 0.25.0 (11th Sep, 2023)
24+
## 0.25.0 (11th September, 2023)
2325

2426
### Removed
2527

@@ -67,13 +69,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6769

6870
* The `rfc3986` dependancy has been removed. (#2252)
6971

70-
## 0.23.3 (4th Jan, 2023)
72+
## 0.23.3 (4th January, 2023)
7173

7274
### Fixed
7375

7476
* Version 0.23.2 accidentally included stricter type checking on query parameters. This shouldn've have been included in a minor version bump, and is now reverted. (#2523, #2539)
7577

76-
## 0.23.2 (2nd Jan, 2023)
78+
## 0.23.2 (2nd January, 2023)
7779

7880
### Added
7981

@@ -85,7 +87,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
8587
* Raise `TypeError` if content is passed a dict-instance. (#2495)
8688
* Partially revert the API breaking change in 0.23.1, which removed `RawURL`. We continue to expose a `url.raw` property which is now a plain named-tuple. This API is still expected to be deprecated, but we will do so with a major version bump. (#2481)
8789

88-
## 0.23.1 (18th Nov, 2022)
90+
## 0.23.1 (18th November, 2022)
8991

9092
**Note**: The 0.23.1 release should have used a proper version bump, rather than a minor point release.
9193
There are API surface area changes that may affect some users.

httpx/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
__title__ = "httpx"
22
__description__ = "A next generation HTTP client, for Python 3."
3-
__version__ = "0.25.0"
3+
__version__ = "0.25.1"

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ classifiers = [
2929
]
3030
dependencies = [
3131
"certifi",
32-
"httpcore",
32+
"httpcore==1.*",
3333
"anyio",
3434
"idna",
3535
"sniffio",
@@ -70,6 +70,7 @@ include = [
7070
"/httpx",
7171
"/CHANGELOG.md",
7272
"/README.md",
73+
"/tests",
7374
]
7475

7576
[tool.hatch.metadata.hooks.fancy-pypi-readme]

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ mkautodoc==0.2.0
1515
mkdocs-material==9.4.7
1616

1717
# Packaging
18-
build==0.10.0
18+
build==1.0.3
1919
twine==4.0.2
2020

2121
# Tests & Linting

tests/test_decoders.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import typing
22
import zlib
33

4-
import brotli
54
import chardet
65
import pytest
76

@@ -61,7 +60,7 @@ def test_gzip():
6160

6261
def test_brotli():
6362
body = b"test 123"
64-
compressed_body = brotli.compress(body)
63+
compressed_body = b"\x8b\x03\x80test 123\x03"
6564

6665
headers = [(b"Content-Encoding", b"br")]
6766
response = httpx.Response(
@@ -94,7 +93,7 @@ def test_multi():
9493

9594
def test_multi_with_identity():
9695
body = b"test 123"
97-
compressed_body = brotli.compress(body)
96+
compressed_body = b"\x8b\x03\x80test 123\x03"
9897

9998
headers = [(b"Content-Encoding", b"br, identity")]
10099
response = httpx.Response(
@@ -153,8 +152,7 @@ def test_decoders_empty_cases(header_value):
153152
@pytest.mark.parametrize("header_value", (b"deflate", b"gzip", b"br"))
154153
def test_decoding_errors(header_value):
155154
headers = [(b"Content-Encoding", header_value)]
156-
body = b"test 123"
157-
compressed_body = brotli.compress(body)[3:]
155+
compressed_body = b"invalid"
158156
with pytest.raises(httpx.DecodingError):
159157
request = httpx.Request("GET", "https://example.org")
160158
httpx.Response(200, headers=headers, content=compressed_body, request=request)

0 commit comments

Comments
 (0)