0001-Allow-idna-3.x-to-be-installed-on-Python-3.x.patch 975 B

123456789101112131415161718192021222324252627282930313233
  1. From d747c4753484aa9b90a094d6bf7ec45e5acfb623 Mon Sep 17 00:00:00 2001
  2. From: Naor Livne <naorlivne@gmail.com>
  3. Date: Wed, 7 Jul 2021 16:25:20 +0300
  4. Subject: [PATCH] Allow idna 3.x to be installed on Python 3.x
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Co-authored-by: Mickaël Schoentgen <contact@tiger-222.fr>
  9. Co-authored-by: Seth Michael Larson <sethmichaellarson@gmail.com>
  10. (cherry picked from commit 33cf965f7271ab4978ed551754db37865c4085db)
  11. Signed-off-by: Romain Naour <romain.naour@gmail.com>
  12. ---
  13. setup.py | 3 ++-
  14. 1 file changed, 2 insertions(+), 1 deletion(-)
  15. diff --git a/setup.py b/setup.py
  16. index 7ba4b2a2..83d78665 100755
  17. --- a/setup.py
  18. +++ b/setup.py
  19. @@ -43,7 +43,8 @@ packages = ['requests']
  20. requires = [
  21. 'chardet>=3.0.2,<5',
  22. - 'idna>=2.5,<3',
  23. + 'idna>=2.5,<3; python_version < "3"',
  24. + 'idna>=2.5,<4; python_version >= "3"',
  25. 'urllib3>=1.21.1,<1.27',
  26. 'certifi>=2017.4.17'
  27. --
  28. 2.31.1