1
0

Accepting request 975666 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/975666
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argon2-cffi?expand=0&rev=10
This commit is contained in:
Dominique Leuenberger 2022-05-10 13:09:55 +00:00 committed by Git OBS Bridge
commit 8053035a3b
4 changed files with 34 additions and 25 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f710b61103d1a1f692ca3ecbd1373e28aa5e545ac625ba067ff2feca1b2bb870
size 1807800

BIN
argon2-cffi-21.3.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Fri May 6 12:54:25 UTC 2022 - Ferdinand Thiessen <rpm@fthiessen.de>
- Update to version 21.3.0
* Feature: Full type hints.
* Adjusted defaults to RFC 9106 and support for pre-configured profiles.
* Python 3.5 is not supported anymore.
* The CFFI bindings have been extracted into a separate project:
argon2-cffi-bindings
* Added: argon2.Parameters.from_parameters() together with the
argon2.profiles module that offers easy access to the RFC-recommended
configuration parameters and then some.
* The CLI interface now has a --profile option that takes any name
from argon2.profiles.
* argon2.PasswordHasher now uses the RFC 9106 low-memory profile
by default. The old defaults are available as argon2.profiles.PRE_21_2.
-------------------------------------------------------------------
Sun Nov 14 23:14:06 UTC 2021 - Michael Ströder <michael@stroeder.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-argon2-cffi
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -20,32 +20,24 @@
%define skip_python2 1
Name: python-argon2-cffi
Version: 21.1.0
Version: 21.3.0
Release: 0
Summary: The Argon2 password hashing algorithm for Python
License: MIT
URL: https://github.com/hynek/argon2_cffi
Source: https://files.pythonhosted.org/packages/source/a/argon2-cffi/argon2-cffi-%{version}.tar.gz
BuildRequires: %{python_module cffi >= 1.0.0}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools >= 6.0}
BuildRequires: %{python_module six}
BuildRequires: fdupes
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(libargon2)
Requires: python-cffi >= 1.0.0
# For test
BuildRequires: %{python_module argon2-cffi-bindings}
Requires: python-argon2-cffi-bindings
Requires: python-six
Provides: python-argon2_cffi
Obsoletes: python-argon2_cffi
%if %{with python2}
BuildRequires: python-enum34
%endif
%ifpython2
Requires: python-enum34
%endif
%python_subpackages
%description
@ -57,19 +49,19 @@ C library.
%build
export ARGON2_CFFI_USE_SYSTEM=1
%python_build
%pyproject_wheel
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# test_argument_ranges - randomly fails
%pytest_arch -k 'not test_argument_ranges'
%pytest
%files %{python_files}
%doc README.rst CHANGELOG.rst FAQ.rst
%doc README.rst AUTHORS.rst FAQ.rst
%license LICENSE
%{python_sitearch}/*
%{python_sitelib}/argon2
%{python_sitelib}/argon2_cffi-%{version}.dist-info
%changelog