diff --git a/SOURCES/chardet4.patch b/SOURCES/chardet4.patch new file mode 100644 index 0000000..62d5c11 --- /dev/null +++ b/SOURCES/chardet4.patch @@ -0,0 +1,30 @@ +From b0ed732d0a637e43c72bb1a777d02776cde37376 Mon Sep 17 00:00:00 2001 +From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> +Date: Fri, 11 Dec 2020 10:24:17 +0200 +Subject: [PATCH] Bump chardet from 3.0.4 to 4.0.0 (#5333) + +Bumps [chardet](https://github.com/chardet/chardet) from 3.0.4 to 4.0.0. +- [Release notes](https://github.com/chardet/chardet/releases) +- [Commits](https://github.com/chardet/chardet/compare/3.0.4...4.0.0) + +Signed-off-by: dependabot[bot] + +Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> +--- + requirements/base.txt | 2 +- + setup.py | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/setup.py b/setup.py +index a79e473..3208bcd 100644 +--- a/setup.py ++++ b/setup.py +@@ -65,7 +65,7 @@ except IndexError: + + install_requires = [ + "attrs>=17.3.0", +- "chardet>=2.0,<4.0", ++ "chardet>=2.0,<5.0", + "multidict>=4.5,<7.0", + "async_timeout>=3.0,<4.0", + "yarl>=1.0,<2.0", diff --git a/SOURCES/unbundle-http-parser.patch b/SOURCES/unbundle-http-parser.patch new file mode 100644 index 0000000..d2b5f87 --- /dev/null +++ b/SOURCES/unbundle-http-parser.patch @@ -0,0 +1,23 @@ +diff -Nur aiohttp-3.7.1/aiohttp/_cparser.pxd aiohttp-3.7.1-new/aiohttp/_cparser.pxd +--- aiohttp-3.7.1/aiohttp/_cparser.pxd 2020-10-25 08:26:45.000000000 +0100 ++++ aiohttp-3.7.1-new/aiohttp/_cparser.pxd 2020-10-26 09:07:05.024487885 +0100 +@@ -1,7 +1,7 @@ + from libc.stdint cimport uint16_t, uint32_t, uint64_t + + +-cdef extern from "../vendor/http-parser/http_parser.h": ++cdef extern from "http_parser.h": + ctypedef int (*http_data_cb) (http_parser*, + const char *at, + size_t length) except -1 +diff -Nur aiohttp-3.7.1/setup.py aiohttp-3.7.1-new/setup.py +--- aiohttp-3.7.1/setup.py 2020-10-25 08:26:45.000000000 +0100 ++++ aiohttp-3.7.1-new/setup.py 2020-10-26 09:07:05.024487885 +0100 +@@ -27,7 +27,6 @@ + "aiohttp._http_parser", + [ + "aiohttp/_http_parser.c", +- "vendor/http-parser/http_parser.c", + "aiohttp/_find_header.c", + ], + define_macros=[("HTTP_PARSER_STRICT", 0)],