forked from pool/python-requests
		
	- update to 2.28.2:
- Requests now supports charset\_normalizer 3.x. - Updated MissingSchema exception to suggest https scheme rather than http. - drop requests-allow-charset-normalizer-3.patch (upstream) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=165
This commit is contained in:
		| @@ -1,3 +1,11 @@ | ||||
| ------------------------------------------------------------------- | ||||
| Sat Jan 21 10:01:11 UTC 2023 - Dirk Müller <dmueller@suse.com> | ||||
|  | ||||
| - update to 2.28.2: | ||||
|   - Requests now supports charset\_normalizer 3.x. | ||||
|   - Updated MissingSchema exception to suggest https scheme rather than http. | ||||
| - drop requests-allow-charset-normalizer-3.patch (upstream) | ||||
|  | ||||
| ------------------------------------------------------------------- | ||||
| Mon Oct 31 07:43:29 UTC 2022 - David Anes <david.anes@suse.com> | ||||
|  | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| # | ||||
| # spec file | ||||
| # | ||||
| # Copyright (c) 2022 SUSE LLC | ||||
| # Copyright (c) 2023 SUSE LLC | ||||
| # | ||||
| # All modifications and additions to the file contributed by third parties | ||||
| # remain the property of their copyright owners, unless otherwise agreed | ||||
| @@ -26,7 +26,7 @@ | ||||
| %endif | ||||
| %{?!python_module:%define python_module() python-%{**} python3-%{**}} | ||||
| Name:           python-requests%{psuffix} | ||||
| Version:        2.28.1 | ||||
| Version:        2.28.2 | ||||
| Release:        0 | ||||
| Summary:        Python HTTP Library | ||||
| License:        Apache-2.0 | ||||
| @@ -36,8 +36,6 @@ Source:         https://files.pythonhosted.org/packages/source/r/requests/reques | ||||
| # PATCH-FIX-SUSE: do not hardcode versions in setup.py/requirements | ||||
| Patch0:         requests-no-hardcoded-version.patch | ||||
| # PATCH-FIX-UPSTREAN: Allow charset normalizer >=2 and <4 | ||||
| # - https://github.com/psf/requests/commit/c57f1f0ca10e61771b459c857182c23626607312 | ||||
| Patch1:         requests-allow-charset-normalizer-3.patch | ||||
| BuildRequires:  %{python_module base >= 3.7} | ||||
| BuildRequires:  %{python_module setuptools} | ||||
| BuildRequires:  fdupes | ||||
|   | ||||
| @@ -1,3 +0,0 @@ | ||||
| version https://git-lfs.github.com/spec/v1 | ||||
| oid sha256:7c5599b102feddaa661c826c56ab4fee28bfd17f5abca1ebbe3e7f19d7c97983 | ||||
| size 109805 | ||||
							
								
								
									
										3
									
								
								requests-2.28.2.tar.gz
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								requests-2.28.2.tar.gz
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| version https://git-lfs.github.com/spec/v1 | ||||
| oid sha256:98b1b2782e3c6c4904938b84c0eb932721069dfdb9134313beff7c83c2df24bf | ||||
| size 108206 | ||||
| @@ -1,52 +0,0 @@ | ||||
| From c57f1f0ca10e61771b459c857182c23626607312 Mon Sep 17 00:00:00 2001 | ||||
| From: deedy5 <65482418+deedy5@users.noreply.github.com> | ||||
| Date: Thu, 20 Oct 2022 18:26:18 +0000 | ||||
| Subject: [PATCH] Allow charset normalizer >=2 and <4 (#6261) | ||||
|  | ||||
| --- | ||||
|  requests/__init__.py | 4 ++-- | ||||
|  setup.cfg            | 2 +- | ||||
|  setup.py             | 2 +- | ||||
|  3 files changed, 4 insertions(+), 4 deletions(-) | ||||
|  | ||||
| Index: requests-2.28.1/requests/__init__.py | ||||
| =================================================================== | ||||
| --- requests-2.28.1.orig/requests/__init__.py | ||||
| +++ requests-2.28.1/requests/__init__.py | ||||
| @@ -80,8 +80,8 @@ def check_compatibility(urllib3_version, | ||||
|      elif charset_normalizer_version: | ||||
|          major, minor, patch = charset_normalizer_version.split(".")[:3] | ||||
|          major, minor, patch = int(major), int(minor), int(patch) | ||||
| -        # charset_normalizer >= 2.0.0 < 3.0.0 | ||||
| -        assert (2, 0, 0) <= (major, minor, patch) < (3, 0, 0) | ||||
| +        # charset_normalizer >= 2.0.0 < 4.0.0 | ||||
| +        assert (2, 0, 0) <= (major, minor, patch) < (4, 0, 0) | ||||
|      else: | ||||
|          raise Exception("You need either charset_normalizer or chardet installed") | ||||
|   | ||||
| Index: requests-2.28.1/setup.cfg | ||||
| =================================================================== | ||||
| --- requests-2.28.1.orig/setup.cfg | ||||
| +++ requests-2.28.1/setup.cfg | ||||
| @@ -5,7 +5,7 @@ provides-extra = | ||||
|  	use_chardet_on_py3 | ||||
|  requires-dist =  | ||||
|  	certifi>=2017.4.17 | ||||
| -	charset_normalizer>=2,<3 | ||||
| +	charset_normalizer>=2,<4 | ||||
|  	idna>=2.5,<4 | ||||
|  	urllib3>=1.21.1,<1.27 | ||||
|   | ||||
| Index: requests-2.28.1/setup.py | ||||
| =================================================================== | ||||
| --- requests-2.28.1.orig/setup.py | ||||
| +++ requests-2.28.1/setup.py | ||||
| @@ -59,7 +59,7 @@ if sys.argv[-1] == "publish": | ||||
|      sys.exit() | ||||
|   | ||||
|  requires = [ | ||||
| -    "charset_normalizer>=2,<3", | ||||
| +    "charset_normalizer>=2,<4", | ||||
|      "idna>=2.5,<4", | ||||
|      "urllib3>=1.21.1,<1.27", | ||||
|      "certifi>=2017.4.17", | ||||
		Reference in New Issue
	
	Block a user