From 63d093e4d56b50560ad56a0339c815561292ea9be127047d67cbd2f4946927c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 10 Jun 2025 11:26:05 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyotp?expand=0&rev=17 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + pyotp-2.9.0.tar.gz | 3 ++ python-pyotp.changes | 66 ++++++++++++++++++++++++++++++++++++++++++++ python-pyotp.spec | 61 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 154 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pyotp-2.9.0.tar.gz create mode 100644 python-pyotp.changes create mode 100644 python-pyotp.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pyotp-2.9.0.tar.gz b/pyotp-2.9.0.tar.gz new file mode 100644 index 0000000..13efb82 --- /dev/null +++ b/pyotp-2.9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:346b6642e0dbdde3b4ff5a930b664ca82abfa116356ed48cc42c7d6590d36f63 +size 17763 diff --git a/python-pyotp.changes b/python-pyotp.changes new file mode 100644 index 0000000..ad066ff --- /dev/null +++ b/python-pyotp.changes @@ -0,0 +1,66 @@ +------------------------------------------------------------------- +Tue Jun 10 11:25:48 UTC 2025 - Markéta Machová + +- Convert to pip-based build + +------------------------------------------------------------------- +Tue Dec 26 15:44:10 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Thu Dec 14 21:30:56 UTC 2023 - Dirk Müller + +- update to 2.9.0: + * Add `parse_uri()` support for Steam TOTP (#153) + * Test and documentation improvements + +------------------------------------------------------------------- +Mon Jan 2 18:54:50 UTC 2023 - Dirk Müller + +- update to v2.8.0: + * Modify OTP generation to run in constant time + * Documentation improvements + * Drop Python 3.6 support; introduce Python 3.11 support + +------------------------------------------------------------------- +Wed Oct 12 14:54:55 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 2.7.0 + * Support Steam TOTP (#142) + * Build, test, and documentation updates + +------------------------------------------------------------------- +Wed Mar 24 10:47:36 UTC 2021 - Martin Hauke + +- update to 2.6.0 + * Raise default and minimum base32 secret length to 32, and hex + secret length to 40 (160 bits as recommended by the RFC). + * Fix issue where provisioning_uri would return invalid results + after calling verify(). +- update to 2.5.0 + * parse_uri accepts and ignores optional image parameter. + +------------------------------------------------------------------- +Fri Aug 7 13:13:17 UTC 2020 - Marketa Calabkova + +- 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 + +------------------------------------------------------------------- +Tue Jul 30 12:00:33 UTC 2019 - pgajdos@suse.com + +- version update to 2.3.0 + * Fix comparison behavior on Python 2.7 + * Fix comparison of unicode chars (#78) + * Minor documentation and test fixes + +------------------------------------------------------------------- +Tue Mar 26 12:52:02 UTC 2019 - Tomáš Chvátal + +- Initial commit, needed by PyFxA diff --git a/python-pyotp.spec b/python-pyotp.spec new file mode 100644 index 0000000..b23bf11 --- /dev/null +++ b/python-pyotp.spec @@ -0,0 +1,61 @@ +# +# spec file for package python-pyotp +# +# Copyright (c) 2025 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-pyotp +Version: 2.9.0 +Release: 0 +Summary: Python One Time Password Library +License: MIT +Group: Development/Languages/Python +URL: https://github.com/pyauth/pyotp +Source: https://files.pythonhosted.org/packages/source/p/pyotp/pyotp-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +PyOTP is a Python library for generating and verifying one-time passwords. It can be used to implement two-factor (2FA) +or multi-factor (MFA) authentication methods in web applications and in other systems that require users to log in. + +%prep +%setup -q -n pyotp-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pyunittest + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/pyotp +%{python_sitelib}/pyotp-%{version}*-info + +%changelog