You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.5 KiB

  1. From 9484e13c7da927119fe82794bb5571cec144b6d7 Mon Sep 17 00:00:00 2001
  2. From: Naor Livne <naorlivne@gmail.com>
  3. Date: Fri, 1 Jan 2021 14:31:14 +0200
  4. Subject: [PATCH 1/2] bump idna has version 3.0 was released
  5. Fixes issue (https://github.com/psf/requests/issues/5710):
  6. pkg_resources.ContextualVersionConflict: (idna 3.0 (/usr/lib/python3.9/site-packages), Requirement.parse('idna<3,>=2.5'), {'requests'})
  7. Origin of this patch:
  8. https://github.com/psf/requests/pull/5711
  9. ---
  10. setup.py | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. diff --git a/setup.py b/setup.py
  13. index 7ba4b2a25f..f265384236 100755
  14. --- a/setup.py
  15. +++ b/setup.py
  16. @@ -43,7 +43,7 @@ def run_tests(self):
  17. requires = [
  18. 'chardet>=3.0.2,<5',
  19. - 'idna>=2.5,<3',
  20. + 'idna>=2.5,<4',
  21. 'urllib3>=1.21.1,<1.27',
  22. 'certifi>=2017.4.17'
  23. From d3e00a4958af046879f24de365d5589d861ea6ef Mon Sep 17 00:00:00 2001
  24. From: Naor Livne <naorlivne@gmail.com>
  25. Date: Tue, 5 Jan 2021 16:31:15 +0200
  26. Subject: [PATCH 2/2] Update setup.py
  27. MIME-Version: 1.0
  28. Content-Type: text/plain; charset=UTF-8
  29. Content-Transfer-Encoding: 8bit
  30. Co-authored-by: Mickaël Schoentgen <contact@tiger-222.fr>
  31. ---
  32. setup.py | 3 ++-
  33. 1 file changed, 2 insertions(+), 1 deletion(-)
  34. diff --git a/setup.py b/setup.py
  35. index f265384236..5ce59e621d 100755
  36. --- a/setup.py
  37. +++ b/setup.py
  38. @@ -43,7 +43,8 @@ def run_tests(self):
  39. requires = [
  40. 'chardet>=3.0.2,<5',
  41. - 'idna>=2.5,<4',
  42. + 'idna>=2.5,<3 ; python_version < "3"',
  43. + 'idna>=2.5,<4 ; python_version >= "3"',
  44. 'urllib3>=1.21.1,<1.27',
  45. 'certifi>=2017.4.17'