Commit Graph

1355 Commits

Author SHA1 Message Date
Tom Christie
f4dd500f0e Fix dependency formatting 2023-09-20 10:10:12 +01:00
Tom Christie
0dd72fce4a Make async dependencies optional. 2023-09-20 09:46:39 +01:00
xzmeng
59df8190a4
Raise ValueError on Response.encoding being set after Response.text has been accessed (#2852)
* Raise ValueError on change encoding

* Always raise ValueError for simplicity

* update CHANGELOG.md
2023-09-19 08:54:32 +01:00
Y.D.X
e4241c6155
Drop private imports from test_proxies.py (#2850) 2023-09-16 21:58:56 +01:00
Musale Martin
88e8431437
Add cookies to the retried request when performing digest authentication. (#2846)
* Add cookies from the response to the retried request

* Conditionally add cookies from the response

* Fix failing auth module tests

* Fix linting error

* Add tests to check set cookies from server
2023-09-15 10:52:11 +01:00
Trim21
c3585a5ccf
Version 0.25.0 (#2801)
* bump

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: Kar Petrosyan <92274156+karosis88@users.noreply.github.com>

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

---------

Co-authored-by: Kar Petrosyan <92274156+karosis88@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
2023-09-11 11:13:24 +01:00
Kar Petrosyan
a54ecccd5b
HTTPS proxies support (#2845)
* Add ssl_context argument to Proxy class

* Changelog
2023-09-11 10:56:01 +01:00
Kar Petrosyan
adbcd0e0e7
Change extensions type (#2803)
* Change extensions type

* Update changelog

* install httpcore from the git

* Revert "install httpcore from the git"

This reverts commit 1813c6aff1.

* bump httpcore version

* fix requirements

---------

Co-authored-by: Tom Christie <tom@tomchristie.com>
2023-09-11 09:29:22 +03:00
Kalle Møller
e874351f04
Update _models.py (#2840)
To remove the unknown dict type info

(variable) extensions: ResponseExtensions | dict[Unknown, Unknown]

Co-authored-by: Tom Christie <tom@tomchristie.com>
2023-09-07 10:24:49 +01:00
dependabot[bot]
7ecd828237
Bump coverage[toml] from 7.2.7 to 7.3.0 (#2839)
Bumps [coverage[toml]](https://github.com/nedbat/coveragepy) from 7.2.7 to 7.3.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/7.2.7...7.3.0)

---
updated-dependencies:
- dependency-name: coverage[toml]
  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>
2023-09-07 10:19:54 +01:00
dependabot[bot]
ec4aa5e4ce
Bump mkdocs-material from 9.1.17 to 9.2.6 (#2835) 2023-09-02 08:10:53 +01:00
dependabot[bot]
1703da8706
Bump chardet from 5.1.0 to 5.2.0 (#2837)
Bumps [chardet](https://github.com/chardet/chardet) from 5.1.0 to 5.2.0.
- [Release notes](https://github.com/chardet/chardet/releases)
- [Commits](https://github.com/chardet/chardet/compare/5.1.0...5.2.0)

---
updated-dependencies:
- dependency-name: chardet
  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>
2023-09-01 14:12:56 -05:00
dependabot[bot]
b95ef3e489
Bump mypy from 1.4.1 to 1.5.1 (#2838)
Bumps [mypy](https://github.com/python/mypy) from 1.4.1 to 1.5.1.
- [Commits](https://github.com/python/mypy/compare/v1.4.1...v1.5.1)

---
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>
Co-authored-by: Zanie Blue <contact@zanie.dev>
2023-09-01 13:55:09 -05:00
dependabot[bot]
3a7f6d1a5d
Bump ruff from 0.0.275 to 0.0.286 (#2836)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.275 to 0.0.286.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.0.275...v0.0.286)

---
updated-dependencies:
- dependency-name: ruff
  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>
2023-09-01 13:48:11 -05:00
xzmeng
053bc57c37
fix a typo in docs/logging.md (#2830) 2023-08-29 11:27:23 +02:00
dependabot[bot]
0f61aa58d6
Bump mkdocs from 1.4.3 to 1.5.2 (#2818)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-20 08:44:32 +02:00
dependabot[bot]
c20bacbf76
Bump trio from 0.22.0 to 0.22.2 (#2807)
Bumps [trio](https://github.com/python-trio/trio) from 0.22.0 to 0.22.2.
- [Release notes](https://github.com/python-trio/trio/releases)
- [Commits](https://github.com/python-trio/trio/compare/v0.22.0...v0.22.2)

---
updated-dependencies:
- dependency-name: trio
  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>
2023-08-14 09:01:00 -05:00
dependabot[bot]
304433ebaa
Bump black from 23.3.0 to 23.7.0 (#2805)
Bumps [black](https://github.com/psf/black) from 23.3.0 to 23.7.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/23.3.0...23.7.0)

---
updated-dependencies:
- dependency-name: black
  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>
2023-08-14 08:52:17 -05:00
dependabot[bot]
534b47ebf2
Bump trustme from 1.0.0 to 1.1.0 (#2804)
Bumps [trustme](https://github.com/python-trio/trustme) from 1.0.0 to 1.1.0.
- [Commits](https://github.com/python-trio/trustme/compare/v1.0.0...v1.1.0)

---
updated-dependencies:
- dependency-name: trustme
  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>
2023-08-14 14:36:38 +02:00
Iurii Pliner
b40c04dfa6
Drop support for Python 3.7 (#2813)
* Drop Python 3.7 support

* Fix lint

* Changelog
2023-08-09 10:02:28 +01:00
Trim21
76c9cb65f2
remove unnecessary black argument (#2817) 2023-08-07 18:47:48 +02:00
dependabot[bot]
e99e2948e6
Bump cryptography from 41.0.2 to 41.0.3 (#2809)
Bumps [cryptography](https://github.com/pyca/cryptography) from 41.0.2 to 41.0.3.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/41.0.2...41.0.3)

---
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>
2023-08-02 06:48:15 +01:00
Trim21
9415af643f
Make raise_for_status chainable (#2776)
* merge upstream

* lint

* Update test_async_client.py

* update docs

* add example

* Update docs/quickstart.md

Co-authored-by: Tom Christie <tom@tomchristie.com>

* Update CHANGELOG.md

Co-authored-by: Tom Christie <tom@tomchristie.com>

* Update docs/quickstart.md

Co-authored-by: Tom Christie <tom@tomchristie.com>

---------

Co-authored-by: Tom Christie <tom@tomchristie.com>
2023-08-01 10:22:58 +01:00
Kar Petrosyan
55b8669acb
Add Hishel into the Third Party Packages (#2799) 2023-07-31 16:40:10 +01:00
dependabot[bot]
6a1841b924
Bump cryptography from 41.0.0 to 41.0.2 (#2773)
Bumps [cryptography](https://github.com/pyca/cryptography) from 41.0.0 to 41.0.2.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/41.0.0...41.0.2)

---
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>
2023-07-14 22:38:15 -05:00
Zanie
18d7721c38
Use Mozilla documentation instead of httpstatuses.com for HTTP error reference (#2768) 2023-07-13 15:17:07 -05:00
Marcelo Trylesinski
f6866ce388
Remove temporary click version pin (#2771) 2023-07-13 13:02:01 -05:00
Trim21
f115ce4e09
docs: upload progress (#2725)
* upload progress

* typo

* typo

* Update docs/advanced.md

* Update advanced.md

* Update docs/advanced.md

Co-authored-by: Kar Petrosyan <92274156+karosis88@users.noreply.github.com>

---------

Co-authored-by: Tom Christie <tom@tomchristie.com>
Co-authored-by: Kar Petrosyan <92274156+karosis88@users.noreply.github.com>
2023-07-13 15:55:41 +03:00
Zanie
2c49a151d2
Pin CI version of click to resolve mypy error (#2769)
* Add upper bound to click version to fix mypy error

* Move pin to `requirements.txt`

* Restore `pyproject.toml`
2023-07-12 09:07:06 -05:00
dependabot[bot]
5b156dca7f
Bump coverage[toml] from 7.2.2 to 7.2.7 (#2752)
Bumps [coverage[toml]](https://github.com/nedbat/coveragepy) from 7.2.2 to 7.2.7.
- [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.2...7.2.7)

---
updated-dependencies:
- dependency-name: coverage[toml]
  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>
2023-07-03 10:56:05 +01:00
dependabot[bot]
353fb358eb
Bump mkdocs-material from 9.1.15 to 9.1.17 (#2755)
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.1.15 to 9.1.17.
- [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.15...9.1.17)

---
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>
2023-07-03 10:18:52 +01:00
dependabot[bot]
9d022c0a88
Bump ruff from 0.0.260 to 0.0.275 (#2753)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.260 to 0.0.275.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.0.260...v0.0.275)

---
updated-dependencies:
- dependency-name: ruff
  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>
2023-07-03 10:13:56 +01:00
dependabot[bot]
8a6ef6ed14
Bump mypy from 1.3.0 to 1.4.1 (#2754)
Bumps [mypy](https://github.com/python/mypy) from 1.3.0 to 1.4.1.
- [Commits](https://github.com/python/mypy/compare/v1.3.0...v1.4.1)

---
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>
2023-07-03 09:56:42 +01:00
dependabot[bot]
354a6fc8dc
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>
2023-07-03 09:48:29 +01:00
Johnny Lim
2e2949c8ea
Fix sample in quickstart.md (#2747) 2023-06-22 09:44:44 +01:00
Trond Hindenes
6d183a87e1
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>
2023-06-15 12:20:28 +03:00
Zanie Adkins
920333ea98
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>
2023-06-09 10:06:56 +01:00
Karen Petrosyan
301b8fb03a
Fix URLPattern examples (#2740)
Co-authored-by: Tom Christie <tom@tomchristie.com>
2023-06-08 15:32:18 +03:00
dependabot[bot]
b4f66c2cd7
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>
2023-06-06 10:24:53 +01:00
dependabot[bot]
1b8187ca67
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>
2023-06-06 10:20:00 +01:00
dependabot[bot]
5eb00b77a3
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>
2023-06-06 10:14:50 +01:00
dependabot[bot]
2073ea0046
Bump cryptography from 40.0.2 to 41.0.0 (#2735)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-02 14:33:26 -06:00
dependabot[bot]
dedd37b9ce
Bump mkdocs from 1.4.2 to 1.4.3 (#2730)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-01 10:59:45 -06:00
Karen Petrosyan
733595037a
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
2023-05-24 11:42:39 +03:00
Nik
a682f6f1c7
Fix exception suppression in asgi transport (#2669) 2023-05-21 01:17:23 +01:00
Peter Lazorchak
f9abbbbb48
Update changelog with WSGITransport SERVER_PROTOCOL fix (#2711) 2023-05-19 18:18:00 +01:00
Peter Lazorchak
abb994c0c2
Ensure all WSGITransport environs have a SERVER_PROTOCOL (#2708) 2023-05-19 11:38:18 +01:00
epenet
fcf1bc73db
Version 0.24.1 (#2702)
* Version 0.24.1

* Update CHANGELOG.md

* Update CHANGELOG.md
2023-05-18 12:03:21 +01:00
Tom Christie
ee432c0d30
Fix for gen-delims escaping behaviour in path/query/fragment (#2701) 2023-05-09 14:20:12 +01:00
Bartosz Sokorski
df5dbc0558
Move configuration of tools to pyproject.toml (#2686)
Co-authored-by: Tom Christie <tom@tomchristie.com>
2023-05-03 14:13:40 +01:00