]> git.ipfire.org Git - thirdparty/httpx.git/log
thirdparty/httpx.git
2 years agoBump pytest from 7.3.1 to 7.4.0 (#2751)
dependabot[bot] [Mon, 3 Jul 2023 08:48:29 +0000 (09:48 +0100)] 
Bump pytest from 7.3.1 to 7.4.0 (#2751)

Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.3.1 to 7.4.0.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/7.3.1...7.4.0)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoFix sample in quickstart.md (#2747)
Johnny Lim [Thu, 22 Jun 2023 08:44:44 +0000 (17:44 +0900)] 
Fix sample in quickstart.md (#2747)

2 years agoasync recommendations (#2727)
Trond Hindenes [Thu, 15 Jun 2023 09:20:28 +0000 (10:20 +0100)] 
async recommendations (#2727)

* async recommendations

* better

* Update docs/async.md

Co-authored-by: Tom Christie <tom@tomchristie.com>
* added async recommendation tweak

---------

Co-authored-by: Tom Christie <tom@tomchristie.com>
2 years agoAlways encode forward slashes as `%2F` in query parameters (#2723)
Zanie Adkins [Fri, 9 Jun 2023 09:06:56 +0000 (04:06 -0500)] 
Always encode forward slashes as `%2F` in query parameters (#2723)

* Always encode forward slashes as `%2F` in query parameters

* Revert inclusion of "%"

This is expected to fail tests due to double escaping

* Update `urlencode`

---------

Co-authored-by: Tom Christie <tom@tomchristie.com>
2 years agoFix URLPattern examples (#2740)
Karen Petrosyan [Thu, 8 Jun 2023 12:32:18 +0000 (16:32 +0400)] 
Fix URLPattern examples (#2740)

Co-authored-by: Tom Christie <tom@tomchristie.com>
2 years agoBump mkdocs-material from 9.1.5 to 9.1.15 (#2729)
dependabot[bot] [Tue, 6 Jun 2023 09:24:53 +0000 (10:24 +0100)] 
Bump mkdocs-material from 9.1.5 to 9.1.15 (#2729)

Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.1.5 to 9.1.15.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.1.5...9.1.15)

---
updated-dependencies:
- dependency-name: mkdocs-material
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
2 years agoBump pytest from 7.2.2 to 7.3.1 (#2731)
dependabot[bot] [Tue, 6 Jun 2023 09:20:00 +0000 (10:20 +0100)] 
Bump pytest from 7.2.2 to 7.3.1 (#2731)

Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.2.2 to 7.3.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/7.2.2...7.3.1)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
2 years agoBump mypy from 1.0.1 to 1.3.0 (#2732)
dependabot[bot] [Tue, 6 Jun 2023 09:14:50 +0000 (10:14 +0100)] 
Bump mypy from 1.0.1 to 1.3.0 (#2732)

Bumps [mypy](https://github.com/python/mypy) from 1.0.1 to 1.3.0.
- [Commits](https://github.com/python/mypy/compare/v1.0.1...v1.3.0)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump cryptography from 40.0.2 to 41.0.0 (#2735)
dependabot[bot] [Fri, 2 Jun 2023 20:33:26 +0000 (14:33 -0600)] 
Bump cryptography from 40.0.2 to 41.0.0 (#2735)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump mkdocs from 1.4.2 to 1.4.3 (#2730)
dependabot[bot] [Thu, 1 Jun 2023 16:59:45 +0000 (10:59 -0600)] 
Bump mkdocs from 1.4.2 to 1.4.3 (#2730)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoAdd `socket_options` argument to `httpx.HTTPTransport` class (#2716)
Karen Petrosyan [Wed, 24 May 2023 08:42:39 +0000 (04:42 -0400)] 
Add `socket_options` argument to `httpx.HTTPTransport` class (#2716)

* Add `socket_options` argument to `httpx.HTTPTransport` and `httpx.AsyncHTTPTransport` classes

* Update changelog

* Fix changelog format

* Set httpcore's minimum version to 0.17.2

* Remove SOCKET_OPTIONS import

2 years agoFix exception suppression in asgi transport (#2669)
Nik [Sun, 21 May 2023 00:17:23 +0000 (02:17 +0200)] 
Fix exception suppression in asgi transport (#2669)

2 years agoUpdate changelog with WSGITransport SERVER_PROTOCOL fix (#2711)
Peter Lazorchak [Fri, 19 May 2023 17:18:00 +0000 (10:18 -0700)] 
Update changelog with WSGITransport SERVER_PROTOCOL fix (#2711)

2 years agoEnsure all WSGITransport environs have a SERVER_PROTOCOL (#2708)
Peter Lazorchak [Fri, 19 May 2023 10:38:18 +0000 (03:38 -0700)] 
Ensure all WSGITransport environs have a SERVER_PROTOCOL (#2708)

2 years agoVersion 0.24.1 (#2702) 0.24.1
epenet [Thu, 18 May 2023 11:03:21 +0000 (13:03 +0200)] 
Version 0.24.1 (#2702)

* Version 0.24.1

* Update CHANGELOG.md

* Update CHANGELOG.md

2 years agoFix for gen-delims escaping behaviour in path/query/fragment (#2701)
Tom Christie [Tue, 9 May 2023 13:20:12 +0000 (14:20 +0100)] 
Fix for gen-delims escaping behaviour in path/query/fragment (#2701)

2 years agoMove configuration of tools to pyproject.toml (#2686)
Bartosz Sokorski [Wed, 3 May 2023 13:13:40 +0000 (15:13 +0200)] 
Move configuration of tools to pyproject.toml (#2686)

Co-authored-by: Tom Christie <tom@tomchristie.com>
2 years agoBump trio-typing from 0.7.0 to 0.8.0 (#2688)
dependabot[bot] [Mon, 1 May 2023 18:15:35 +0000 (12:15 -0600)] 
Bump trio-typing from 0.7.0 to 0.8.0 (#2688)

Bumps [trio-typing](https://github.com/python-trio/trio-typing) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/python-trio/trio-typing/releases)
- [Commits](https://github.com/python-trio/trio-typing/compare/v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: trio-typing
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump types-chardet from 5.0.4.2 to 5.0.4.5 (#2689)
dependabot[bot] [Mon, 1 May 2023 18:00:42 +0000 (12:00 -0600)] 
Bump types-chardet from 5.0.4.2 to 5.0.4.5 (#2689)

Bumps [types-chardet](https://github.com/python/typeshed) from 5.0.4.2 to 5.0.4.5.
- [Release notes](https://github.com/python/typeshed/releases)
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-chardet
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump trustme from 0.9.0 to 1.0.0 (#2690)
dependabot[bot] [Mon, 1 May 2023 17:43:47 +0000 (11:43 -0600)] 
Bump trustme from 0.9.0 to 1.0.0 (#2690)

Bumps [trustme](https://github.com/python-trio/trustme) from 0.9.0 to 1.0.0.
- [Release notes](https://github.com/python-trio/trustme/releases)
- [Commits](https://github.com/python-trio/trustme/compare/v0.9.0...v1.0.0)

---
updated-dependencies:
- dependency-name: trustme
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump cryptography from 39.0.1 to 40.0.2 (#2692)
dependabot[bot] [Mon, 1 May 2023 17:40:51 +0000 (11:40 -0600)] 
Bump cryptography from 39.0.1 to 40.0.2 (#2692)

Bumps [cryptography](https://github.com/pyca/cryptography) from 39.0.1 to 40.0.2.
- [Release notes](https://github.com/pyca/cryptography/releases)
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/39.0.1...40.0.2)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump uvicorn from 0.20.0 to 0.22.0 (#2691)
dependabot[bot] [Mon, 1 May 2023 17:17:31 +0000 (11:17 -0600)] 
Bump uvicorn from 0.20.0 to 0.22.0 (#2691)

Bumps [uvicorn](https://github.com/encode/uvicorn) from 0.20.0 to 0.22.0.
- [Release notes](https://github.com/encode/uvicorn/releases)
- [Changelog](https://github.com/encode/uvicorn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/encode/uvicorn/compare/0.20.0...0.22.0)

---
updated-dependencies:
- dependency-name: uvicorn
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoAdd httpx-sse to Third Party Packages (#2683)
Florimond Manca [Fri, 28 Apr 2023 06:52:16 +0000 (08:52 +0200)] 
Add httpx-sse to Third Party Packages (#2683)

2 years agoFix ruff error and script (#2680)
Amin Alaee [Wed, 26 Apr 2023 07:34:33 +0000 (09:34 +0200)] 
Fix ruff error and script (#2680)

2 years agoMore robust check for upload files in binary mode (#2630)
Leon Kuchenbecker [Thu, 20 Apr 2023 11:52:44 +0000 (13:52 +0200)] 
More robust check for upload files in binary mode (#2630)

* Fix check for binary mode

* Change order of type checks

---------

Co-authored-by: Tom Christie <tom@tomchristie.com>
2 years agoAdditional context in InvalidURL exceptions (#2675)
Tom Christie [Thu, 20 Apr 2023 11:17:44 +0000 (12:17 +0100)] 
Additional context in InvalidURL exceptions (#2675)

2 years agoDrop private imports from test_decoders.py (#2570)
Florimond Manca [Wed, 19 Apr 2023 13:16:29 +0000 (15:16 +0200)] 
Drop private imports from test_decoders.py (#2570)

Co-authored-by: Tom Christie <tom@tomchristie.com>
2 years agoBump mkdocs-material from 9.0.15 to 9.1.5 (#2640)
dependabot[bot] [Wed, 19 Apr 2023 12:48:56 +0000 (13:48 +0100)] 
Bump mkdocs-material from 9.0.15 to 9.1.5 (#2640)

Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.0.15 to 9.1.5.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.0.15...9.1.5)

---
updated-dependencies:
- dependency-name: mkdocs-material
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
2 years agoFix optional percent encoding behaviour. (#2671)
Tom Christie [Wed, 19 Apr 2023 12:21:42 +0000 (13:21 +0100)] 
Fix optional percent encoding behaviour. (#2671)

* Tests for failing optional percent encoding

* Linting

* Fix for optional percent escaping

2 years agofix: NO_PROXY should support IPv4, IPv6 and localhost (#2659)
Jiayun Shen [Wed, 19 Apr 2023 12:14:37 +0000 (20:14 +0800)] 
fix: NO_PROXY should support IPv4, IPv6 and localhost (#2659)

* fix: NO_PROXY supports IPv4, IPv6 and localhost

* add more tests for test_get_environment_proxies

---------

Co-authored-by: Tom Christie <tom@tomchristie.com>
2 years agoUpdate PULL_REQUEST_TEMPLATE.md (#2672)
Tom Christie [Wed, 19 Apr 2023 11:43:58 +0000 (12:43 +0100)] 
Update PULL_REQUEST_TEMPLATE.md (#2672)

2 years agoUpdate PULL_REQUEST_TEMPLATE.md (#2668)
Marcelo Trylesinski [Wed, 19 Apr 2023 08:29:40 +0000 (10:29 +0200)] 
Update PULL_REQUEST_TEMPLATE.md (#2668)

2 years agoFixes #2666: None is the default value of file for httpx.NetRCAuth (#2667)
Alex Prengère [Tue, 18 Apr 2023 09:03:01 +0000 (11:03 +0200)] 
Fixes #2666: None is the default value of file for httpx.NetRCAuth (#2667)

2 years agoset logging request lines to INFO level for async method also (#2656)
Piotr Staroszczyk [Wed, 12 Apr 2023 14:53:11 +0000 (16:53 +0200)] 
set logging request lines to INFO level for async method also (#2656)

2 years agoVersion 0.24.0 (#2652) 0.24.0
Tom Christie [Tue, 11 Apr 2023 10:00:02 +0000 (11:00 +0100)] 
Version 0.24.0 (#2652)

* Version 0.24.0

* Typo

* Update CHANGELOG.md

2 years agoUse ruff instead of flake8, autoflake and isort (#2648)
Marcelo Trylesinski [Wed, 5 Apr 2023 10:37:10 +0000 (12:37 +0200)] 
Use ruff instead of flake8, autoflake and isort (#2648)

* Use ruff instead of flake8, autoflake and isort

* Update pyproject.toml

2 years agoBump coverage from 7.2.1 to 7.2.2 (#2641)
dependabot[bot] [Wed, 5 Apr 2023 10:17:42 +0000 (11:17 +0100)] 
Bump coverage from 7.2.1 to 7.2.2 (#2641)

Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.2.1 to 7.2.2.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.2.1...7.2.2)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoUpdate httpcore requirement from <0.17.0,>=0.15.0 to >=0.15.0,<0.18.0 (#2642)
dependabot[bot] [Wed, 5 Apr 2023 10:05:31 +0000 (11:05 +0100)] 
Update httpcore requirement from <0.17.0,>=0.15.0 to >=0.15.0,<0.18.0 (#2642)

Updates the requirements on [httpcore](https://github.com/encode/httpcore) to permit the latest version.
- [Release notes](https://github.com/encode/httpcore/releases)
- [Changelog](https://github.com/encode/httpcore/blob/master/CHANGELOG.md)
- [Commits](https://github.com/encode/httpcore/compare/0.15.0...0.17.0)

---
updated-dependencies:
- dependency-name: httpcore
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump pytest from 7.2.1 to 7.2.2 (#2643)
dependabot[bot] [Sun, 2 Apr 2023 09:00:39 +0000 (11:00 +0200)] 
Bump pytest from 7.2.1 to 7.2.2 (#2643)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump black from 22.10.0 to 23.3.0 (#2644)
dependabot[bot] [Sun, 2 Apr 2023 08:50:53 +0000 (10:50 +0200)] 
Bump black from 22.10.0 to 23.3.0 (#2644)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoUse standard logging style (#2547)
Tom Christie [Mon, 20 Mar 2023 11:30:11 +0000 (11:30 +0000)] 
Use standard logging style (#2547)

* Use standard logging style

* Add docs for logging

* Drop out-of-date HTTPX_LOG_LEVEL variable docs

2 years agoChange LineDecoder to match stdlib splitlines, resulting in significant speed up...
Gianni Tedesco [Thu, 16 Mar 2023 14:29:15 +0000 (23:29 +0900)] 
Change LineDecoder to match stdlib splitlines, resulting in significant speed up (#2423)

* Replace quadratic algo in LineDecoder

Leading to enormous speedups when doing things such as
Response(...).iter_lines() as described on issue #2422

* Update httpx/_decoders.py

* Update _decoders.py

Handle text ending in `\r` more gracefully.
Return as much content as possible.

* Update test_decoders.py

* Update _decoders.py

* Update _decoders.py

* Update _decoders.py

* Update httpx/_decoders.py

Co-authored-by: cdeler <serj.krotov@gmail.com>
* Update _decoders.py

---------

Co-authored-by: Tom Christie <tom@tomchristie.com>
Co-authored-by: cdeler <serj.krotov@gmail.com>
2 years agoUpdate _client.py
Tom Christie [Wed, 15 Mar 2023 10:11:01 +0000 (10:11 +0000)] 
Update _client.py

2 years agoUpdate _client.py
Tom Christie [Wed, 15 Mar 2023 10:07:09 +0000 (10:07 +0000)] 
Update _client.py

2 years agoAdd sslcontext to the asynclient docstring (#2609)
bpoirriez [Mon, 13 Mar 2023 12:06:21 +0000 (13:06 +0100)] 
Add sslcontext to the asynclient docstring (#2609)

Co-authored-by: Tom Christie <tom@tomchristie.com>
2 years agoBump mkdocs-material from 8.5.11 to 9.0.15 (#2610)
dependabot[bot] [Mon, 6 Mar 2023 11:32:02 +0000 (11:32 +0000)] 
Bump mkdocs-material from 8.5.11 to 9.0.15 (#2610)

* Bump mkdocs-material from 8.5.11 to 9.0.15

Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 8.5.11 to 9.0.15.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Upgrade guide](https://github.com/squidfunk/mkdocs-material/blob/master/docs/upgrade.md)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/8.5.11...9.0.15)

---
updated-dependencies:
- dependency-name: mkdocs-material
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
* Bump `mkdocs` to minimum version required by `mkdocs-material-9.0.15`

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Michael Adkins <michael@prefect.io>
Co-authored-by: Tom Christie <tom@tomchristie.com>
2 years agoBump types-chardet from 5.0.3 to 5.0.4.2 (#2613)
dependabot[bot] [Mon, 6 Mar 2023 11:29:01 +0000 (11:29 +0000)] 
Bump types-chardet from 5.0.3 to 5.0.4.2 (#2613)

Bumps [types-chardet](https://github.com/python/typeshed) from 5.0.3 to 5.0.4.2.
- [Release notes](https://github.com/python/typeshed/releases)
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-chardet
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump mypy from 0.982 to 1.0.1 (#2611)
dependabot[bot] [Wed, 1 Mar 2023 17:53:54 +0000 (11:53 -0600)] 
Bump mypy from 0.982 to 1.0.1 (#2611)

* Bump mypy from 0.982 to 1.0.1

Bumps [mypy](https://github.com/python/mypy) from 0.982 to 1.0.1.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.982...v1.0.1)

---
updated-dependencies:
- dependency-name: mypy
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
* Remove unused ignores for mypy-1.0.1

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Michael Adkins <michael@prefect.io>
2 years agoBump pytest from 7.2.0 to 7.2.1 (#2612)
dependabot[bot] [Wed, 1 Mar 2023 17:26:09 +0000 (18:26 +0100)] 
Bump pytest from 7.2.0 to 7.2.1 (#2612)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump coverage from 6.5.0 to 7.2.1 (#2614)
dependabot[bot] [Wed, 1 Mar 2023 17:13:03 +0000 (18:13 +0100)] 
Bump coverage from 6.5.0 to 7.2.1 (#2614)

Bumps [coverage](https://github.com/nedbat/coveragepy) from 6.5.0 to 7.2.1.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/6.5.0...7.2.1)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years agoDrop private imports from test_urlparse.py (#2572)
Florimond Manca [Wed, 15 Feb 2023 14:43:19 +0000 (15:43 +0100)] 
Drop private imports from test_urlparse.py (#2572)

* Drop private imports from test_urlparse.py

* Coverage

* Drop ._uri_reference

3 years agofix type annotation for MockTransport (#2581)
Adrian Garcia Badaracco [Thu, 9 Feb 2023 16:05:07 +0000 (08:05 -0800)] 
fix type annotation for MockTransport (#2581)

* fix type annotation for MockTransport

* add type ignore

* better type checks

* better type checks

* add pragma

---------

Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoDrop private imports from test_exported_members.py (#2573)
Florimond Manca [Thu, 9 Feb 2023 16:00:27 +0000 (17:00 +0100)] 
Drop private imports from test_exported_members.py (#2573)

Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoDrop private imports in tests/conftest.py (#2569)
Florimond Manca [Thu, 9 Feb 2023 15:54:53 +0000 (16:54 +0100)] 
Drop private imports in tests/conftest.py (#2569)

Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoDrop private imports from test_main.py (#2574)
Florimond Manca [Thu, 9 Feb 2023 15:50:09 +0000 (16:50 +0100)] 
Drop private imports from test_main.py (#2574)

Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoDrop private imports from test_exceptions.py (#2571)
Florimond Manca [Thu, 9 Feb 2023 00:35:52 +0000 (01:35 +0100)] 
Drop private imports from test_exceptions.py (#2571)

3 years agoBump cryptography from 38.0.4 to 39.0.1 (#2579)
dependabot[bot] [Wed, 8 Feb 2023 12:20:04 +0000 (13:20 +0100)] 
Bump cryptography from 38.0.4 to 39.0.1 (#2579)

Bumps [cryptography](https://github.com/pyca/cryptography) from 38.0.4 to 39.0.1.
- [Release notes](https://github.com/pyca/cryptography/releases)
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/38.0.4...39.0.1)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years agoRemove rfc3986 from Chinese readme (#2576)
Paul Schreiber [Mon, 6 Feb 2023 17:42:35 +0000 (12:42 -0500)] 
Remove rfc3986 from Chinese readme (#2576)

fix https://github.com/encode/httpx/pull/2252

3 years agoBump trio from 0.21.0 to 0.22.0 (#2562)
dependabot[bot] [Sat, 4 Feb 2023 22:18:36 +0000 (23:18 +0100)] 
Bump trio from 0.21.0 to 0.22.0 (#2562)

* Bump trio from 0.21.0 to 0.22.0

Bumps [trio](https://github.com/python-trio/trio) from 0.21.0 to 0.22.0.
- [Release notes](https://github.com/python-trio/trio/releases)
- [Commits](https://github.com/python-trio/trio/compare/v0.21.0...v0.22.0)

---
updated-dependencies:
- dependency-name: trio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
* Ignore MultiError deprecation warning, it will disappear with anyio 4

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: florimondmanca <florimond.manca@protonmail.com>
3 years agoBump isort from 5.11.4 to 5.12.0 (#2563)
dependabot[bot] [Sat, 4 Feb 2023 22:06:00 +0000 (23:06 +0100)] 
Bump isort from 5.11.4 to 5.12.0 (#2563)

* Bump isort from 5.11.4 to 5.12.0

Bumps [isort](https://github.com/pycqa/isort) from 5.11.4 to 5.12.0.
- [Release notes](https://github.com/pycqa/isort/releases)
- [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pycqa/isort/compare/5.11.4...5.12.0)

---
updated-dependencies:
- dependency-name: isort
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
* Update requirements.txt

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>
3 years agoBump twine from 4.0.1 to 4.0.2 (#2565)
dependabot[bot] [Wed, 1 Feb 2023 17:27:53 +0000 (18:27 +0100)] 
Bump twine from 4.0.1 to 4.0.2 (#2565)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years agoBump build from 0.8.0 to 0.10.0 (#2564)
dependabot[bot] [Wed, 1 Feb 2023 16:27:46 +0000 (17:27 +0100)] 
Bump build from 0.8.0 to 0.10.0 (#2564)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years agoBump flake8-bugbear from 22.7.1 to 23.1.20 (#2561)
dependabot[bot] [Wed, 1 Feb 2023 16:18:21 +0000 (17:18 +0100)] 
Bump flake8-bugbear from 22.7.1 to 23.1.20 (#2561)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years agoAdd `NetRCAuth()` class. (#2535)
Tom Christie [Thu, 12 Jan 2023 11:27:46 +0000 (11:27 +0000)] 
Add `NetRCAuth()` class. (#2535)

* NetRCAuth class

* Add docs for httpx.NetRCAuth()

* Drop failing cross-domain test for NetRCAuth()

* Update tests

* Update httpx/_auth.py

* Add tests for netrc file with no password

3 years agoDrop private import of 'encode_request' in test_multipart (#2525)
Tom Christie [Tue, 10 Jan 2023 11:23:14 +0000 (11:23 +0000)] 
Drop private import of 'encode_request' in test_multipart (#2525)

3 years agoUse '%20' for encoding spaces in query parameters. (#2543)
Tom Christie [Tue, 10 Jan 2023 11:16:09 +0000 (11:16 +0000)] 
Use '%20' for encoding spaces in query parameters. (#2543)

* Add failing test

* Fix failing test case

* Add urlencode

* Update comment

3 years agoDrop `rfc3986` requirement. (#2252)
Tom Christie [Tue, 10 Jan 2023 10:36:15 +0000 (10:36 +0000)] 
Drop `rfc3986` requirement. (#2252)

* Drop RawURL

* First pass at adding urlparse

* Update urlparse

* Add urlparse

* Add urlparse

* Unicode non-printables can be valid in IDNA hostnames

* Update _urlparse.py docstring

* Linting

* Trim away ununsed codepaths

* Tweaks for path validation depending on scheme and authority presence

* Minor cleanups

* Minor cleanups

* full_path -> raw_path, forr internal consistency

* Linting fixes

* Drop rfc3986 dependency

* Add test for #1833

* Linting

* Drop 'rfc3986' dependancy from README and docs homepage

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
3 years agoBump rich pin to allow version 13 (#2546)
Michał Górny [Thu, 5 Jan 2023 12:38:37 +0000 (13:38 +0100)] 
Bump rich pin to allow version 13 (#2546)

See https://github.com/encode/httpx/discussions/2544

3 years agoVersion 0.23.3 (#2540) 0.23.3
Tom Christie [Wed, 4 Jan 2023 09:39:43 +0000 (09:39 +0000)] 
Version 0.23.3 (#2540)

3 years agoRevert "Raise `TypeError` on invalid query params. (#2523)" (#2539)
Michael Adkins [Wed, 4 Jan 2023 09:23:32 +0000 (03:23 -0600)] 
Revert "Raise `TypeError` on invalid query params. (#2523)" (#2539)

This reverts commit 4cbf13ece2e584b45b935df0a0c670e1863c4569.

3 years agoreplace pytest-asyncio and pytest-trio with anyio (#2512)
Thomas Grainger [Mon, 2 Jan 2023 12:53:30 +0000 (12:53 +0000)] 
replace pytest-asyncio and pytest-trio with anyio (#2512)

* replace pytest-asyncio with anyio

* remove pytest-trio also

* Update setup.cfg

* use anyio.Lock in test_auth

Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoPyPI readme: fix screenshot links & trim changelog (#2522)
Hynek Schlawack [Mon, 2 Jan 2023 12:41:45 +0000 (13:41 +0100)] 
PyPI readme: fix screenshot links & trim changelog (#2522)

Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoBump chardet from 5.0.0 to 5.1.0 (#2530)
dependabot[bot] [Mon, 2 Jan 2023 12:36:58 +0000 (12:36 +0000)] 
Bump chardet from 5.0.0 to 5.1.0 (#2530)

Bumps [chardet](https://github.com/chardet/chardet) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/chardet/chardet/releases)
- [Commits](https://github.com/chardet/chardet/compare/5.0.0...5.1.0)

---
updated-dependencies:
- dependency-name: chardet
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoBump mkdocs-material from 8.5.5 to 8.5.11 (#2529)
dependabot[bot] [Mon, 2 Jan 2023 12:33:30 +0000 (12:33 +0000)] 
Bump mkdocs-material from 8.5.5 to 8.5.11 (#2529)

Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 8.5.5 to 8.5.11.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/8.5.5...8.5.11)

---
updated-dependencies:
- dependency-name: mkdocs-material
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoBump isort from 5.10.1 to 5.11.4 (#2528)
dependabot[bot] [Mon, 2 Jan 2023 12:29:40 +0000 (12:29 +0000)] 
Bump isort from 5.10.1 to 5.11.4 (#2528)

Bumps [isort](https://github.com/pycqa/isort) from 5.10.1 to 5.11.4.
- [Release notes](https://github.com/pycqa/isort/releases)
- [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pycqa/isort/compare/5.10.1...5.11.4)

---
updated-dependencies:
- dependency-name: isort
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoVersion 0.23.2 (#2510) 0.23.2
Tom Christie [Mon, 2 Jan 2023 11:46:22 +0000 (11:46 +0000)] 
Version 0.23.2 (#2510)

* Version 0.23.2

* Update CHANGELOG.md

3 years agoRaise `TypeError` on invalid query params. (#2523)
Tom Christie [Fri, 30 Dec 2022 20:56:48 +0000 (20:56 +0000)] 
Raise `TypeError` on invalid query params. (#2523)

* Raise TypeError on invalid query params

* Fix TypeError

* Update tests/models/test_queryparams.py

Co-authored-by: Michael Adkins <contact@zanie.dev>
* Linting

* Fix exception check

Co-authored-by: Michael Adkins <contact@zanie.dev>
3 years agoDelete setup.py (#2516)
Marcelo Trylesinski [Thu, 29 Dec 2022 11:47:24 +0000 (12:47 +0100)] 
Delete setup.py (#2516)

3 years agoUpdate pytest-asyncio (#2511)
Tom Christie [Tue, 20 Dec 2022 13:46:16 +0000 (13:46 +0000)] 
Update pytest-asyncio (#2511)

3 years agoDrop private import of 'format_form_param' from tests (#2500)
Tom Christie [Mon, 12 Dec 2022 16:31:29 +0000 (16:31 +0000)] 
Drop private import of 'format_form_param' from tests (#2500)

* Drop private import of 'format_form_param' from tests

* Drop unused code path

3 years agoStreaming multipart support (#2382)
Tom Christie [Mon, 12 Dec 2022 16:14:56 +0000 (16:14 +0000)] 
Streaming multipart support (#2382)

* Streaming multipart support

* Update tests for streaming multipary

3 years agoDrop unneccessary private import in tests (#2498)
Tom Christie [Mon, 12 Dec 2022 10:43:46 +0000 (10:43 +0000)] 
Drop unneccessary private import in tests (#2498)

3 years agoRaise TypeError if content is passed a 'dict' instance. (#2495)
Tom Christie [Sun, 11 Dec 2022 19:12:08 +0000 (19:12 +0000)] 
Raise TypeError if content is passed a 'dict' instance. (#2495)

3 years agoRemove some private imports from test_decoders (#2496)
Tom Christie [Tue, 6 Dec 2022 18:22:04 +0000 (18:22 +0000)] 
Remove some private imports from test_decoders (#2496)

3 years agoUse httpx public API for 'test_content' tests (#2494)
Tom Christie [Tue, 6 Dec 2022 13:27:05 +0000 (13:27 +0000)] 
Use httpx public API for 'test_content' tests (#2494)

3 years agoUse consistent import style (#2493)
Tom Christie [Tue, 6 Dec 2022 11:58:30 +0000 (11:58 +0000)] 
Use consistent import style (#2493)

3 years agoAdd back in URL.raw with NamedTuple (#2481)
Demetri [Fri, 2 Dec 2022 16:20:05 +0000 (08:20 -0800)] 
Add back in URL.raw with NamedTuple (#2481)

* add back in URL.raw with NamedTuple

* Update _urls.py

* Update _urls.py

Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoTyping: enable disallow_untyped_calls (#2479)
Martijn Pieters [Fri, 2 Dec 2022 10:47:42 +0000 (10:47 +0000)] 
Typing: enable disallow_untyped_calls (#2479)

* Typing: enable disallow_untyped_calls

Only the test suite needed adjusting to add type hints.

* Update setup.cfg

Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoTyping: enable strict_equality (#2480)
Martijn Pieters [Fri, 2 Dec 2022 08:45:28 +0000 (08:45 +0000)] 
Typing: enable strict_equality (#2480)

- ignore mypy when it comes to comparing an IntEnum member with an int
- Correct type hint for `test_wsgi_server_port`'s `expected_server_port`
  parameter.

Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoBump cryptography from 38.0.3 to 38.0.4 (#2485)
dependabot[bot] [Thu, 1 Dec 2022 17:13:10 +0000 (17:13 +0000)] 
Bump cryptography from 38.0.3 to 38.0.4 (#2485)

3 years agoBump uvicorn from 0.19.0 to 0.20.0 (#2484)
dependabot[bot] [Thu, 1 Dec 2022 17:04:23 +0000 (18:04 +0100)] 
Bump uvicorn from 0.19.0 to 0.20.0 (#2484)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years agoBump pytest from 7.1.2 to 7.2.0 (#2483)
dependabot[bot] [Thu, 1 Dec 2022 16:45:12 +0000 (17:45 +0100)] 
Bump pytest from 7.1.2 to 7.2.0 (#2483)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years agoEnable no_implicit_reexport (#2475)
Martijn Pieters [Wed, 30 Nov 2022 13:11:22 +0000 (13:11 +0000)] 
Enable no_implicit_reexport (#2475)

- Add explicit exports for names imported from `_compat`
- Correct imports of `URL` (from `._urls`, not via `._models`)
- Correct import of the uvicorn `Server` class

Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoTyping: enable warn_return_any (#2477)
Martijn Pieters [Wed, 30 Nov 2022 13:08:02 +0000 (13:08 +0000)] 
Typing: enable warn_return_any (#2477)

3 years agoUse wsgi types from typeshed (#2478)
Michael Oliver [Wed, 30 Nov 2022 09:48:51 +0000 (09:48 +0000)] 
Use wsgi types from typeshed (#2478)

3 years agoTyping: enable disallow_incomplete_defs (#2476)
Martijn Pieters [Wed, 30 Nov 2022 09:04:54 +0000 (09:04 +0000)] 
Typing: enable disallow_incomplete_defs (#2476)

The only places mypy reports issues is in the test suite.

3 years agoTyping: use wsgiref.types to validate types and fix issues uncovered (#2467)
Adrian Garcia Badaracco [Tue, 29 Nov 2022 17:55:21 +0000 (11:55 -0600)] 
Typing: use wsgiref.types to validate types and fix issues uncovered (#2467)

* Typing: use wsgiref.types to validate types and fix issues uncovered

- start_response() must return a write(bytes) function, even though this
  is now deprecated. It's fine to be a no-op here.
- sys.exc_info() can return (None, None, None), so make sure to handle that case.

* remove typing_extensions

Co-authored-by: Martijn Pieters <mj@zopatista.com>
3 years agoreuse the digest auth state to avoid unnecessary requests (#2463)
rettier [Tue, 29 Nov 2022 17:05:37 +0000 (18:05 +0100)] 
reuse the digest auth state to avoid unnecessary requests (#2463)

* reuse the digest auth challenge to avoid sending twice as many requests

* fix for digest testcase

* ran testing/linting scripts

* codereview changes, removed tomchristie username from all authentication tests

Co-authored-by: Philipp Reitter <p.reitter@accessio.at>
Co-authored-by: Tom Christie <tom@tomchristie.com>
3 years agoRemove and dissallow unused type ignores (#2470)
Adrian Garcia Badaracco [Tue, 29 Nov 2022 16:55:45 +0000 (10:55 -0600)] 
Remove and dissallow unused type ignores (#2470)

* Remove and dissallow unused type ignores

* add pragmas

* fix ignore

3 years agoAdd mypy flags (#2472)
Adrian Garcia Badaracco [Tue, 29 Nov 2022 16:46:00 +0000 (10:46 -0600)] 
Add mypy flags (#2472)