7 Commits

Author SHA256 Message Date
5e3007e683 Accepting request 1238508 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1238508
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-httpx?expand=0&rev=18
2025-01-18 12:18:04 +00:00
51cf5812d4 Accepting request 1238441 from home:nkrapp:branches:devel:languages:python
- Use libalternatives instead of update-alternatives, bsc#1235784 
- don't run tests in strict async mode, upstream doesn't either
- disable flaky test

OBS-URL: https://build.opensuse.org/request/show/1238441
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpx?expand=0&rev=39
2025-01-17 13:58:42 +00:00
75cdb5a91d Accepting request 1229172 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1229172
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-httpx?expand=0&rev=17
2024-12-13 21:33:07 +00:00
12eff59f5f Accepting request 1229039 from home:bnavigator:branches:devel:languages:python:jupyter
- Update to 0.28.1
  * Fix SSL case where verify=False together with client side
    certificates.
- Release 0.28.0
  ## 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 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. (#3363)
  * Review URL percent escape sets, based on WHATWG spec. (#3371,
    #3373)
  * Ensure certifi and httpcore are only imported if required.
    (#3377)
  * Treat socks5h as a valid proxy scheme. (#3178)
  * Cleanup Request() method signature in line with
    client.request() and httpx.request(). (#3378)

OBS-URL: https://build.opensuse.org/request/show/1229039
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpx?expand=0&rev=37
2024-12-08 23:27:43 +00:00
f0485b4f2e Accepting request 1200062 from devel:languages:python
- update to 0.27.2:
  * Reintroduced supposedly-private `URLTypes` shortcut.
  * Support for `zstd` content decoding using the python
    `zstandard` package is added. Installable using
    `httpx[zstd]`.
  * Improved error messaging for `InvalidURL` exceptions.
  * Fix `app` type signature in `ASGITransport`.

  * The app=... shortcut has been deprecated. Use the explicit style of

OBS-URL: https://build.opensuse.org/request/show/1200062
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-httpx?expand=0&rev=16
2024-09-12 14:54:01 +00:00
721293fa1b OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpx?expand=0&rev=35 2024-09-11 08:16:58 +00:00
4eb79c2680 - update to 0.27.2:
* Reintroduced supposedly-private `URLTypes` shortcut.
  * Support for `zstd` content decoding using the python
    `zstandard` package is added. Installable using
    `httpx[zstd]`.
  * Improved error messaging for `InvalidURL` exceptions.
  * Fix `app` type signature in `ASGITransport`.
  * The app=... shortcut has been deprecated. Use the explicit style of

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpx?expand=0&rev=34
2024-09-08 13:05:57 +00:00
4 changed files with 73 additions and 9 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b7ad539016912567002a5358ad8f0dbf5873d963467f9bd2af6ba37eddc13c6e
size 2168004

BIN
httpx-0.28.1.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,8 +1,55 @@
-------------------------------------------------------------------
Wed Jan 15 13:25:11 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- Use libalternatives instead of update-alternatives, bsc#1235784
- don't run tests in strict async mode, upstream doesn't either
- disable flaky test
-------------------------------------------------------------------
Sat Dec 7 13:27:08 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Update to 0.28.1
* Fix SSL case where verify=False together with client side
certificates.
- Release 0.28.0
## 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 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. (#3363)
* Review URL percent escape sets, based on WHATWG spec. (#3371,
#3373)
* Ensure certifi and httpcore are only imported if required.
(#3377)
* Treat socks5h as a valid proxy scheme. (#3178)
* Cleanup Request() method signature in line with
client.request() and httpx.request(). (#3378)
-------------------------------------------------------------------
Sun Sep 8 13:05:12 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 0.27.2:
* Reintroduced supposedly-private `URLTypes` shortcut.
* Support for `zstd` content decoding using the python
`zstandard` package is added. Installable using
`httpx[zstd]`.
* Improved error messaging for `InvalidURL` exceptions.
* Fix `app` type signature in `ASGITransport`.
-------------------------------------------------------------------
Fri Mar 22 09:57:30 UTC 2024 - Markéta Machová <mmachova@suse.com>
- Update to 0.27.0
* The app=... shortcut has been deprecated. Use the explicit style of
* The app=... shortcut has been deprecated. Use the explicit style of
transport=httpx.WSGITransport() or transport=httpx.ASGITransport() instead.
* Respect the http1 argument while configuring proxy transports. (#3023)
* Fix RFC 2069 mode digest authentication. (#3045)

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-httpx
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,9 +25,15 @@
%bcond_with test
%endif
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-httpx%{psuffix}
Version: 0.27.0
Version: 0.28.1
Release: 0
Summary: Python HTTP client with async support
License: BSD-3-Clause
@@ -44,14 +50,18 @@ Requires: python-anyio
Requires: python-certifi
Requires: python-httpcore >= 0.18.0
Requires: python-idna >= 2.0
Requires: python-sniffio
Recommends: python-Brotli
Recommends: python-Pygments >= 2
Recommends: python-click >= 8
Recommends: python-h2 >= 3.0
Recommends: python-rich >= 10
%if %{with libalternatives}
Requires: alts
BuildRequires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
BuildArch: noarch
# SECTION test requirements
%if %{with test}
@@ -69,6 +79,7 @@ BuildRequires: %{python_module trio}
BuildRequires: %{python_module trustme}
# uvicorn 0.18 fixed an issue in the test suite where http-headers wer not all lowercase as expected
BuildRequires: %{python_module uvicorn >= 0.18}
BuildRequires: %{python_module zstandard}
%endif
# /SECTION
%python_subpackages
@@ -95,9 +106,15 @@ Python HTTP client with async support.
donttest="network"
# no socksio
donttest="$donttest or socks"
%pytest -vv -k "not ($donttest)" --asyncio-mode=strict
# test is hardware dependent, fails on OBS
donttest="$donttest or test_write_timeout[trio]"
%pytest -vv -k "not ($donttest)"
%endif
%pre
# If libalternatives is used: Removing old update-alternatives entries.
%python_libalternatives_reset_alternative httpx
%post
%python_install_alternative httpx
@@ -110,7 +127,7 @@ donttest="$donttest or socks"
%license LICENSE.md
%python_alternative %{_bindir}/httpx
%{python_sitelib}/httpx
%{python_sitelib}/httpx-%{version}*-info
%{python_sitelib}/httpx-%{version}.dist-info
%endif
%changelog