]>
git.ipfire.org Git - thirdparty/httpx.git/log
Michał Górny [Tue, 1 Feb 2022 12:28:12 +0000 (13:28 +0100)]
Allow rich-11 (#2057)
Relax the version bind on rich to allow v11. There are no test
regressions with the new version, and CLI seems to work correctly.
Simon K [Thu, 27 Jan 2022 11:58:33 +0000 (11:58 +0000)]
make docs accurate that `content=` is also excluded in some requests (#1922)
Co-authored-by: Tom Christie <tom@tomchristie.com>
Tom Christie [Wed, 26 Jan 2022 14:47:40 +0000 (14:47 +0000)]
Version 0.22.0 (#2048)
* SOCKS proxy support
* Version 0.22.0
* Link to socksio
Tom Christie [Mon, 24 Jan 2022 12:14:00 +0000 (12:14 +0000)]
Update publish.yml (#2040)
Vytautas Liuolia [Sun, 23 Jan 2022 20:37:27 +0000 (21:37 +0100)]
Do not recommend the deprecated `data=` kwarg for passing bytes. (#2044)
(`data=` is meant for sending form data.)
Adrian Garcia Badaracco [Fri, 21 Jan 2022 16:35:10 +0000 (08:35 -0800)]
Fix Headers.update to correctly handle repeated headers (#2038)
Tom Christie [Wed, 19 Jan 2022 14:58:19 +0000 (14:58 +0000)]
SOCKS proxy support (#2034)
Tom Christie [Thu, 13 Jan 2022 10:37:37 +0000 (10:37 +0000)]
Dont perform implicit close/warning on `__del__` (#2026)
* Version 0.21.3
* Don't perform implict close on __del__
Adrian Garcia Badaracco [Thu, 13 Jan 2022 08:49:14 +0000 (00:49 -0800)]
Allow custom headers in multipart/form-data requests (#1936)
* feat: allow passing multipart headers
* Add test for including content-type in headers
* lint
* override content_type with headers
* compare tuples based on length
* incorporate suggestion
* remove .title() on headers
Denis Laxalde [Mon, 10 Jan 2022 09:39:13 +0000 (10:39 +0100)]
Drop mention of backend selection for AsyncHTTPTransport() in docs (#2019)
There is no 'backend' parameter to AsyncHTTPTransport and it seems that
the backend is detected automatically for anyio as it is for other async
libraries.
Tom Christie [Fri, 7 Jan 2022 10:51:17 +0000 (10:51 +0000)]
Fix typo in change-log. (#2018)
Version was specified incorrectly.
See: https://github.com/encode/httpx/pull/2016#issuecomment-
1006721639
Tom Christie [Thu, 6 Jan 2022 14:36:58 +0000 (14:36 +0000)]
Version 0.21.3 (#2017)
Tom Christie [Thu, 6 Jan 2022 14:06:35 +0000 (14:06 +0000)]
Fix for stream uploads that subclass SyncByteStream/AsyncByteStream (#2016)
dependabot[bot] [Thu, 6 Jan 2022 14:01:10 +0000 (14:01 +0000)]
Bump pytest-asyncio from 0.15.1 to 0.16.0 (#2005)
Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) from 0.15.1 to 0.16.0.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.15.1...v0.16.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>
Co-authored-by: Tom Christie <tom@tomchristie.com>
Tom Christie [Wed, 5 Jan 2022 16:24:42 +0000 (16:24 +0000)]
Version 0.21.2 (#2011)
Tom Christie [Wed, 5 Jan 2022 16:04:56 +0000 (16:04 +0000)]
CI should just use Python 3.9, not "3.9.5" (#2010)
Tom Christie [Wed, 5 Jan 2022 16:01:47 +0000 (16:01 +0000)]
HTTP/2 support for tunnelled proxy cases. (#2009)
* Cap upload chunk sizes
* Use '.read' for file streaming, where possible
* Direct iteration should not apply chunk sizes
* HTTP/2 support for proxies
dependabot[bot] [Wed, 5 Jan 2022 14:27:25 +0000 (14:27 +0000)]
Bump mkdocs-material from 8.0.2 to 8.1.4 (#2006)
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 8.0.2 to 8.1.4.
- [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.0.2...8.1.4)
---
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>
dependabot[bot] [Mon, 3 Jan 2022 16:00:45 +0000 (16:00 +0000)]
Bump isort from 5.9.3 to 5.10.1 (#1999)
Bumps [isort](https://github.com/pycqa/isort) from 5.9.3 to 5.10.1.
- [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.9.3...5.10.1)
---
updated-dependencies:
- dependency-name: isort
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, 3 Jan 2022 15:54:21 +0000 (15:54 +0000)]
Bump twine from 3.4.2 to 3.7.1 (#1998)
Bumps [twine](https://github.com/pypa/twine) from 3.4.2 to 3.7.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/3.4.2...3.7.1)
---
updated-dependencies:
- dependency-name: twine
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, 3 Jan 2022 13:25:59 +0000 (13:25 +0000)]
Bump cryptography from 3.4.8 to 36.0.1 (#2000)
Bumps [cryptography](https://github.com/pyca/cryptography) from 3.4.8 to 36.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/3.4.8...36.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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Mohammadreza Jafari [Tue, 21 Dec 2021 17:15:34 +0000 (20:45 +0330)]
Tiny refactor on _multipart.py & _main.py (#1971)
* remove unnecessary casting in f-string
* merge nested condition
Kian Meng, Ang [Tue, 14 Dec 2021 14:04:01 +0000 (22:04 +0800)]
Fix typos (#1968)
dependabot[bot] [Mon, 6 Dec 2021 14:38:50 +0000 (14:38 +0000)]
Bump mkdocs-material from 7.2.6 to 8.0.2 (#1958)
* Bump mkdocs-material from 7.2.6 to 8.0.2
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 7.2.6 to 8.0.2.
- [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/7.2.6...8.0.2)
---
updated-dependencies:
- dependency-name: mkdocs-material
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* Update requirements.txt
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
dependabot[bot] [Wed, 1 Dec 2021 20:37:39 +0000 (20:37 +0000)]
Bump pytest from 6.2.4 to 6.2.5 (#1956)
dependabot[bot] [Wed, 1 Dec 2021 19:40:17 +0000 (19:40 +0000)]
Bump trustme from 0.8.0 to 0.9.0 (#1955)
dependabot[bot] [Wed, 1 Dec 2021 18:19:45 +0000 (18:19 +0000)]
Bump black from 21.10b0 to 21.11b1 (#1954)
wo0d [Tue, 23 Nov 2021 09:04:31 +0000 (17:04 +0800)]
Fix typo on _merge_url (#1949)
seperator -> separator
Tom Christie [Mon, 22 Nov 2021 13:15:39 +0000 (13:15 +0000)]
Read upload files using `read(CHUNK_SIZE)` rather than `iter()`. (#1948)
* Cap upload chunk sizes
* Use '.read' for file streaming, where possible
* Direct iteration should not apply chunk sizes
Kevin Anderson [Mon, 22 Nov 2021 12:22:45 +0000 (20:22 +0800)]
readmes/README.scn.md (#1946)
* Create README_chinese.md
* Update README_chinese.md
* Update README_chinese.md
* Update README_chinese.md
* Update README_chinese.md
Tom Christie [Tue, 16 Nov 2021 11:51:56 +0000 (11:51 +0000)]
Version 0.21.1 (#1941)
Tom Christie [Tue, 16 Nov 2021 11:47:46 +0000 (11:47 +0000)]
Fix response.url annotation (#1940)
Tom Christie [Mon, 15 Nov 2021 14:35:09 +0000 (14:35 +0000)]
Version 0.21 release notes (#1938)
Tom Christie [Mon, 15 Nov 2021 14:30:54 +0000 (14:30 +0000)]
Version 0.21 (#1935)
* Integrate with httpcore 0.14
* Fix pool timeout test
* Add request extensions to API
* Add certificate and connection info to client, using 'trace' extension
* Fix test_pool_timeout flakiness
dependabot[bot] [Mon, 15 Nov 2021 11:00:30 +0000 (11:00 +0000)]
Bump flake8-bugbear from 21.4.3 to 21.9.2 (#1917)
Bumps [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) from 21.4.3 to 21.9.2.
- [Release notes](https://github.com/PyCQA/flake8-bugbear/releases)
- [Commits](https://github.com/PyCQA/flake8-bugbear/compare/21.4.3...21.9.2)
---
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, 15 Nov 2021 10:24:12 +0000 (10:24 +0000)]
Bump black from 21.9b0 to 21.10b0 (#1921)
Bumps [black](https://github.com/psf/black) from 21.9b0 to 21.10b0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/commits)
---
updated-dependencies:
- dependency-name: black
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] [Fri, 12 Nov 2021 13:50:39 +0000 (13:50 +0000)]
Bump types-certifi from 0.1.4 to 2021.10.8.0 (#1918)
Bumps [types-certifi](https://github.com/python/typeshed) from 0.1.4 to 2021.10.8.0.
- [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-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Tyler Chamberlain [Mon, 1 Nov 2021 11:39:18 +0000 (06:39 -0500)]
Expand docs note for async custom handler responses (#1916)
* Expand note for async custom handler responses
Custom response handlers need to run `response.read()` before they can read the content of the response. However when using an AsyncClient this will produce an error of `RuntimeError: Attempted to call a sync iterator on an async stream.`. Took me some digging to figure out I just needed to use `response.aread()` here instead of `response.read()` so figured I would an MR with an expansion on the note for anyone else.
Thanks!
* Update advanced.md
Adrian Garcia Badaracco [Mon, 18 Oct 2021 10:19:42 +0000 (05:19 -0500)]
doc: Update comments about file types in _types.py (#1898)
* doc: Update comments about file types in _types.py
https://github.com/encode/httpx/discussions/1897
* Update httpx/_types.py
Co-authored-by: Tom Christie <tom@tomchristie.com>
dependabot[bot] [Fri, 15 Oct 2021 10:03:53 +0000 (12:03 +0200)]
Bump flake8-pie from 0.5.0 to 0.15.0 (#1879)
* Bump flake8-pie from 0.5.0 to 0.15.0
Bumps [flake8-pie](https://github.com/sbdchd/flake8-pie) from 0.5.0 to 0.15.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>
* Don't use PIE on 3.6
* Adhere or ignore new rules
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>
dependabot[bot] [Fri, 15 Oct 2021 09:44:37 +0000 (11:44 +0200)]
Bump black from 20.8b1 to 21.9b0 (#1877)
Bumps [black](https://github.com/psf/black) from 20.8b1 to 21.9b0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/commits)
---
updated-dependencies:
- dependency-name: black
dependency-type: direct:production
...
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>
Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>
Tom Christie [Wed, 13 Oct 2021 12:45:29 +0000 (13:45 +0100)]
Don't pickle request/response extensions (#1892)
dependabot[bot] [Wed, 13 Oct 2021 11:02:04 +0000 (12:02 +0100)]
Bump wheel from 0.36.2 to 0.37.0 (#1878)
Bumps [wheel](https://github.com/pypa/wheel) from 0.36.2 to 0.37.0.
- [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.36.2...0.37.0)
---
updated-dependencies:
- dependency-name: wheel
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] [Wed, 13 Oct 2021 10:43:07 +0000 (11:43 +0100)]
Bump coverage from 5.3 to 6.0.2 (#1891)
Bumps [coverage](https://github.com/nedbat/coveragepy) from 5.3 to 6.0.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/coverage-5.3...6.0.2)
---
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>
dependabot[bot] [Wed, 13 Oct 2021 10:37:01 +0000 (11:37 +0100)]
Bump isort from 5.9.1 to 5.9.3 (#1881)
Bumps [isort](https://github.com/pycqa/isort) from 5.9.1 to 5.9.3.
- [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.9.1...5.9.3)
---
updated-dependencies:
- dependency-name: isort
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>
Tom Christie [Wed, 13 Oct 2021 09:43:58 +0000 (10:43 +0100)]
Version 0.20 (#1890)
* Version 0.20
* Add date to changelog
* Freeze charset-normalizer to a known version for testing consistency
Marcelo Trylesinski [Wed, 6 Oct 2021 12:26:49 +0000 (14:26 +0200)]
Update index.md (#1883)
Co-authored-by: Tom Christie <tom@tomchristie.com>
Marcelo Trylesinski [Wed, 6 Oct 2021 09:13:34 +0000 (11:13 +0200)]
Bump Python 3.10 in the CI (#1886)
Co-authored-by: Tom Christie <tom@tomchristie.com>
Tom Christie [Wed, 6 Oct 2021 08:46:45 +0000 (09:46 +0100)]
Run CI on 3.9.5 (#1887)
* Update test-suite.yml
* Update test-suite.yml
Tom Christie [Tue, 14 Sep 2021 12:36:22 +0000 (13:36 +0100)]
Tidy up the formatting of HTTP/2 requests (#1860)
* Tidy up the formatting of HTTP/2 requests
* Black linting
Tom Christie [Tue, 14 Sep 2021 11:48:06 +0000 (12:48 +0100)]
Fix typo. (#1859)
Tom Christie [Tue, 14 Sep 2021 09:44:07 +0000 (10:44 +0100)]
List 'click' and 'rich' in the project dependencies (#1858)
Tom Christie [Tue, 14 Sep 2021 08:54:50 +0000 (09:54 +0100)]
Update README.md (#1857)
Tom Christie [Tue, 14 Sep 2021 08:44:43 +0000 (09:44 +0100)]
Add cli support (#1855)
* Add cli support
* Add setup.py
* Import main to 'httpx.main'
* Add 'cli' to requirements
* Add tests for command-line client
* Drop most CLI tests
* Add test_json
* Add test_redirects
* Coverage exclusion over _main.py in order to test more clearly
* Black formatting
* Add test_follow_redirects
* Add test_post, test_verbose, test_auth
* Add test_errors
* Remove test_errors
* Add test_download
* Change test_errors - perhaps the empty host header was causing the socket error?
* Update test_errors to not break socket
* Update docs
* Update version to 1.0.0.beta0
* Tweak CHANGELOG
* Fix up images in README
* Tweak images in README
* Update README
Tom Christie [Mon, 13 Sep 2021 12:52:58 +0000 (13:52 +0100)]
is_informational / is_success / is_redirect / is_client_error / is_server_error (#1854)
Tom Christie [Mon, 13 Sep 2021 12:34:46 +0000 (13:34 +0100)]
Transport API as plain `request -> response` method. (#1840)
* Responses as context managers
* timeout -> request.extensions
* Transport API -> request/response signature
* Fix top-level httpx.stream()
* Drop response context manager methods
* Simplify ASGI tests
* Black formatting
Tom Christie [Mon, 13 Sep 2021 12:21:22 +0000 (13:21 +0100)]
Switch follow redirects default (#1808)
* Switch default on allow_redirects to False
* allow_redirects -> follow_redirects
* Update follow_redirects default in top-level API
* Update docs on follow_redirects
Adrian Garcia Badaracco [Tue, 7 Sep 2021 14:44:35 +0000 (09:44 -0500)]
BUG: wsgi.error should be TextIO, not BytesIO in WSGI transport (#1828)
* wsgi.error should be StringIO, not BytesIO
Based on the documentation at https://modwsgi.readthedocs.io/en/master/user-guides/debugging-techniques.html#apache-error-log-files
* Default to sys.stderr and add test
* rename log_file param to wsgi_errors
Co-authored-by: Tom Christie <tom@tomchristie.com>
Robert Craigie [Fri, 3 Sep 2021 13:51:42 +0000 (14:51 +0100)]
Fix conditional imports for pyright (#1839)
dependabot[bot] [Fri, 3 Sep 2021 11:26:01 +0000 (12:26 +0100)]
Bump mkdocs-material from 7.1.8 to 7.2.6 (#1835)
* Bump mkdocs-material from 7.1.8 to 7.2.6
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 7.1.8 to 7.2.6.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/docs/changelog.md)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/7.1.8...7.2.6)
---
updated-dependencies:
- dependency-name: mkdocs-material
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Update requirements.txt
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
dependabot[bot] [Fri, 3 Sep 2021 09:33:38 +0000 (10:33 +0100)]
Bump twine from 3.4.1 to 3.4.2 (#1838)
Bumps [twine](https://github.com/pypa/twine) from 3.4.1 to 3.4.2.
- [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.4.1...3.4.2)
---
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] [Fri, 3 Sep 2021 09:30:01 +0000 (10:30 +0100)]
Bump cryptography from 3.4.7 to 3.4.8 (#1837)
Bumps [cryptography](https://github.com/pyca/cryptography) from 3.4.7 to 3.4.8.
- [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/3.4.7...3.4.8)
---
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] [Fri, 3 Sep 2021 09:26:48 +0000 (10:26 +0100)]
Bump trio-typing from 0.5.0 to 0.5.1 (#1836)
Bumps [trio-typing](https://github.com/python-trio/trio-typing) from 0.5.0 to 0.5.1.
- [Release notes](https://github.com/python-trio/trio-typing/releases)
- [Commits](https://github.com/python-trio/trio-typing/commits)
---
updated-dependencies:
- dependency-name: trio-typing
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>
Marcelo Trylesinski [Fri, 3 Sep 2021 09:19:15 +0000 (11:19 +0200)]
Add dependabot (#1823)
* Add dependabot
* Delete automerge.yml
Co-authored-by: Tom Christie <tom@tomchristie.com>
Stanis Trendelenburg [Wed, 1 Sep 2021 15:21:01 +0000 (17:21 +0200)]
Close WSGI iterable when WSGIByteStream is closed (#1830)
* Make test fail when WSGI iterable is not closed
* Close WSGI iterable when WSGIByteStream is closed
TAHRI Ahmed R [Tue, 31 Aug 2021 12:44:12 +0000 (05:44 -0700)]
:pencil: Docs patch following PR #1791 section compatibility.encoding (#1812)
* :pencil: Docs patch following PR #1791 section compatibility.encoding
Reintroducing charset detection
* 📝 Amend sentence in
3080a9d66ead9b1ffcdc2ec9f4f9364734f8a0c4
Co-authored-by: Tom Christie <tom@tomchristie.com>
Marcelo Trylesinski [Tue, 31 Aug 2021 12:13:42 +0000 (14:13 +0200)]
📌 Pin development requirements (#1721)
* :pushpin: Pin development requirements
* :heavy_minus_sign: Remove attrs dependency
* Add note about decision here
Co-authored-by: Tom Christie <tom@tomchristie.com>
Co-authored-by: Joe <jianghang@didiglobal.com>
Tom Christie [Tue, 31 Aug 2021 10:52:52 +0000 (11:52 +0100)]
Fix iter_bytes with empty content (#1827)
Hugo van Kemenade [Fri, 27 Aug 2021 13:01:06 +0000 (16:01 +0300)]
Test under Python 3.10.0 RC 1 (#1820)
Patrick Arminio [Thu, 26 Aug 2021 01:26:06 +0000 (02:26 +0100)]
Fix typo in RemoteProtocolError description (#1817)
Florimond Manca [Fri, 20 Aug 2021 09:40:05 +0000 (11:40 +0200)]
Fix 0.19.0 release date in CHANGELOG (#1811)
Tom Christie [Thu, 19 Aug 2021 11:37:25 +0000 (12:37 +0100)]
Version 0.19.0 (#1809)
* Update CHANGELOG
* Update CHANGELOG
* Version 0.19.0
* Update CHANGELOG
Tom Christie [Wed, 18 Aug 2021 14:12:39 +0000 (15:12 +0100)]
Switch event hooks to also run on redirects. (#1806)
* Switch event hooks to also run on redirects
* Bump coverage
* Add pragma: no cover, because sometime ya just gotta be pragmatic
* Update docs with note about response.read()
Tom Christie [Wed, 18 Aug 2021 13:08:52 +0000 (14:08 +0100)]
Resolve Python 3.6 tests hanging. (#1807)
* Update README.md
* Update requirements.txt
* Update README.md
Tom Christie [Fri, 13 Aug 2021 14:17:15 +0000 (15:17 +0100)]
Stricter enforcement of either 'with httpx.Client() as client' or 'client = httpx.Client()' lifespan styles. (#1800)
Antonio Larrosa [Fri, 13 Aug 2021 13:13:43 +0000 (15:13 +0200)]
Add a network pytest mark for tests that use the network (#1669)
* Add a network pytest mark for tests that use the network
Sometimes it's useful to have the tests that use the network
marked so they can be skipped easily when we know the network
is not available.
This is useful for example on SUSE and openSUSE's build servers.
When building the httpx packages (actually, any package in the
distribution) the network is disabled so we can assure
reproducible builds (among other benefits). With this mark, it's
easier to skip tests that can not succeed.
* Add a better explanation for the network marker
Co-authored-by: Florimond Manca <15911462+florimondmanca@users.noreply.github.com>
Co-authored-by: Joe <nigelchiang@outlook.com>
Co-authored-by: Florimond Manca <15911462+florimondmanca@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
Tom Christie [Fri, 13 Aug 2021 10:52:45 +0000 (11:52 +0100)]
Use either brotli or brotlicffi. (#1618)
* Use either brotli (recommended for CPython) or brotlicffi (Recommended for PyPy and others)
* Add comments in places where we switch behaviour depending on brotli/brotlicffi
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
Tom Christie [Fri, 13 Aug 2021 10:38:53 +0000 (11:38 +0100)]
Add `charset_normalizer` detection. (#1791)
* Add charset_normalizer detection
* Tweak JSON tests for slightly different charset decoding behaviour
* Add charset-normalizer to docs
Tom Christie [Fri, 13 Aug 2021 10:34:56 +0000 (11:34 +0100)]
Drop mode argument, 'httpx.Proxy(..., mode=...)' (#1795)
Amin Alaee [Fri, 13 Aug 2021 10:27:42 +0000 (14:57 +0430)]
enforce-upload-files-binary-type (#1736)
* enforce-upload-files-binary-type
* Update test_multipart.py
Co-authored-by: Tom Christie <tom@tomchristie.com>
Tom Christie [Fri, 13 Aug 2021 10:07:13 +0000 (11:07 +0100)]
Update HTTP/2 support in `extras_require` (#1799)
* Update extras_require
* Update setup.py
Tom Christie [Tue, 10 Aug 2021 12:30:55 +0000 (13:30 +0100)]
Add Client(allow_redirect=<...>) (#1790)
Michał Górny [Thu, 5 Aug 2021 16:05:38 +0000 (18:05 +0200)]
Fix JSON wrong encoding tests on big endian platforms (#1781)
Fix test_json_without_specified_encoding_*_error tests on big endian
platforms. The tests wrongly assume that data encoded as "utf-32-be"
can not be decoded as "utf-32". This is true on little endian platforms
but on big endian platforms "utf-32" is equivalent to "utf-32-be".
To avoid the problem, explicitly decode as "utf-32-le", as this should
trigger the expected exception independently of platform's endianness.
Michał Górny [Mon, 26 Jul 2021 14:08:58 +0000 (16:08 +0200)]
Inline SERVER_SCOPE and remove typing_extensions requirement (#1773)
Almaz [Wed, 21 Jul 2021 13:30:55 +0000 (16:30 +0300)]
Replace for loops with comprehensions (#1759)
Adrian Garcia Badaracco [Wed, 14 Jul 2021 09:08:21 +0000 (04:08 -0500)]
Fix typo in wsgi.py (#1749)
Thomas Grainger [Mon, 28 Jun 2021 12:20:32 +0000 (13:20 +0100)]
check sys.version_info and ssl.OPENSSL_VERSION_INFO once (#1720)
Thomas Grainger [Mon, 28 Jun 2021 12:12:30 +0000 (13:12 +0100)]
use context.minimum_version in py3.7+ where available (#1714)
Florimond Manca [Thu, 24 Jun 2021 10:15:59 +0000 (12:15 +0200)]
Allow passing additional pytest args to scripts/test (#1710)
Joe [Tue, 22 Jun 2021 12:25:19 +0000 (20:25 +0800)]
Test under Python 3.10b3 (#1707)
Sidharth Vinod [Thu, 17 Jun 2021 12:30:33 +0000 (18:00 +0530)]
Add httpx-caching (#1694)
Sidharth Vinod [Thu, 17 Jun 2021 10:37:03 +0000 (16:07 +0530)]
Fix third party documentation link (#1691)
Tom Christie [Thu, 17 Jun 2021 10:29:22 +0000 (11:29 +0100)]
Version 0.18.2 (#1690)
* Version 0.18.2
Tom Christie [Wed, 16 Jun 2021 14:34:12 +0000 (15:34 +0100)]
Treat warnings as errors (#1687)
* Treat warnings as errors
* Defensive programming in Client.__del__ to avoid possible warnings on partially initialized instances
* Linting
* Ignore linting getattr errors in __del__
* getattr requires a default
* Tighten up closing of auth_flow generators
* Switch multipart test to open file in a context manager
* Ignore warnings on uvicorn
* Drop -Werror from addopts
* Warings specified entirely in 'filterwarnings' section
* Use ssl.PROTOCOL_TLS_CLIENT instead of deprecated ssl.PROTOCOL_TLS
* Push 'check_hostname = False' above 'context.verify_mode = ssl.CERT_NONE'
* Introduce set_minimum_tls_version_1_2 compatible across different python versions
* Commenting
* Add missing annotation
* Exclude _compat from coverage
Co-authored-by: Joe <nigelchiang@outlook.com>
Co-authored-by: jianghang <jianghang@didiglobal.com>
laggardkernel [Wed, 16 Jun 2021 05:52:39 +0000 (13:52 +0800)]
Fix typo (#1688)
Vibhu Agarwal [Wed, 16 Jun 2021 05:19:39 +0000 (10:49 +0530)]
[Docs] Add AnyIO under "Supported async environments" (#1673)
* [Docs] Add AnyIO under "Supported async environments"
* Update docs/async.md
Co-authored-by: Florimond Manca <15911462+florimondmanca@users.noreply.github.com>
Co-authored-by: Florimond Manca <15911462+florimondmanca@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
Mei [Wed, 16 Jun 2021 05:04:47 +0000 (00:04 -0500)]
Add netrc environment variable into the documentation (#1675)
* Adding netrc environment variable documentation
* Update docs/environment_variables.md
Co-authored-by: Tom Christie <tom@tomchristie.com>
* Modifications about netrcfile environment variable
* Change uppercase "A" in netrcfile env variable into lowercase
* Added some words and a dot before "my_netrc" in the console example
* changed a typo "rather that" into "rather than" in advanced.md
* changed netrc environment variable in example part
* modified title for netrc environment variable part in doc
* Deleted the dot in title of netrc environment variable
Co-authored-by: Tom Christie <tom@tomchristie.com>
Marcelo Trylesinski [Tue, 15 Jun 2021 10:59:30 +0000 (12:59 +0200)]
👷 Add Python 3.10 beta to the CI (#1682)
* 👷 Add Python 3.10 beta to the CI
* ⬆️ Upgrade pytest from 5.* to 6.*
Marcelo Trylesinski [Mon, 14 Jun 2021 14:44:27 +0000 (16:44 +0200)]
Update PULL_REQUEST_TEMPLATE.md (#1681)
Small typo on the PR template.
Marcelo Trylesinski [Mon, 14 Jun 2021 13:41:22 +0000 (15:41 +0200)]
➕ Add types-certifi to satisfy mypy 0.902 (#1679)