Compare commits

1 Commits
1.1 ... main

4 changed files with 40 additions and 15 deletions

Binary file not shown.

BIN
itsdangerous-2.2.0.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +1,29 @@
-------------------------------------------------------------------
Tue Nov 19 12:24:24 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 2.2.0:
* Drop support for Python 3.7. :pr:`372`
* Use modern packaging metadata with pyproject.toml instead of
setup.cfg. :pr:`326`
* Use flit_core instead of setuptools as build backend.
* Deprecate the __version__ attribute. Use feature detection,
or importlib.metadata.version("itsdangerous"), instead.
:issue:`371`
* Serializer and the return type of dumps is generic for type
checking. By default it is Serializer[str] and dumps returns
a str. If a different serializer argument is given, it will
try to infer the return type of its dumps method.
:issue:`347`
* The default hashlib.sha1 may not be available in FIPS builds.
Don't access it at import time so the developer has time to
change the default. :issue:`375`
-------------------------------------------------------------------
Mon Sep 18 04:40:32 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- Stop using greedy globs in %files.
-------------------------------------------------------------------
Fri Apr 21 12:27:12 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-itsdangerous
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,21 +16,19 @@
#
%{?!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
Version: 2.2.0
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 flit-core}
BuildRequires: %{python_module freezegun}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@@ -53,18 +51,19 @@ Also I plan to add some extra things. Work in progress.
%setup -q -n itsdangerous-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest tests
%files %{python_files}
%license LICENSE.rst
%doc CHANGES.rst README.rst
%{python_sitelib}/*
%license LICENSE.txt
%doc CHANGES.rst README.md
%{python_sitelib}/itsdangerous
%{python_sitelib}/itsdangerous-%{version}.dist-info
%changelog