]>
git.ipfire.org Git - thirdparty/httpx.git/log
Adrian Garcia Badaracco [Tue, 29 Nov 2022 16:36:03 +0000 (10:36 -0600)]
Typing: always fill in generic type parameters (#2468)
* Typing: always fill in generic type parameters
Being explicit about the parameters helps find bugs and makes the library
easier to use for users.
- Tell mypy to disallow generics without parameter values
- Give all generic types parameters values
* fix things that aren't coming in from other commits
* lint
Co-authored-by: Martijn Pieters <mj@zopatista.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
Adrian Garcia Badaracco [Tue, 29 Nov 2022 16:23:18 +0000 (10:23 -0600)]
use # pragma: no cover instead of # pragma: nocover (#2471)
Co-authored-by: Tom Christie <tom@tomchristie.com>
Simon K [Tue, 29 Nov 2022 15:55:38 +0000 (15:55 +0000)]
remove `chunk_size` from api docs for `iter_lines` variants (#2464)
Co-authored-by: Tom Christie <tom@tomchristie.com>
Adrian Garcia Badaracco [Tue, 29 Nov 2022 08:45:10 +0000 (02:45 -0600)]
Remove typeshed iscoroutine workaround (#2466)
This was resolved in typeshed and newer mypy versions have inherited the fix.
Co-authored-by: Martijn Pieters <mj@zopatista.com>
Tom Christie [Mon, 28 Nov 2022 12:29:02 +0000 (12:29 +0000)]
Switch `extensions` from `Dict` to `Mapping`. (#2465)
* Ignore Mapping -> Dict type error
* Fix type of ResponseExtension
* Switch extensions from Dict to Mapping
Ben Falk [Fri, 25 Nov 2022 12:05:46 +0000 (07:05 -0500)]
update requests compatibility docs on query and form params (#2461)
Tom Christie [Mon, 21 Nov 2022 13:38:53 +0000 (13:38 +0000)]
Update CHANGELOG.md (#2458)
Tom Christie [Mon, 21 Nov 2022 10:29:31 +0000 (10:29 +0000)]
Drop multipart requirement from tests (#2456)
dependabot[bot] [Fri, 18 Nov 2022 12:55:22 +0000 (12:55 +0000)]
Bump cryptography from 38.0.1 to 38.0.3 (#2447)
Bumps [cryptography](https://github.com/pyca/cryptography) from 38.0.1 to 38.0.3.
- [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.1...38.0.3)
---
updated-dependencies:
- dependency-name: cryptography
dependency-type: direct:production
...
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>
Tom Christie [Fri, 18 Nov 2022 12:48:32 +0000 (12:48 +0000)]
Version 0.23.1 (#2442)
* Version 0.23.1
* Update dependencies
* Update CHANGELOG
* Update CHANGELOG.md
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* Update CHANGELOG.md
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
František Nesveda [Mon, 7 Nov 2022 14:25:49 +0000 (15:25 +0100)]
Mention default timeout differences from Requests in compatibility docs (#2433)
I was recently migrating a project from Requests to HTTPX, and I stumbled a bit on the default socket timeouts being different between the two, which I haven't seen explicitly mentioned anywhere.
This adds a mention of those differences to the compatibility section, feel free to edit it or move it around as you choose.
Tom Christie [Mon, 7 Nov 2022 14:01:29 +0000 (14:01 +0000)]
Drop .read/.aread from SyncByteStream/AsyncByteStream (#2407)
Michael K [Mon, 7 Nov 2022 13:57:48 +0000 (13:57 +0000)]
Run tests against Python 3.11 stable (#2420)
Co-authored-by: Tom Christie <tom@tomchristie.com>
Vincent Fazio [Thu, 3 Nov 2022 11:29:23 +0000 (06:29 -0500)]
Drop cgi module from test_multipart (#2424)
* Use multipart instead of cgi for multipart tests
The cgi module has been deprecated as of python 3.11.
Signed-off-by: Vincent Fazio <vfazio@gmail.com>
* Update setup.cfg
All references to the cgi module have all been removed so there's no
longer a need to silence those deprecation warnings.
The deprecation warning for certifi is resolved as of version 2022.09.24.
Signed-off-by: Vincent Fazio <vfazio@gmail.com>
Signed-off-by: Vincent Fazio <vfazio@gmail.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
dependabot[bot] [Wed, 2 Nov 2022 11:19:02 +0000 (11:19 +0000)]
Bump uvicorn from 0.18.3 to 0.19.0 (#2429)
Bumps [uvicorn](https://github.com/encode/uvicorn) from 0.18.3 to 0.19.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.18.3...0.19.0)
---
updated-dependencies:
- dependency-name: uvicorn
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>
dependabot[bot] [Wed, 2 Nov 2022 11:13:18 +0000 (11:13 +0000)]
Bump black from 22.8.0 to 22.10.0 (#2428)
Bumps [black](https://github.com/psf/black) from 22.8.0 to 22.10.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/22.8.0...22.10.0)
---
updated-dependencies:
- dependency-name: black
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>
dependabot[bot] [Wed, 2 Nov 2022 09:48:03 +0000 (09:48 +0000)]
Bump mypy from 0.971 to 0.982 (#2427)
Bumps [mypy](https://github.com/python/mypy) from 0.971 to 0.982.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.971...v0.982)
---
updated-dependencies:
- dependency-name: mypy
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>
dependabot[bot] [Wed, 2 Nov 2022 09:42:50 +0000 (09:42 +0000)]
Bump autoflake from 1.4 to 1.7.7 (#2430)
Bumps [autoflake](https://github.com/PyCQA/autoflake) from 1.4 to 1.7.7.
- [Release notes](https://github.com/PyCQA/autoflake/releases)
- [Commits](https://github.com/PyCQA/autoflake/compare/v1.4...v1.7.7)
---
updated-dependencies:
- dependency-name: autoflake
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>
dependabot[bot] [Tue, 1 Nov 2022 17:09:45 +0000 (18:09 +0100)]
Bump coverage from 6.4.4 to 6.5.0 (#2431)
Bumps [coverage](https://github.com/nedbat/coveragepy) from 6.4.4 to 6.5.0.
- [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.4.4...6.5.0)
---
updated-dependencies:
- dependency-name: coverage
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>
Tom Christie [Tue, 18 Oct 2022 13:42:28 +0000 (14:42 +0100)]
Drop stalebot (#2412)
Sorry @stalebot, but we don't need your work here.
We've a low enough ticket count, and you're just adding noise.
Ramazan Elsunakev [Wed, 12 Oct 2022 08:45:06 +0000 (01:45 -0700)]
Add parameters to generics in `_client.py` (#2266)
Co-authored-by: Tom Christie <tom@tomchristie.com>
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Meder Kamalov [Tue, 11 Oct 2022 10:54:24 +0000 (12:54 +0200)]
Add dark mode toggle for documentation (#2403)
Tom Christie [Thu, 6 Oct 2022 16:53:51 +0000 (17:53 +0100)]
Allow str content for multipart upload files (#2400)
Tom Christie [Thu, 6 Oct 2022 13:43:43 +0000 (14:43 +0100)]
Remove unneeded installation on `install` script (#2398)
Tom Christie [Wed, 5 Oct 2022 17:42:32 +0000 (18:42 +0100)]
Always use latest version of `pip`. (#2396)
Installation should start by updating `pip` to the latest version.
Resolves issue noted in https://github.com/encode/httpx/pull/2334#issuecomment-
1268308195
dependabot[bot] [Tue, 4 Oct 2022 13:12:43 +0000 (14:12 +0100)]
Bump cryptography from 37.0.2 to 38.0.1 (#2389)
Bumps [cryptography](https://github.com/pyca/cryptography) from 37.0.2 to 38.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/37.0.2...38.0.1)
---
updated-dependencies:
- dependency-name: cryptography
dependency-type: direct:production
update-type: version-update:semver-major
...
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>
Tom Christie [Tue, 4 Oct 2022 13:04:02 +0000 (14:04 +0100)]
Pin importlib-metadata (#2393)
dependabot[bot] [Tue, 4 Oct 2022 12:54:21 +0000 (13:54 +0100)]
Bump flake8-pie from 0.15.0 to 0.16.0 (#2387)
Bumps [flake8-pie](https://github.com/sbdchd/flake8-pie) from 0.15.0 to 0.16.0.
- [Release notes](https://github.com/sbdchd/flake8-pie/releases)
- [Commits](https://github.com/sbdchd/flake8-pie/commits)
---
updated-dependencies:
- dependency-name: flake8-pie
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>
dependabot[bot] [Sat, 1 Oct 2022 16:12:37 +0000 (18:12 +0200)]
Bump mkdocs-material from 8.3.8 to 8.5.5 (#2388)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] [Sat, 1 Oct 2022 16:06:30 +0000 (18:06 +0200)]
Bump mkdocs from 1.3.1 to 1.4.0 (#2390)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Jo [Thu, 29 Sep 2022 16:00:21 +0000 (00:00 +0800)]
Test under 3.11-dev (#2302)
* Test under 3.11.0-beta.3
* Ignore cgi and importlib warnings
* Ignore src_constant warning
* Install whell before other requirements
* Minor
* Remove uvicorn ignore
* Use 3.11-dev instead
* Add 3.11 to classifiers
* Revert unrelated change
* Bump coverage
Marcelo Trylesinski [Thu, 29 Sep 2022 10:09:11 +0000 (12:09 +0200)]
Add thread-safety note on the `Client` docstring (#2380)
Adrian Garcia Badaracco [Tue, 13 Sep 2022 14:24:01 +0000 (09:24 -0500)]
add basic type annotation for RequestExtensions and RequestData (#2367)
chaojie [Mon, 5 Sep 2022 16:18:44 +0000 (00:18 +0800)]
Make chinese README better (#2366)
Tom Christie [Fri, 2 Sep 2022 13:24:45 +0000 (14:24 +0100)]
Fix empty query params (#2354)
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
dependabot[bot] [Thu, 1 Sep 2022 17:15:45 +0000 (19:15 +0200)]
Bump mkautodoc from 0.1.0 to 0.2.0 (#2361)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] [Thu, 1 Sep 2022 16:22:44 +0000 (18:22 +0200)]
Bump trio from 0.20.0 to 0.21.0 (#2360)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Marcelo Trylesinski [Thu, 1 Sep 2022 16:13:35 +0000 (18:13 +0200)]
Add fake setup.py (#2351)
dependabot[bot] [Thu, 1 Sep 2022 16:10:01 +0000 (18:10 +0200)]
Bump black from 22.6.0 to 22.8.0 (#2358)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] [Thu, 1 Sep 2022 16:06:47 +0000 (18:06 +0200)]
Bump uvicorn from 0.18.2 to 0.18.3 (#2357)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Tom Christie [Tue, 30 Aug 2022 13:03:31 +0000 (14:03 +0100)]
Allow tuple or list for multipart values (#2355)
Will Frey [Tue, 30 Aug 2022 11:46:19 +0000 (07:46 -0400)]
Relax `HeaderTypes` type alias definition (#2317)
* Relax `HeaderTypes` type alias definition
This replaces `Dict[..., ...]` with `Mapping[..., ...]` in the union definition for `HeaderTypes`. Closes #2314.
* Update _models.py
Co-authored-by: Tom Christie <tom@tomchristie.com>
Marcelo Trylesinski [Thu, 25 Aug 2022 17:19:28 +0000 (19:19 +0200)]
Replace `black` Python target version from 3.6 to 3.7 (#2343)
Florimond Manca [Thu, 25 Aug 2022 10:23:04 +0000 (12:23 +0200)]
Replace cgi which will be deprecated in Python 3.11 (#2309)
* Replace cgi which will be deprecated in Python 3.11
* Update httpx/_utils.py
Ofek Lev [Mon, 22 Aug 2022 16:55:06 +0000 (12:55 -0400)]
Update package metadata (#2334)
Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>
Marcelo Trylesinski [Sat, 20 Aug 2022 12:09:30 +0000 (14:09 +0200)]
Add script to make sure CHANGELOG is always in sync with `__version__` (#2297)
* Add script to make sure CHANGELOG is always in sync with `__version__`
* Fix version
* Change file permission
* Change head by sed
Fred Thomsen [Tue, 16 Aug 2022 22:20:35 +0000 (18:20 -0400)]
Update docs to reflect supported python versions (#2338)
Replaces Python 3.6 references with Python 3.7.
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Adrian Garcia Badaracco [Mon, 15 Aug 2022 15:20:07 +0000 (10:20 -0500)]
allow setting an explicit multipart boundary via headers (#2278)
dependabot[bot] [Tue, 2 Aug 2022 06:15:21 +0000 (08:15 +0200)]
Bump types-chardet from 4.0.4 to 5.0.3 (#2324)
Bumps [types-chardet](https://github.com/python/typeshed) from 4.0.4 to 5.0.3.
- [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-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Marcelo Trylesinski [Tue, 2 Aug 2022 06:06:54 +0000 (08:06 +0200)]
Bump mkdocs from 1.3.0 to 1.3.1 (#2328)
dependabot[bot] [Mon, 1 Aug 2022 18:49:31 +0000 (20:49 +0200)]
Bump flake8-bugbear from 22.4.25 to 22.7.1 (#2323)
Bumps [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) from 22.4.25 to 22.7.1.
- [Release notes](https://github.com/PyCQA/flake8-bugbear/releases)
- [Commits](https://github.com/PyCQA/flake8-bugbear/compare/22.4.25...22.7.1)
---
updated-dependencies:
- dependency-name: flake8-bugbear
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>
dependabot[bot] [Mon, 1 Aug 2022 16:27:02 +0000 (18:27 +0200)]
Bump pytest-asyncio from 0.18.3 to 0.19.0 (#2327)
Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) from 0.18.3 to 0.19.0.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Changelog](https://github.com/pytest-dev/pytest-asyncio/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.18.3...v0.19.0)
---
updated-dependencies:
- dependency-name: pytest-asyncio
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>
dependabot[bot] [Mon, 1 Aug 2022 16:14:05 +0000 (18:14 +0200)]
Bump mypy from 0.961 to 0.971 (#2325)
Bumps [mypy](https://github.com/python/mypy) from 0.961 to 0.971.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.961...v0.971)
---
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>
Florimond Manca [Fri, 29 Jul 2022 12:21:58 +0000 (14:21 +0200)]
Expand docs about retries (#2311)
Co-authored-by: Tom Christie <tom@tomchristie.com>
Ofek Lev [Mon, 25 Jul 2022 09:23:08 +0000 (05:23 -0400)]
Update link to trustme (#2318)
Florimond Manca [Thu, 21 Jul 2022 06:43:18 +0000 (08:43 +0200)]
Rework docs structure (#2308)
Florimond Manca [Tue, 19 Jul 2022 08:42:49 +0000 (10:42 +0200)]
Pin markdown==3.3.7 to prevent mkautodoc loading failure (#2313)
Florimond Manca [Mon, 18 Jul 2022 12:34:06 +0000 (14:34 +0200)]
Fix link to "http2 explained" (#2307)
dependabot[bot] [Tue, 5 Jul 2022 07:55:23 +0000 (08:55 +0100)]
Bump chardet from 4.0.0 to 5.0.0 (#2289)
Bumps [chardet](https://github.com/chardet/chardet) from 4.0.0 to 5.0.0.
- [Release notes](https://github.com/chardet/chardet/releases)
- [Commits](https://github.com/chardet/chardet/compare/4.0.0...5.0.0)
---
updated-dependencies:
- dependency-name: chardet
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>
Co-authored-by: Tom Christie <tom@tomchristie.com>
dependabot[bot] [Mon, 4 Jul 2022 13:32:05 +0000 (14:32 +0100)]
Bump actions/setup-python from 3 to 4 (#2293)
dependabot[bot] [Mon, 4 Jul 2022 08:27:41 +0000 (09:27 +0100)]
Bump mkdocs-material from 8.2.14 to 8.3.8 (#2291)
dependabot[bot] [Sat, 2 Jul 2022 12:37:12 +0000 (13:37 +0100)]
Bump uvicorn from 0.17.6 to 0.18.2 (#2292)
Bumps [uvicorn](https://github.com/encode/uvicorn) from 0.17.6 to 0.18.2.
- [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.17.6...0.18.2)
---
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>
dependabot[bot] [Fri, 1 Jul 2022 16:42:21 +0000 (17:42 +0100)]
Bump black from 22.3.0 to 22.6.0 (#2290)
Daniel Holth [Fri, 24 Jun 2022 13:36:45 +0000 (09:36 -0400)]
add `[chunk_size]` for `a?iter_.*` methods (#2281)
```
def iter_bytes(
self, chunk_size: typing.Optional[int] = None
) -> typing.Iterator[bytes]:
```
dependabot[bot] [Sun, 19 Jun 2022 10:50:04 +0000 (12:50 +0200)]
Bump mypy from 0.910 to 0.961 (#2269)
* Bump mypy from 0.910 to 0.961
Bumps [mypy](https://github.com/python/mypy) from 0.910 to 0.961.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.910...v0.961)
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Handle py37 iscoroutine type guard oddity
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: florimondmanca <florimond.manca@protonmail.com>
dependabot[bot] [Fri, 17 Jun 2022 10:19:35 +0000 (11:19 +0100)]
Bump pytest-asyncio from 0.16.0 to 0.18.3 (#2198)
* Bump pytest-asyncio from 0.16.0 to 0.18.3
Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) from 0.16.0 to 0.18.3.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Changelog](https://github.com/pytest-dev/pytest-asyncio/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.16.0...v0.18.3)
---
updated-dependencies:
- dependency-name: pytest-asyncio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Update setup.cfg
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
dependabot[bot] [Thu, 16 Jun 2022 13:16:06 +0000 (14:16 +0100)]
Bump twine from 4.0.0 to 4.0.1 (#2256)
Bumps [twine](https://github.com/pypa/twine) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/pypa/twine/releases)
- [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst)
- [Commits](https://github.com/pypa/twine/compare/4.0.0...4.0.1)
---
updated-dependencies:
- dependency-name: twine
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>
dependabot[bot] [Thu, 16 Jun 2022 12:10:27 +0000 (13:10 +0100)]
Bump flake8-bugbear from 22.1.11 to 22.4.25 (#2257)
Bumps [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) from 22.1.11 to 22.4.25.
- [Release notes](https://github.com/PyCQA/flake8-bugbear/releases)
- [Commits](https://github.com/PyCQA/flake8-bugbear/compare/22.1.11...22.4.25)
---
updated-dependencies:
- dependency-name: flake8-bugbear
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>
dependabot[bot] [Thu, 16 Jun 2022 11:46:35 +0000 (12:46 +0100)]
Bump coverage from 6.0.2 to 6.4.1 (#2268)
Bumps [coverage](https://github.com/nedbat/coveragepy) from 6.0.2 to 6.4.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.0.2...6.4.1)
---
updated-dependencies:
- dependency-name: coverage
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>
Josh [Thu, 16 Jun 2022 11:31:19 +0000 (07:31 -0400)]
Remove 3.6 from the package classifiers (#2267)
Tom Christie [Mon, 30 May 2022 13:54:47 +0000 (14:54 +0100)]
Drop RawURL (#2241)
Will Frey [Thu, 26 May 2022 12:53:31 +0000 (08:53 -0400)]
Update _client.py (#2247)
Update the type annotation for the default_encoding parameter of AsyncClient's initializer to accept a callable of the form (bytes) -> str.
Tom Christie [Mon, 23 May 2022 15:31:12 +0000 (16:31 +0100)]
Version 0.23.0 (#2214)
* Version 0.23.0
* Update changelog
* Update httpcore dependancy
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
Tom Christie [Mon, 23 May 2022 15:27:32 +0000 (16:27 +0100)]
Make charset auto-detection optional. (#2165)
* Add Response(..., default_encoding=...)
* Add tests for Response(..., default_encoding=...)
* Add Client(..., default_encoding=...)
* Switch default encoding to 'utf-8' instead of 'autodetect'
* Make charset_normalizer an optional dependancy, not a mandatory one.
* Documentation
* Use callable for default_encoding
* Update tests for new charset autodetection API
* Update docs for new charset autodetection API
* Update requirements
* Drop charset_normalizer from requirements
Kieran Klukas [Mon, 23 May 2022 09:09:15 +0000 (05:09 -0400)]
Removed curio from async.md (#2240)
Michael Oliver [Fri, 20 May 2022 10:12:25 +0000 (11:12 +0100)]
Switch to explicit `typing.Optional` throughout (#2096)
* Fix issue with Mypy `--strict` and `AsyncExitStack`
* Enable `no_implicit_optional` in Mypy
* Ignore internal type errors
* Bump `httpcore`
* Remove unneeded type: ignore comments
Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>
Co-authored-by: Michael Oliver <michael@michaeloliver.dev>
Tom Christie [Mon, 16 May 2022 12:23:15 +0000 (13:23 +0100)]
Drop async_generator requirement (#2228)
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Michael Oliver [Mon, 16 May 2022 09:37:13 +0000 (10:37 +0100)]
Remove `RequestBodyUnavailable` from module docstring (#2226)
Co-authored-by: Michael Oliver <michael@michaeloliver.dev>
dependabot[bot] [Tue, 10 May 2022 11:05:52 +0000 (12:05 +0100)]
Bump mkdocs-material from 8.1.4 to 8.2.14 (#2218)
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 8.1.4 to 8.2.14.
- [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.1.4...8.2.14)
---
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>
dependabot[bot] [Tue, 10 May 2022 09:27:13 +0000 (10:27 +0100)]
Bump cryptography from 36.0.2 to 37.0.2 (#2217)
Bumps [cryptography](https://github.com/pyca/cryptography) from 36.0.2 to 37.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/36.0.2...37.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>
Co-authored-by: Tom Christie <tom@tomchristie.com>
dependabot[bot] [Tue, 10 May 2022 09:11:38 +0000 (10:11 +0100)]
Bump actions/checkout from 2 to 3 (#2216)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)
---
updated-dependencies:
- dependency-name: actions/checkout
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>
dependabot[bot] [Tue, 10 May 2022 09:07:37 +0000 (10:07 +0100)]
Bump actions/setup-python from 1 to 3 (#2215)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 1 to 3.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v1...v3)
---
updated-dependencies:
- dependency-name: actions/setup-python
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>
Naveen [Tue, 10 May 2022 09:02:42 +0000 (04:02 -0500)]
chore: Included githubactions in the dependabot config (#2206)
This should help with keeping the GitHub actions updated on new releases. This will also help with keeping it secure.
Dependabot helps in keeping the supply chain secure https://docs.github.com/en/code-security/dependabot
GitHub actions up to date https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
https://github.com/ossf/scorecard/blob/main/docs/checks.md#dependency-update-tool
Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
Tom Christie [Mon, 9 May 2022 09:42:57 +0000 (10:42 +0100)]
Case insensitive algorithm detection for digest authentication. (#2204)
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
dependabot[bot] [Thu, 5 May 2022 12:18:23 +0000 (13:18 +0100)]
Bump types-certifi from 2021.10.8.0 to 2021.10.8.2 (#2205)
Bumps [types-certifi](https://github.com/python/typeshed) from 2021.10.8.0 to 2021.10.8.2.
- [Release notes](https://github.com/python/typeshed/releases)
- [Commits](https://github.com/python/typeshed/commits)
---
updated-dependencies:
- dependency-name: types-certifi
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>
nyuszika7h [Thu, 5 May 2022 12:11:18 +0000 (14:11 +0200)]
docs: Fix proxy examples (#2183)
Per https://www.python-httpx.org/compatibility/#proxy-keys, there should
always be a `://` after the protocol. The given examples raise an
exception when used as-is.
Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
dependabot[bot] [Thu, 5 May 2022 12:06:44 +0000 (13:06 +0100)]
Bump trio-typing from 0.5.1 to 0.7.0 (#2195)
Bumps [trio-typing](https://github.com/python-trio/trio-typing) from 0.5.1 to 0.7.0.
- [Release notes](https://github.com/python-trio/trio-typing/releases)
- [Commits](https://github.com/python-trio/trio-typing/compare/v0.5.1...v0.7.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>
Co-authored-by: Tom Christie <tom@tomchristie.com>
dependabot[bot] [Thu, 5 May 2022 12:03:44 +0000 (13:03 +0100)]
Bump pytest from 7.0.1 to 7.1.2 (#2196)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.0.1 to 7.1.2.
- [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.0.1...7.1.2)
---
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>
dependabot[bot] [Thu, 5 May 2022 11:59:29 +0000 (12:59 +0100)]
Bump trio from 0.19.0 to 0.20.0 (#2197)
Bumps [trio](https://github.com/python-trio/trio) from 0.19.0 to 0.20.0.
- [Release notes](https://github.com/python-trio/trio/releases)
- [Commits](https://github.com/python-trio/trio/compare/v0.19.0...v0.20.0)
---
updated-dependencies:
- dependency-name: trio
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>
Ninzero [Wed, 4 May 2022 09:11:53 +0000 (10:11 +0100)]
Clarify custom auth (#2202)
Alan Li [Tue, 3 May 2022 10:33:13 +0000 (18:33 +0800)]
Patch `copy_with` (#2185)
* Patch `copy_with`
* Add a new test for `copy_with`
dependabot[bot] [Mon, 18 Apr 2022 08:07:17 +0000 (10:07 +0200)]
Bump uvicorn from 0.14.0 to 0.17.6 (#2163)
Bumps [uvicorn](https://github.com/encode/uvicorn) from 0.14.0 to 0.17.6.
- [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.14.0...0.17.6)
---
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>
dependabot[bot] [Tue, 5 Apr 2022 13:49:03 +0000 (14:49 +0100)]
Bump cryptography from 36.0.1 to 36.0.2 (#2162)
Bumps [cryptography](https://github.com/pyca/cryptography) from 36.0.1 to 36.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/36.0.1...36.0.2)
---
updated-dependencies:
- dependency-name: cryptography
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>
dependabot[bot] [Tue, 5 Apr 2022 08:31:05 +0000 (09:31 +0100)]
Bump twine from 3.7.1 to 4.0.0 (#2161)
Bumps [twine](https://github.com/pypa/twine) from 3.7.1 to 4.0.0.
- [Release notes](https://github.com/pypa/twine/releases)
- [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst)
- [Commits](https://github.com/pypa/twine/compare/3.7.1...4.0.0)
---
updated-dependencies:
- dependency-name: twine
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>
dependabot[bot] [Tue, 5 Apr 2022 08:20:40 +0000 (09:20 +0100)]
Bump wheel from 0.37.0 to 0.37.1 (#2160)
Bumps [wheel](https://github.com/pypa/wheel) from 0.37.0 to 0.37.1.
- [Release notes](https://github.com/pypa/wheel/releases)
- [Changelog](https://github.com/pypa/wheel/blob/main/docs/news.rst)
- [Commits](https://github.com/pypa/wheel/compare/0.37.0...0.37.1)
---
updated-dependencies:
- dependency-name: wheel
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>
Johannes [Fri, 1 Apr 2022 15:06:24 +0000 (16:06 +0100)]
Fix raise_for_status exception docs (#2159)
Closes #2126
Michael Oliver [Fri, 1 Apr 2022 10:10:32 +0000 (11:10 +0100)]
Add `request` getter/setter to `HTTPError` (#2158)
Tom Christie [Thu, 31 Mar 2022 12:41:40 +0000 (13:41 +0100)]
Close responses when on cancellations occur during reading. (#2156)
* Test case for clean stream closing on cancellations
* Test case for clean stream closing on cancellations
* Linting on tests
* responses should close on any BaseException
Ofek Lev [Wed, 30 Mar 2022 15:31:05 +0000 (11:31 -0400)]
Drop EOL Python 3.6 (#2097)
Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Jorge [Wed, 30 Mar 2022 14:58:00 +0000 (10:58 -0400)]
Corrected typo in advanced.md (#2155)