14
0
forked from pool/python-pyotp

Accepting request 824890 from home:mcalabkova:branches:devel:languages:python

- update to 2.4.0
  * Fix data type for at(for_time) (#85)
  * Add support for parsing provisioning URIs (#84)
  * Raise error when trying to generate secret that is too short (The
    secret must be at least 128 bits)
  * Add random_hex function (#82)
  * Drop Python 2.7

OBS-URL: https://build.opensuse.org/request/show/824890
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyotp?expand=0&rev=5
This commit is contained in:
Tomáš Chvátal
2020-08-07 17:10:32 +00:00
committed by Git OBS Bridge
parent d2d669666f
commit a2bed9959d
4 changed files with 19 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pyotp
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,13 +17,14 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-pyotp
Version: 2.3.0
Version: 2.4.0
Release: 0
Summary: Python One Time Password Library
License: MIT
Group: Development/Languages/Python
Url: https://github.com/pyotp/pyotp
URL: https://github.com/pyotp/pyotp
Source: https://files.pythonhosted.org/packages/source/p/pyotp/pyotp-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
@@ -48,7 +49,7 @@ or multi-factor (MFA) authentication methods in web applications and in other sy
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
%pyunittest
%files %{python_files}
%license LICENSE