forked from pool/python-aiohttp
* Fixed cookie parser to continue parsing subsequent cookies
when encountering a malformed cookie that fails regex
validation, such as Google's g_state cookie with unescaped
quotes -- by :user:`bdraco`. Related issues and pull requests
on GitHub: :issue:`11632`.
* Fixed loading netrc credentials from the default
:file:`~/.netrc` (:file:`~/_netrc` on Windows) location when
the :envvar:`NETRC` environment variable is not set -- by
:user:`bdraco`. Related issues and pull requests on GitHub:
:issue:`11713`, :issue:`11714`.
* Fixed WebSocket compressed sends to be cancellation safe.
Tasks are now shielded during compression to prevent
compressor state corruption. This ensures that the stateful
compressor remains consistent even when send operations are
cancelled -- by :user:`bdraco`. Related issues and pull
requests on GitHub: :issue:`11725`.
* Make configuration options in AppRunner also available in
run_app() -- by :user:`Cycloctane`. Related issues and pull
requests on GitHub: :issue:`11633`.
* Switched to backports.zstd for Python <3.14 and fixed zstd
decompression for chunked zstd streams -- by :user:`ZhaoMJ`.
Note: Users who installed zstandard for support on Python
<3.14 will now need to install backports.zstd instead
(installing aiohttp[speedups] will do this automatically).
Related issues and pull requests on GitHub: :issue:`11623`.
* Updated Content-Type header parsing to return
application/octet-stream when header contains invalid syntax.
See RFC 9110. -- by :user:`sgaist`. Related issues and pull
requests on GitHub: :issue:`10889`.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=162
76 lines
2.1 KiB
Diff
76 lines
2.1 KiB
Diff
--- a/Makefile.orig 2025-10-16 13:56:38.297077787 +0200
|
|
+++ b/Makefile 2025-10-16 13:59:43.532929894 +0200
|
|
@@ -47,10 +47,8 @@
|
|
.SECONDARY: $(call to-hash,$(ALLS))
|
|
|
|
.update-pip:
|
|
- @python -m pip install --upgrade pip
|
|
|
|
.install-cython: .update-pip $(call to-hash,requirements/cython.txt)
|
|
- @python -m pip install -r requirements/cython.in -c requirements/cython.txt
|
|
@touch .install-cython
|
|
|
|
aiohttp/_find_header.c: $(call to-hash,aiohttp/hdrs.py ./tools/gen.py)
|
|
@@ -85,7 +83,6 @@
|
|
cythonize-nodeps: $(PYXS:.pyx=.c) aiohttp/_websocket/reader_c.c
|
|
|
|
.install-deps: .install-cython $(PYXS:.pyx=.c) aiohttp/_websocket/reader_c.c $(call to-hash,$(CYS) $(REQS))
|
|
- @python -m pip install -r requirements/dev.in -c requirements/dev.txt
|
|
@touch .install-deps
|
|
|
|
.PHONY: lint
|
|
@@ -100,7 +97,6 @@
|
|
mypy
|
|
|
|
.develop: .install-deps generate-llhttp $(call to-hash,$(PYS) $(CYS) $(CS))
|
|
- python -m pip install -e . -c requirements/runtime-deps.txt
|
|
@touch .develop
|
|
|
|
.PHONY: test
|
|
@@ -110,12 +106,12 @@
|
|
.PHONY: vtest
|
|
vtest: .develop
|
|
@pytest -s -v
|
|
- @python -X dev -m pytest -s -v -m dev_mode
|
|
+ python3 -X dev -m pytest -s -v -m dev_mode
|
|
|
|
.PHONY: vvtest
|
|
vvtest: .develop
|
|
@pytest -vv
|
|
- @python -X dev -m pytest -s -v -m dev_mode
|
|
+ python3 -X dev -m pytest -s -v -m dev_mode
|
|
|
|
|
|
define run_tests_in_docker
|
|
@@ -151,7 +147,7 @@
|
|
@rm -rf build
|
|
@rm -rf cover
|
|
@make -C docs clean
|
|
- @python setup.py clean
|
|
+ python3 setup.py clean
|
|
@rm -f aiohttp/*.so
|
|
@rm -f aiohttp/*.pyd
|
|
@rm -f aiohttp/*.html
|
|
@@ -182,7 +178,6 @@
|
|
|
|
.PHONY: install
|
|
install: .update-pip
|
|
- @python -m pip install -r requirements/dev.in -c requirements/dev.txt
|
|
|
|
.PHONY: install-dev
|
|
install-dev: .develop
|
|
@@ -190,4 +185,4 @@
|
|
.PHONY: sync-direct-runtime-deps
|
|
sync-direct-runtime-deps:
|
|
@echo Updating 'requirements/runtime-deps.in' from 'setup.cfg'... >&2
|
|
- @python requirements/sync-direct-runtime-deps.py
|
|
+ python3 requirements/sync-direct-runtime-deps.py
|
|
--- a/tools/gen.py.orig 2025-10-16 14:00:10.257485651 +0200
|
|
+++ a/tools/gen.py 2025-10-16 14:00:18.604659234 +0200
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/env python
|
|
+#!/usr/bin/python3
|
|
|
|
import io
|
|
import pathlib
|