15
0
Files
python-aiohttp/python-aiohttp.spec

170 lines
5.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-aiohttp
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%bcond_with docs
%{?sle15_python_module_pythons}
Name: python-aiohttp
Version: 3.12.14
Release: 0
Summary: Asynchronous HTTP client/server framework
License: Apache-2.0
URL: https://github.com/aio-libs/aiohttp
Source: https://files.pythonhosted.org/packages/source/a/aiohttp/aiohttp-%{version}.tar.gz
Patch0: test_no_warnings_fix.patch
# PATCH-FIX-OPENSUSE remove-isal-test-dep.patch -- daniel.garcia@suse.com
# Remove python-isal dependency for testing.
Patch1: remove-isal-test-dep.patch
Accepting request 1288672 from home:mcalabkova:branches:devel:languages:python - Update to 3.12.13 * Optimized web server performance when access logging is disabled by reducing time syscalls * Improved performance of the WebSocket reader * Disabled TLS in TLS warning (when using HTTPS proxies) for uvloop and newer Python versions * Added a comprehensive HTTP Digest Authentication client middleware (DigestAuthMiddleware) that implements RFC 7616. * Fixed pytest plugin to not use deprecated asyncio policy APIs. * Allow user setting zlib compression backend * Added host parameter to aiohttp_server fixture * Added socket_factory to aiohttp.TCPConnector to allow specifying custom socket options * Upgraded to LLHTTP 9.3.0 * Optimized small HTTP requests/responses by coalescing headers and body into a single TCP packet * Removed non SPDX-license description from setup.cfg * Added support for building against system llhttp library * Fixed compatibility issue with Cython 3.1.1 * Added support for reusable request bodies to enable retries, redirects, and digest authentication * Improved performance of isinstance checks by using collections.abc types instead of typing module equivalents * Added ssl_shutdown_timeout parameter to aiohttp.ClientSession and aiohttp.TCPConnector to control the grace period for SSL shutdown handshake on TLS connections. * Downgraded the logging level for connector close errors from ERROR to DEBUG, as these are expected behavior with TLS 1.3 connections * Fixed cookie parsing to be more lenient when handling cookies with special characters in names or values OBS-URL: https://build.opensuse.org/request/show/1288672 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=146
2025-06-30 05:44:16 +00:00
Requires: python-aiohappyeyeballs >= 2.5.0
Requires: python-aiosignal >= 1.4
Requires: python-attrs >= 17.3.0
Requires: python-frozenlist >= 1.1.1
Requires: (python-charset-normalizer >= 2.0 with python-charset-normalizer < 4)
Requires: (python-multidict >= 4.5 with python-multidict < 7)
Requires: (python-yarl >= 1.17.0 with python-yarl < 2)
Recommends: python-Brotli
Recommends: python-aiodns
Recommends: python-cChardet
Suggests: %{name}-doc
# SECTION build requirements
BuildRequires: %{python_module Cython}
2023-11-26 01:07:55 +00:00
BuildRequires: %{python_module devel >= 3.9}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# /SECTION
# SECTION install requirements
Accepting request 1288672 from home:mcalabkova:branches:devel:languages:python - Update to 3.12.13 * Optimized web server performance when access logging is disabled by reducing time syscalls * Improved performance of the WebSocket reader * Disabled TLS in TLS warning (when using HTTPS proxies) for uvloop and newer Python versions * Added a comprehensive HTTP Digest Authentication client middleware (DigestAuthMiddleware) that implements RFC 7616. * Fixed pytest plugin to not use deprecated asyncio policy APIs. * Allow user setting zlib compression backend * Added host parameter to aiohttp_server fixture * Added socket_factory to aiohttp.TCPConnector to allow specifying custom socket options * Upgraded to LLHTTP 9.3.0 * Optimized small HTTP requests/responses by coalescing headers and body into a single TCP packet * Removed non SPDX-license description from setup.cfg * Added support for building against system llhttp library * Fixed compatibility issue with Cython 3.1.1 * Added support for reusable request bodies to enable retries, redirects, and digest authentication * Improved performance of isinstance checks by using collections.abc types instead of typing module equivalents * Added ssl_shutdown_timeout parameter to aiohttp.ClientSession and aiohttp.TCPConnector to control the grace period for SSL shutdown handshake on TLS connections. * Downgraded the logging level for connector close errors from ERROR to DEBUG, as these are expected behavior with TLS 1.3 connections * Fixed cookie parsing to be more lenient when handling cookies with special characters in names or values OBS-URL: https://build.opensuse.org/request/show/1288672 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=146
2025-06-30 05:44:16 +00:00
BuildRequires: %{python_module aiohappyeyeballs >= 2.5.0}
BuildRequires: %{python_module aiosignal >= 1.4}
BuildRequires: %{python_module attrs >= 17.3.0}
BuildRequires: %{python_module charset-normalizer >= 2.0 with %python-charset-normalizer < 4}
BuildRequires: %{python_module frozenlist >= 1.1.1}
BuildRequires: %{python_module multidict >= 4.5 with %python-multidict < 7}
BuildRequires: %{python_module yarl >= 1.17.0 with %python-yarl < 2}
# /SECTION
# SECTION test requirements
BuildRequires: %{python_module aiodns}
BuildRequires: %{python_module Brotli}
Accepting request 1288672 from home:mcalabkova:branches:devel:languages:python - Update to 3.12.13 * Optimized web server performance when access logging is disabled by reducing time syscalls * Improved performance of the WebSocket reader * Disabled TLS in TLS warning (when using HTTPS proxies) for uvloop and newer Python versions * Added a comprehensive HTTP Digest Authentication client middleware (DigestAuthMiddleware) that implements RFC 7616. * Fixed pytest plugin to not use deprecated asyncio policy APIs. * Allow user setting zlib compression backend * Added host parameter to aiohttp_server fixture * Added socket_factory to aiohttp.TCPConnector to allow specifying custom socket options * Upgraded to LLHTTP 9.3.0 * Optimized small HTTP requests/responses by coalescing headers and body into a single TCP packet * Removed non SPDX-license description from setup.cfg * Added support for building against system llhttp library * Fixed compatibility issue with Cython 3.1.1 * Added support for reusable request bodies to enable retries, redirects, and digest authentication * Improved performance of isinstance checks by using collections.abc types instead of typing module equivalents * Added ssl_shutdown_timeout parameter to aiohttp.ClientSession and aiohttp.TCPConnector to control the grace period for SSL shutdown handshake on TLS connections. * Downgraded the logging level for connector close errors from ERROR to DEBUG, as these are expected behavior with TLS 1.3 connections * Fixed cookie parsing to be more lenient when handling cookies with special characters in names or values OBS-URL: https://build.opensuse.org/request/show/1288672 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=146
2025-06-30 05:44:16 +00:00
BuildRequires: %{python_module blockbuster}
BuildRequires: %{python_module freezegun}
BuildRequires: %{python_module gunicorn}
BuildRequires: %{python_module pluggy}
BuildRequires: %{python_module propcache}
BuildRequires: %{python_module pytest >= 6.2.0}
- update to 3.10.11: (bsc#1233446, CVE-2024-52303, bsc#1233447, CVE-2024-52304) - Authentication provided by a redirect now takes precedence over provided auth when making requests with the client -- by :user:`PLPeeters`. - Fixed :py:meth:`WebSocketResponse.close() <aiohttp.web.WebSocketResponse.close>` to discard non-close messages within its timeout window after sending close -- by :user:`lenard-mosys`. - Fixed a deadlock that could occur while attempting to get a new connection slot after a timeout -- by :user:`bdraco`. - Fixed the WebSocket flow control calculation undercounting with multi-byte data -- by :user:`bdraco`. - Fixed incorrect parsing of chunk extensions with the pure Python parser -- by :user:`bdraco`. - Fixed system routes polluting the middleware cache -- by :user:`bdraco`. - Improved performance of the connector when a connection can be reused -- by :user:`bdraco`. - Improved performance of the client request lifecycle when there are no cookies -- by :user:`bdraco`. - Improved performance of sending client requests when the writer can finish synchronously -- by :user:`bdraco`. - Improved performance of serializing HTTP headers -- by :user:`bdraco`. - Passing enable_cleanup_closed to :py:class:`aiohttp.TCPConnector` is now ignored on Python 3.12.7+ and 3.13.1+ since the underlying bug that caused asyncio to leak SSL connections has been fixed upstream -- by :user:`bdraco`. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=138
2024-11-19 09:18:59 +00:00
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest-timeout}
2023-11-26 01:07:55 +00:00
BuildRequires: %{python_module pytest-xdist}
e Update to 3.10.5: * Fixed aiohttp.ClientResponse.json() not setting status when aiohttp.ContentTypeError is raised * Improved performance of the WebSocket reader * Fixed decoding base64 chunk in BodyPartReader * Fixed a race closing the server-side WebSocket where the close code would not reach the client * Fixed unconsumed exceptions raised by the WebSocket heartbeat * Fixed an edge case in the Python parser when chunk separators happen to align with network chunks * Fixed multipart reading when stream buffer splits the boundary over several read() calls * Fixed aiohttp.TCPConnector doing blocking I/O in the event loop to create the SSLContext * Improved performance of aiohttp.ClientWebSocketResponse.receive and aiohttp.web.WebSocketResponse.receive when there is no timeout. * Improved performance of starting request handlers with Python 3.12+ * Improved performance of HTTP keep-alive checks * Fixed server checks for circular symbolic links to be compatible with Python 3.13 * Fixed request body not being read when ignoring an Upgrade request * Fixed an edge case where shutdown would wait for timeout when the handler was already completed * Fixed connecting to npipe://, tcp://, and unix:// urls * Fixed WebSocket ping tasks being prematurely garbage collected * Fixed incorrectly following symlinks for compressed file variants (bsc#1229226, CVE-2024-42367) * Fixed monkey patches for Path.stat() and Path.is_dir() for Python 3.13 compatibility * Fixed url dispatcher index not matching when a variable is preceded by a OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=129
2024-08-20 06:48:58 +00:00
BuildRequires: %{python_module re-assert}
2023-11-26 01:07:55 +00:00
BuildRequires: %{python_module time-machine}
BuildRequires: %{python_module trustme}
Accepting request 1288672 from home:mcalabkova:branches:devel:languages:python - Update to 3.12.13 * Optimized web server performance when access logging is disabled by reducing time syscalls * Improved performance of the WebSocket reader * Disabled TLS in TLS warning (when using HTTPS proxies) for uvloop and newer Python versions * Added a comprehensive HTTP Digest Authentication client middleware (DigestAuthMiddleware) that implements RFC 7616. * Fixed pytest plugin to not use deprecated asyncio policy APIs. * Allow user setting zlib compression backend * Added host parameter to aiohttp_server fixture * Added socket_factory to aiohttp.TCPConnector to allow specifying custom socket options * Upgraded to LLHTTP 9.3.0 * Optimized small HTTP requests/responses by coalescing headers and body into a single TCP packet * Removed non SPDX-license description from setup.cfg * Added support for building against system llhttp library * Fixed compatibility issue with Cython 3.1.1 * Added support for reusable request bodies to enable retries, redirects, and digest authentication * Improved performance of isinstance checks by using collections.abc types instead of typing module equivalents * Added ssl_shutdown_timeout parameter to aiohttp.ClientSession and aiohttp.TCPConnector to control the grace period for SSL shutdown handshake on TLS connections. * Downgraded the logging level for connector close errors from ERROR to DEBUG, as these are expected behavior with TLS 1.3 connections * Fixed cookie parsing to be more lenient when handling cookies with special characters in names or values OBS-URL: https://build.opensuse.org/request/show/1288672 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=146
2025-06-30 05:44:16 +00:00
BuildRequires: %{python_module zlib-ng}
# /SECTION
# SECTION docs
%if %{with docs}
BuildRequires: python3-MarkupSafe
BuildRequires: python3-Pygments >= 2.1
BuildRequires: python3-Sphinx
BuildRequires: python3-aiohttp-theme
BuildRequires: python3-sphinxcontrib-asyncio
- update to 3.1.0: - Relax JSON content-type checking in the ``ClientResponse.json()`` to allow "application/xxx+json" instead of strict "application/json". (#2206) - Bump C HTTP parser to version 2.8 (#2730) - Accept a coroutine as an application factory in ``web.run_app`` and gunicorn worker. (#2739) - Implement application cleanup context (``app.cleanup_ctx`` property). (#2747) - Make ``writer.write_headers`` a coroutine. (#2762) - Add tracking signals for getting request/response bodies. (#2767) - Deprecate ClientResponseError.code in favor of .status to keep similarity with response classes. (#2781) - Implement ``app.add_routes()`` method. (#2787) - Implement ``web.static()`` and ``RouteTableDef.static()`` API. (#2795) - Install a test event loop as default by ``asyncio.set_event_loop()``. The change affects aiohttp test utils but backward compatibility is not broken for 99.99% of use cases. (#2804) - Refactor ``ClientResponse`` constructor: make logically required constructor arguments mandatory, drop ``_post_init()`` method. (#2820) - Use ``app.add_routes()`` in server docs everywhere (#2830) - Websockets refactoring, all websocket writer methods are converted into coroutines. (#2836) - Provide ``Content-Range`` header for ``Range`` requests (#2844) - Fix websocket client return EofStream. (#2784) - Fix websocket demo. (#2789) - Property ``BaseRequest.http_range`` now returns a python-like slice when requesting the tail of the range. It's now indicated by a negative value in ``range.start`` rather then in ``range.stop`` (#2805) - Close a connection if an unexpected exception occurs while sending a request - Fix firing DNS tracing events. (#2841) - Change ``ClientResponse.json()`` documentation to reflect that it now OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=17
2018-03-23 16:04:53 +00:00
BuildRequires: python3-sphinxcontrib-blockdiag
BuildRequires: python3-sphinxcontrib-newsfeed
BuildRequires: python3-sphinxcontrib-towncrier
%endif
# /SECTION
%python_subpackages
%description
Asynchronous HTTP client/server framework for Python.
- Supports both the client and server side of HTTP protocol.
- Supports both client and server WebSockets out-of-the-box.
- Web-server has middleware and pluggable routing.
%package -n %{name}-doc
Summary: Documentation files for %{name}
%description -n %{name}-doc
HTML documentation on the API and examples for %{name}.
%prep
%autosetup -p1 -n aiohttp-%{version}
# don't check coverage
sed -i '/--cov/d' setup.cfg
%build
export CFLAGS="%{optflags}"
%pyproject_wheel
%if %{with docs}
pushd docs
%make_build html
rm _build/html/.buildinfo
popd
%endif
%install
%pyproject_install
%{python_expand %fdupes %{buildroot}%{$python_sitearch}
Accepting request 853108 from home:bnavigator:branches:devel:languages:python - Update to v3.7.3 Features * Made exceptions pickleable. Also changed the repr of some exceptions. #4077 Bugfixes * Raise a ClientResponseError instead of an AssertionError for a blank HTTP Reason Phrase. #3532 * Fix web_middlewares.normalize_path_middleware behavior for patch without slash. #3669 * Fix overshadowing of overlapped sub-applications prefixes. #3701 * Make BaseConnector.close() a coroutine and wait until the client closes all connections. Drop deprecated "with Connector():" syntax. #3736 * Reset the sock_read timeout each time data is received for a aiohttp.client response. #3808 * Fixed type annotation for add_view method of UrlDispatcher to accept any subclass of View #3880 * Fixed querying the address families from DNS that the current host supports. #5156 * Change return type of MultipartReader.__aiter__() and BodyPartReader.__aiter__() to AsyncIterator. #5163 * Provide x86 Windows wheels. #5230 * Improved Documentation * Add documentation for aiohttp.web.FileResponse. #3958 * Removed deprecation warning in tracing example docs #3964 * Fixed wrong "Usage" docstring of aiohttp.client.request. #4603 * Add aiohttp-pydantic to third party libraries #5228 Misc * #4102 - Also clean header files in sitearch - Remove hidden .hash directory (remnant from build process) - Fix python 3.6 build * For Leap * For TW with python36 flavor gh#openSUSE/python-rpm-macros#66 * Always BuildRequire idna_ssl * Skip a failing test on python 3.6 * Next upstream release will drop python 3.6 OBS-URL: https://build.opensuse.org/request/show/853108 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=56
2020-12-04 15:14:54 +00:00
find %{buildroot}%{$python_sitearch} -name '*.[ch]' -delete
rm -r %{buildroot}%{$python_sitearch}/aiohttp/.hash
}
%check
donttest="test_aiohttp_request_coroutine or test_mark_formdata_as_processed or test_aiohttp_plugin_async or test_secure_https_proxy_absolute_path"
# # flaky
# donttest+=" or test_https_proxy_unsupported_tls_in_tls"
# donttest+=" or test_shutdown_handler_cancellation_suppressed"
Accepting request 1288672 from home:mcalabkova:branches:devel:languages:python - Update to 3.12.13 * Optimized web server performance when access logging is disabled by reducing time syscalls * Improved performance of the WebSocket reader * Disabled TLS in TLS warning (when using HTTPS proxies) for uvloop and newer Python versions * Added a comprehensive HTTP Digest Authentication client middleware (DigestAuthMiddleware) that implements RFC 7616. * Fixed pytest plugin to not use deprecated asyncio policy APIs. * Allow user setting zlib compression backend * Added host parameter to aiohttp_server fixture * Added socket_factory to aiohttp.TCPConnector to allow specifying custom socket options * Upgraded to LLHTTP 9.3.0 * Optimized small HTTP requests/responses by coalescing headers and body into a single TCP packet * Removed non SPDX-license description from setup.cfg * Added support for building against system llhttp library * Fixed compatibility issue with Cython 3.1.1 * Added support for reusable request bodies to enable retries, redirects, and digest authentication * Improved performance of isinstance checks by using collections.abc types instead of typing module equivalents * Added ssl_shutdown_timeout parameter to aiohttp.ClientSession and aiohttp.TCPConnector to control the grace period for SSL shutdown handshake on TLS connections. * Downgraded the logging level for connector close errors from ERROR to DEBUG, as these are expected behavior with TLS 1.3 connections * Fixed cookie parsing to be more lenient when handling cookies with special characters in names or values OBS-URL: https://build.opensuse.org/request/show/1288672 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=146
2025-06-30 05:44:16 +00:00
# https://github.com/aio-libs/aiohttp/issues/11113
donttest+=" or test_tcp_connector_ssl_shutdown_timeout"
# most probably https://github.com/cbornet/blockbuster/issues/47
donttest+=" or (test_cookie_jar and (heap or expire)) or test_treat_as_secure_origin_init"
# requires python-on-whales
rm -v tests/autobahn/test_autobahn.py
# uses proxy.py which is not maintained anymore
rm -v tests/test_proxy_functional.py
- update to 3.10.11: (bsc#1233446, CVE-2024-52303, bsc#1233447, CVE-2024-52304) - Authentication provided by a redirect now takes precedence over provided auth when making requests with the client -- by :user:`PLPeeters`. - Fixed :py:meth:`WebSocketResponse.close() <aiohttp.web.WebSocketResponse.close>` to discard non-close messages within its timeout window after sending close -- by :user:`lenard-mosys`. - Fixed a deadlock that could occur while attempting to get a new connection slot after a timeout -- by :user:`bdraco`. - Fixed the WebSocket flow control calculation undercounting with multi-byte data -- by :user:`bdraco`. - Fixed incorrect parsing of chunk extensions with the pure Python parser -- by :user:`bdraco`. - Fixed system routes polluting the middleware cache -- by :user:`bdraco`. - Improved performance of the connector when a connection can be reused -- by :user:`bdraco`. - Improved performance of the client request lifecycle when there are no cookies -- by :user:`bdraco`. - Improved performance of sending client requests when the writer can finish synchronously -- by :user:`bdraco`. - Improved performance of serializing HTTP headers -- by :user:`bdraco`. - Passing enable_cleanup_closed to :py:class:`aiohttp.TCPConnector` is now ignored on Python 3.12.7+ and 3.13.1+ since the underlying bug that caused asyncio to leak SSL connections has been fixed upstream -- by :user:`bdraco`. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=138
2024-11-19 09:18:59 +00:00
# Requires python-pytest-codspeed
rm -v tests/test_benchmarks_*
Accepting request 1288672 from home:mcalabkova:branches:devel:languages:python - Update to 3.12.13 * Optimized web server performance when access logging is disabled by reducing time syscalls * Improved performance of the WebSocket reader * Disabled TLS in TLS warning (when using HTTPS proxies) for uvloop and newer Python versions * Added a comprehensive HTTP Digest Authentication client middleware (DigestAuthMiddleware) that implements RFC 7616. * Fixed pytest plugin to not use deprecated asyncio policy APIs. * Allow user setting zlib compression backend * Added host parameter to aiohttp_server fixture * Added socket_factory to aiohttp.TCPConnector to allow specifying custom socket options * Upgraded to LLHTTP 9.3.0 * Optimized small HTTP requests/responses by coalescing headers and body into a single TCP packet * Removed non SPDX-license description from setup.cfg * Added support for building against system llhttp library * Fixed compatibility issue with Cython 3.1.1 * Added support for reusable request bodies to enable retries, redirects, and digest authentication * Improved performance of isinstance checks by using collections.abc types instead of typing module equivalents * Added ssl_shutdown_timeout parameter to aiohttp.ClientSession and aiohttp.TCPConnector to control the grace period for SSL shutdown handshake on TLS connections. * Downgraded the logging level for connector close errors from ERROR to DEBUG, as these are expected behavior with TLS 1.3 connections * Fixed cookie parsing to be more lenient when handling cookies with special characters in names or values OBS-URL: https://build.opensuse.org/request/show/1288672 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=146
2025-06-30 05:44:16 +00:00
# some tests from here hang with pycares 4.9 https://github.com/aio-libs/aiohttp/issues/11244
rm -v tests/test_leaks.py
# randomly fails on xdist splits
e Update to 3.10.5: * Fixed aiohttp.ClientResponse.json() not setting status when aiohttp.ContentTypeError is raised * Improved performance of the WebSocket reader * Fixed decoding base64 chunk in BodyPartReader * Fixed a race closing the server-side WebSocket where the close code would not reach the client * Fixed unconsumed exceptions raised by the WebSocket heartbeat * Fixed an edge case in the Python parser when chunk separators happen to align with network chunks * Fixed multipart reading when stream buffer splits the boundary over several read() calls * Fixed aiohttp.TCPConnector doing blocking I/O in the event loop to create the SSLContext * Improved performance of aiohttp.ClientWebSocketResponse.receive and aiohttp.web.WebSocketResponse.receive when there is no timeout. * Improved performance of starting request handlers with Python 3.12+ * Improved performance of HTTP keep-alive checks * Fixed server checks for circular symbolic links to be compatible with Python 3.13 * Fixed request body not being read when ignoring an Upgrade request * Fixed an edge case where shutdown would wait for timeout when the handler was already completed * Fixed connecting to npipe://, tcp://, and unix:// urls * Fixed WebSocket ping tasks being prematurely garbage collected * Fixed incorrectly following symlinks for compressed file variants (bsc#1229226, CVE-2024-42367) * Fixed monkey patches for Path.stat() and Path.is_dir() for Python 3.13 compatibility * Fixed url dispatcher index not matching when a variable is preceded by a OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=129
2024-08-20 06:48:58 +00:00
single_runs="(test_run_app or test_web_runner)"
# breaks without threading
single_runs+=" and not test_shutdown_handler_cancellation_suppressed"
2023-11-26 01:07:55 +00:00
test -d aiohttp && mv aiohttp aiohttp.bkp
%pytest_arch tests -k "not ($donttest or ${single_runs})"
%pytest_arch tests -k "${single_runs}"
%files %{python_files}
%license LICENSE.txt
%doc CHANGES.rst CONTRIBUTORS.txt README.rst
Accepting request 853108 from home:bnavigator:branches:devel:languages:python - Update to v3.7.3 Features * Made exceptions pickleable. Also changed the repr of some exceptions. #4077 Bugfixes * Raise a ClientResponseError instead of an AssertionError for a blank HTTP Reason Phrase. #3532 * Fix web_middlewares.normalize_path_middleware behavior for patch without slash. #3669 * Fix overshadowing of overlapped sub-applications prefixes. #3701 * Make BaseConnector.close() a coroutine and wait until the client closes all connections. Drop deprecated "with Connector():" syntax. #3736 * Reset the sock_read timeout each time data is received for a aiohttp.client response. #3808 * Fixed type annotation for add_view method of UrlDispatcher to accept any subclass of View #3880 * Fixed querying the address families from DNS that the current host supports. #5156 * Change return type of MultipartReader.__aiter__() and BodyPartReader.__aiter__() to AsyncIterator. #5163 * Provide x86 Windows wheels. #5230 * Improved Documentation * Add documentation for aiohttp.web.FileResponse. #3958 * Removed deprecation warning in tracing example docs #3964 * Fixed wrong "Usage" docstring of aiohttp.client.request. #4603 * Add aiohttp-pydantic to third party libraries #5228 Misc * #4102 - Also clean header files in sitearch - Remove hidden .hash directory (remnant from build process) - Fix python 3.6 build * For Leap * For TW with python36 flavor gh#openSUSE/python-rpm-macros#66 * Always BuildRequire idna_ssl * Skip a failing test on python 3.6 * Next upstream release will drop python 3.6 OBS-URL: https://build.opensuse.org/request/show/853108 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=56
2020-12-04 15:14:54 +00:00
%{python_sitearch}/aiohttp
e Update to 3.10.5: * Fixed aiohttp.ClientResponse.json() not setting status when aiohttp.ContentTypeError is raised * Improved performance of the WebSocket reader * Fixed decoding base64 chunk in BodyPartReader * Fixed a race closing the server-side WebSocket where the close code would not reach the client * Fixed unconsumed exceptions raised by the WebSocket heartbeat * Fixed an edge case in the Python parser when chunk separators happen to align with network chunks * Fixed multipart reading when stream buffer splits the boundary over several read() calls * Fixed aiohttp.TCPConnector doing blocking I/O in the event loop to create the SSLContext * Improved performance of aiohttp.ClientWebSocketResponse.receive and aiohttp.web.WebSocketResponse.receive when there is no timeout. * Improved performance of starting request handlers with Python 3.12+ * Improved performance of HTTP keep-alive checks * Fixed server checks for circular symbolic links to be compatible with Python 3.13 * Fixed request body not being read when ignoring an Upgrade request * Fixed an edge case where shutdown would wait for timeout when the handler was already completed * Fixed connecting to npipe://, tcp://, and unix:// urls * Fixed WebSocket ping tasks being prematurely garbage collected * Fixed incorrectly following symlinks for compressed file variants (bsc#1229226, CVE-2024-42367) * Fixed monkey patches for Path.stat() and Path.is_dir() for Python 3.13 compatibility * Fixed url dispatcher index not matching when a variable is preceded by a OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=129
2024-08-20 06:48:58 +00:00
%{python_sitearch}/aiohttp-%{version}.dist-info
%if %{with docs}
%if 0%{?suse_version} > 1500
%files -n %{name}-doc
%endif
%doc docs/_build/html
%endif
%changelog