From 2f8c8224d2a9b324a3eacce69bea3833af33495510a56e2dcad9ea11bd66f8df 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 --- python-pyotp.changes | 5 +++++ python-pyotp.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-pyotp.changes b/python-pyotp.changes index 3f763b7..ad066ff 100644 --- a/python-pyotp.changes +++ b/python-pyotp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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 diff --git a/python-pyotp.spec b/python-pyotp.spec index ed1dc90..b23bf11 100644 --- a/python-pyotp.spec +++ b/python-pyotp.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyotp # -# Copyright (c) 2023 SUSE LLC +# 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 @@ -27,11 +27,12 @@ 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 @@ -42,10 +43,10 @@ or multi-factor (MFA) authentication methods in web applications and in other sy %setup -q -n pyotp-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -54,6 +55,7 @@ or multi-factor (MFA) authentication methods in web applications and in other sy %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/pyotp +%{python_sitelib}/pyotp-%{version}*-info %changelog