1
0

- add 32bit-handle-overflow.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-itsdangerous?expand=0&rev=19
This commit is contained in:
Dirk Mueller 2022-03-24 11:58:11 +00:00 committed by Git OBS Bridge
parent 15693de5f1
commit 69ffb14b06
3 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- itsdangerous-2.1.1/src/itsdangerous/timed.py
+++ itsdangerous-2.1.1/src/itsdangerous/timed.py
@@ -126,7 +126,7 @@
if ts_int is not None:
try:
ts_dt = self.timestamp_to_datetime(ts_int)
- except (ValueError, OSError) as exc:
+ except (OverflowError, ValueError, OSError) as exc:
# Windows raises OSError
raise BadTimeSignature(
"Malformed timestamp", payload=value

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Mar 24 11:57:23 UTC 2022 - Dirk Müller <dmueller@suse.com>
- add 32bit-handle-overflow.patch
-------------------------------------------------------------------
Mon Mar 21 08:11:18 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -27,6 +27,7 @@ License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://itsdangerous.palletsprojects.com
Source: https://files.pythonhosted.org/packages/source/i/itsdangerous/itsdangerous-%{version}.tar.gz
Patch1: 32bit-handle-overflow.patch
BuildRequires: %{python_module freezegun}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
@ -50,6 +51,7 @@ Also I plan to add some extra things. Work in progress.
%prep
%setup -q -n itsdangerous-%{version}
%patch1 -p1
%build
%python_build