Sync from SUSE:SLFO:Main python-itsdangerous revision 482ca0b54379471d3fdca983b4143b69

This commit is contained in:
Adrian Schröter 2024-05-03 21:08:35 +02:00
commit ddf2f0c2b1
4 changed files with 207 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
itsdangerous-2.1.2.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

111
python-itsdangerous.changes Normal file
View File

@ -0,0 +1,111 @@
-------------------------------------------------------------------
Fri Apr 21 12:27:12 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
-------------------------------------------------------------------
Thu Apr 13 22:42:10 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Make calling of %{sle15modernpython} optional.
-------------------------------------------------------------------
Fri Apr 22 20:36:41 UTC 2022 - Michael Ströder <michael@stroeder.com>
- update to 2.1.2
* Handle date overflow in timed unsign on 32-bit systems. :pr:`299`
- removed obsolete 32bit-handle-overflow.patch
-------------------------------------------------------------------
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>
- update to 2.1.1:
* Handle date overflow in timed unsign. :pr:`296`
* Drop support for Python 3.6. :pr:`272`
* Remove previously deprecated code. :pr:`273`
* JWS functionality: Use a dedicated library such as Authlib
instead.
* ``import itsdangerous.json``: Import ``json`` from the standard
library instead.
-------------------------------------------------------------------
Sat Jun 19 07:34:21 UTC 2021 - Michael Ströder <michael@stroeder.com>
- update to version 2.0.1
* Version 2.0.1
- Mark top-level names as exported so type checking understands imports
in user projects. #240
- The salt argument to Serializer and Signer can be None again. #237
* Version 2.0.0
- Drop support for Python 2 and 3.5.
- JWS support (JSONWebSignatureSerializer,
TimedJSONWebSignatureSerializer) is deprecated. Use a dedicated JWS/JWT
library such as authlib instead. #129
- Importing itsdangerous.json is deprecated. Import Pythons json module instead. #152
- Simplejson is no longer used if it is installed. To use a different
library, pass it as Serializer(serializer=...). #146
- datetime values are timezone-aware with timezone.utc. Code using
TimestampSigner.unsign(return_timestamp=True) or
BadTimeSignature.date_signed may need to change. #150
- If a signature has an age less than 0, it will raise SignatureExpired
rather than appearing valid. This can happen if the timestamp offset is
changed. #126
- BadTimeSignature.date_signed is always a datetime object rather than an
int in some cases. #124
- Added support for key rotation. A list of keys can be passed as
secret_key, oldest to newest. The newest key is used for signing, all
keys are tried for unsigning. #141
- Removed the default SHA-512 fallback signer from default_fallback_signers. #155
- Add type information for static typing tools. #186
-------------------------------------------------------------------
Tue Jun 11 07:52:22 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>
- update to version 1.1.0
* Drop support for Python 2.6 and 3.3.
* Optimize how timestamps are serialized and deserialized.
* base64_decode raises BadData when it is passed invalid data.
* More compact JSON dumps for unicode strings.
* Use the full timestamp rather than an offset, allowing dates
before 2011. To retain compatibility with signers from previous
versions, consider using shim from issue #120.
-------------------------------------------------------------------
Tue Dec 4 12:49:25 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package, but
keep testsuite passing.
-------------------------------------------------------------------
Tue Apr 4 15:53:02 UTC 2017 - jmatejek@suse.com
- update for singlespec
-------------------------------------------------------------------
Thu Nov 17 13:03:00 UTC 2016 - rjschwei@suse.com
- Include in SLE 12 (FATE#320818, bsc#979331)
-------------------------------------------------------------------
Fri Jul 18 15:08:08 UTC 2014 - toddrme2178@gmail.com
- Update to 0.24
- Added a `BadHeader` exception that is used for bad headers
that replaces the old `BadPayload` exception that was reused
in those cases.
-------------------------------------------------------------------
Tue Sep 3 13:23:20 UTC 2013 - cfarrell@suse.com
- license update: BSD-3-Clause
See the LICENSE file
-------------------------------------------------------------------
Mon Sep 2 14:55:53 UTC 2013 - speilicke@suse.com
- Initial version

70
python-itsdangerous.spec Normal file
View File

@ -0,0 +1,70 @@
#
# spec file for package python-itsdangerous
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
%global skip_python36 1
%{?sle15_python_module_pythons}
Name: python-itsdangerous
Version: 2.1.2
Release: 0
Summary: Various helpers to pass trusted data to untrusted environments and back
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
BuildRequires: %{python_module freezegun}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
It's Dangerous
... so better sign this
Various helpers to pass data to untrusted environments and to get it back
safe and sound.
This repository provides a module that is a port of the django signing
module. It's not directly copied but some changes were applied to
make it work better on its own.
Also I plan to add some extra things. Work in progress.
%prep
%setup -q -n itsdangerous-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest tests
%files %{python_files}
%license LICENSE.rst
%doc CHANGES.rst README.rst
%{python_sitelib}/*
%changelog