Skip to content

Commit

Permalink
feat: Support httpx 0.28 (#1172)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [httpx](https://redirect.github.com/encode/httpx)
([changelog](https://redirect.github.com/encode/httpx/blob/master/CHANGELOG.md))
| `>=0.20.0,<0.28.0` -> `>=0.20.0,<0.29.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/httpx/0.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/httpx/0.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/httpx/0.27.2/0.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/httpx/0.27.2/0.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [httpx](https://redirect.github.com/encode/httpx)
([changelog](https://redirect.github.com/encode/httpx/blob/master/CHANGELOG.md))
| `>= 0.20.0, < 0.28.0` -> `>=0.20.0, <0.29.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/httpx/0.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/httpx/0.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/httpx/0.27.2/0.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/httpx/0.27.2/0.28.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>encode/httpx (httpx)</summary>

###
[`v0.28.1`](https://redirect.github.com/encode/httpx/blob/HEAD/CHANGELOG.md#0281-6th-December-2024)

[Compare
Source](https://redirect.github.com/encode/httpx/compare/0.28.0...0.28.1)

- Fix SSL case where `verify=False` together with client side
certificates.

###
[`v0.28.0`](https://redirect.github.com/encode/httpx/blob/HEAD/CHANGELOG.md#0280-28th-November-2024)

[Compare
Source](https://redirect.github.com/encode/httpx/compare/0.27.2...0.28.0)

The 0.28 release includes a limited set of deprecations.

**Deprecations**:

We are working towards a simplified SSL configuration API.

*For users of the standard `verify=True` or `verify=False` cases, or
`verify=<ssl_context>` case this should require no changes. The
following cases have been deprecated...*

- The `verify` argument as a string argument is now deprecated and will
raise warnings.
-   The `cert` argument is now deprecated and will raise warnings.

Our revised [SSL documentation](docs/advanced/ssl.md) covers how to
implement the same behaviour with a more constrained API.

**The following changes are also included**:

-   The deprecated `proxies` argument has now been removed.
-   The deprecated `app` argument has now been removed.
- JSON request bodies use a compact representation.
([#&#8203;3363](https://redirect.github.com/encode/httpx/issues/3363))
- Review URL percent escape sets, based on WHATWG spec.
([#&#8203;3371](https://redirect.github.com/encode/httpx/issues/3371),
[#&#8203;3373](https://redirect.github.com/encode/httpx/issues/3373))
- Ensure `certifi` and `httpcore` are only imported if required.
([#&#8203;3377](https://redirect.github.com/encode/httpx/issues/3377))
- Treat `socks5h` as a valid proxy scheme.
([#&#8203;3178](https://redirect.github.com/encode/httpx/issues/3178))
- Cleanup `Request()` method signature in line with `client.request()`
and `httpx.request()`.
([#&#8203;3378](https://redirect.github.com/encode/httpx/issues/3378))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/openapi-generators/openapi-python-client).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xOS4wIiwidXBkYXRlZEluVmVyIjoiMzkuNDIuNCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Dylan Anthony <dbanty@users.noreply.github.com>
  • Loading branch information
renovate[bot] and dbanty authored Dec 24, 2024
1 parent 233ac66 commit 46b7523
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 38 deletions.
2 changes: 1 addition & 1 deletion end_to_end_tests/golden-record/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ include = ["CHANGELOG.md", "my_test_api_client/py.typed"]

[tool.poetry.dependencies]
python = "^3.9"
httpx = ">=0.20.0,<0.28.0"
httpx = ">=0.20.0,<0.29.0"
attrs = ">=21.3.0"
python-dateutil = "^2.8.0"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ include = ["CHANGELOG.md", "my_enum_api_client/py.typed"]

[tool.poetry.dependencies]
python = "^3.9"
httpx = ">=0.20.0,<0.28.0"
httpx = ">=0.20.0,<0.29.0"
attrs = ">=21.3.0"
python-dateutil = "^2.8.0"

Expand Down
2 changes: 1 addition & 1 deletion end_to_end_tests/metadata_snapshots/pdm.pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = []
readme = "README.md"
requires-python = ">=3.9,<4.0"
dependencies = [
"httpx>=0.20.0,<0.28.0",
"httpx>=0.20.0,<0.29.0",
"attrs>=21.3.0",
"python-dateutil>=2.8.0",
]
Expand Down
2 changes: 1 addition & 1 deletion end_to_end_tests/metadata_snapshots/poetry.pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ include = ["CHANGELOG.md", "test_3_1_features_client/py.typed"]

[tool.poetry.dependencies]
python = "^3.9"
httpx = ">=0.20.0,<0.28.0"
httpx = ">=0.20.0,<0.29.0"
attrs = ">=21.3.0"
python-dateutil = "^2.8.0"

Expand Down
2 changes: 1 addition & 1 deletion end_to_end_tests/metadata_snapshots/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
long_description_content_type="text/markdown",
packages=find_packages(),
python_requires=">=3.9, <4",
install_requires=["httpx >= 0.20.0, < 0.28.0", "attrs >= 21.3.0", "python-dateutil >= 2.8.0, < 3"],
install_requires=["httpx >= 0.20.0, < 0.29.0", "attrs >= 21.3.0", "python-dateutil >= 2.8.0, < 3"],
package_data={"test_3_1_features_client": ["py.typed"]},
)
2 changes: 1 addition & 1 deletion end_to_end_tests/test-3-1-golden-record/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ include = ["CHANGELOG.md", "test_3_1_features_client/py.typed"]

[tool.poetry.dependencies]
python = "^3.9"
httpx = ">=0.20.0,<0.28.0"
httpx = ">=0.20.0,<0.29.0"
attrs = ">=21.3.0"
python-dateutil = "^2.8.0"

Expand Down
21 changes: 10 additions & 11 deletions integration-tests/pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion integration-tests/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "A client library for accessing OpenAPI Test Server"
authors = []
readme = "README.md"
dependencies = [
"httpx>=0.20.0,<0.28.0",
"httpx>=0.20.0,<0.29.0",
"attrs>=21.3.0",
"python-dateutil>=2.8.0",
]
Expand Down
4 changes: 2 additions & 2 deletions openapi_python_client/templates/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ include = ["CHANGELOG.md", "{{ package_name }}/py.typed"]
{% if pdm %}
dependencies = [
"httpx>=0.20.0,<0.28.0",
"httpx>=0.20.0,<0.29.0",
"attrs>=21.3.0",
"python-dateutil>=2.8.0",
]
Expand All @@ -31,7 +31,7 @@ distribution = true

[tool.poetry.dependencies]
python = "^3.9"
httpx = ">=0.20.0,<0.28.0"
httpx = ">=0.20.0,<0.29.0"
attrs = ">=21.3.0"
python-dateutil = "^2.8.0"
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion openapi_python_client/templates/setup.py.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ setup(
long_description_content_type="text/markdown",
packages=find_packages(),
python_requires=">=3.9, <4",
install_requires=["httpx >= 0.20.0, < 0.28.0", "attrs >= 21.3.0", "python-dateutil >= 2.8.0, < 3"],
install_requires=["httpx >= 0.20.0, < 0.29.0", "attrs >= 21.3.0", "python-dateutil >= 2.8.0, < 3"],
package_data={"{{ package_name }}": ["py.typed"]},
)
31 changes: 15 additions & 16 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies = [
"pydantic>=2.1.1,<3.0.0",
"attrs>=21.3.0",
"python-dateutil>=2.8.1,<3.0.0",
"httpx>=0.20.0,<0.28.0",
"httpx>=0.20.0,<0.29.0",
"ruamel.yaml>=0.18.6,<0.19.0",
"ruff>=0.2,<0.9",
"typing-extensions>=4.8.0,<5.0.0",
Expand Down

0 comments on commit 46b7523

Please sign in to comment.