From 170c14de1a7bc1471d67df3785bdcd82633021ad Mon Sep 17 00:00:00 2001 From: "todd.m.tomashek" Date: Thu, 25 Feb 2021 11:15:34 -0600 Subject: [PATCH] allow chardet 4.0; patch from upstream pr5333 --- recipe/meta.yaml | 6 ++++-- recipe/pr5333.patch | 13 +++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 recipe/pr5333.patch diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 71572e2..c1f83b6 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -8,9 +8,11 @@ package: source: url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz sha256: 9c1a81af067e72261c9cbe33ea792893e83bc6aa987bfbd6fdc1e5e7b22777c4 + patches: + - pr5333.patch build: - number: 1 + number: 2 script: {{ PYTHON }} -m pip install . -vv skip: true # [py2k] @@ -25,7 +27,7 @@ requirements: - python - async-timeout <4.0,>=3.0 - attrs >=17.3.0 - - chardet >=2.0,<4.0 + - chardet >=2.0,<5.0 - idna_ssl >=1.0 # [py<37] - multidict >=4.5,<7.0 - typing-extensions >=3.6.5 diff --git a/recipe/pr5333.patch b/recipe/pr5333.patch new file mode 100644 index 0000000..78420b1 --- /dev/null +++ b/recipe/pr5333.patch @@ -0,0 +1,13 @@ +diff --git a/setup.py b/setup.py +index 428df5d..54462ba 100644 +--- a/setup.py ++++ b/setup.py +@@ -66,7 +66,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",