14
0
forked from pool/python-pyotp

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyotp?expand=0&rev=17
This commit is contained in:
2025-06-10 11:26:05 +00:00
committed by Git OBS Bridge
parent b8c4494342
commit 2f8c8224d2
2 changed files with 12 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 10 11:25:48 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Dec 26 15:44:10 UTC 2023 - ecsos <ecsos@opensuse.org> Tue Dec 26 15:44:10 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pyotp # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 Source: https://files.pythonhosted.org/packages/source/p/pyotp/pyotp-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
@@ -42,10 +43,10 @@ or multi-factor (MFA) authentication methods in web applications and in other sy
%setup -q -n pyotp-%{version} %setup -q -n pyotp-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -54,6 +55,7 @@ or multi-factor (MFA) authentication methods in web applications and in other sy
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc README.rst %doc README.rst
%{python_sitelib}/* %{python_sitelib}/pyotp
%{python_sitelib}/pyotp-%{version}*-info
%changelog %changelog