Commit Graph

26 Commits

Author SHA1 Message Date
Tom Christie
4e58ae69e9
Merge branch 'master' into async-dependencies-optional 2024-09-27 13:00:30 +01:00
Michiel W. Beijen
392dbe45f0
Add support for zstd decoding (#3139)
This adds support for zstd decoding using the python package zstandard.
This is similar to how it is implemented in urllib3. I also chose the
optional installation option httpx[zstd] to mimic the same option in
urllib3.

zstd decoding is similar to brotli, but in benchmarks it is supposed to
be even faster. The zstd compression is described in RFC 8878.

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

Co-authored-by: Kamil Monicz <kamil@monicz.dev>
2024-03-21 10:17:15 +00:00
T-256
0006ed0547
format (#3131)
Co-authored-by: T-256 <Tester@test.com>
2024-03-01 19:49:23 +00:00
Kar Petrosyan
87713d2172
Define and expose the API from the same place (#3106)
* Tidy up imports

* Update tests/test_exported_members.py

---------

Co-authored-by: Tom Christie <tom@tomchristie.com>
2024-02-23 12:30:05 +00:00
Tom Christie
3741513647
Merge branch 'master' into async-dependencies-optional 2023-12-28 14:21:57 +00:00
T-256
fd60b1815c
Ruff linter: Use the default line-length (#2922)
Co-authored-by: Tester <Tester@test.com>
Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
2023-11-29 13:28:31 +04:00
Marcel Telka
497b315fc7
Add tests and requirements.txt to sdist (#2927)
* Add tests and requirements.txt to sdist

* Update pyproject.toml

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

---------

Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
2023-11-14 12:17:27 +04:00
Wenceslas Sanchez
89cbd3c942
📌 pin httpcore==1.* (#2937)
* 📌 set httpcore>=1.0.0

* 📌 set httpcore==1.*
2023-11-14 11:51:48 +04:00
Paul Schreiber
280a89a4d1
Support newer versions of httpcore (#2885)
* Support newer versions of httpcore

httpcore 1.0.0 was release October 6, 2023.

* Update pyproject.toml

* Update pyproject.toml

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

* Update pyproject.toml

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

* Update CHANGELOG.md

---------

Co-authored-by: Tom Christie <tom@tomchristie.com>
Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
2023-11-02 14:41:25 +00:00
Kar Petrosyan
1b7f39eb44
Use ruff format (#2901) 2023-11-02 12:48:53 +01:00
Tom Christie
40aa60c2c6
Merge branch 'master' into async-dependencies-optional 2023-10-10 13:43:40 +01:00
Hugo van Kemenade
7c9db49f0c
Add support for Python 3.12 (#2854)
* Add support for Python 3.12

* Bump GitHub Actions

* Remove redundant version checks

* Add CHANGELOG entry
2023-09-21 15:35:56 +01:00
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
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
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
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
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
Marcelo Trylesinski
daec2bdcdb
Use ruff instead of flake8, autoflake and isort (#2648)
* Use ruff instead of flake8, autoflake and isort

* Update pyproject.toml
2023-04-05 12:37:10 +02:00
dependabot[bot]
46a5d38bd7
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>
2023-04-05 11:05:31 +01:00
Tom Christie
57daabf673
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>
2023-01-10 10:36:15 +00:00
Michał Górny
7c53d99da8
Bump rich pin to allow version 13 (#2546)
See https://github.com/encode/httpx/discussions/2544
2023-01-05 12:38:37 +00:00
Hynek Schlawack
e4438a3a71
PyPI readme: fix screenshot links & trim changelog (#2522)
Co-authored-by: Tom Christie <tom@tomchristie.com>
2023-01-02 12:41:45 +00:00
Tom Christie
f11eff45b7
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>
2022-11-18 12:48:32 +00:00
Jo
8088fc7ff7
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
2022-09-29 17:00:21 +01:00
Ofek Lev
45b7cfaad3
Update package metadata (#2334)
Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>
2022-08-22 18:55:06 +02:00