14
0
forked from pool/python-pyhibp

Compare commits

2 Commits

2 changed files with 12 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 4 10:27:02 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Oct 5 00:15:09 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com> Wed Oct 5 00:15:09 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pyhibp # spec file for package python-pyhibp
# #
# Copyright (c) 2022 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
@@ -16,8 +16,6 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-pyhibp Name: python-pyhibp
Version: 4.2.0 Version: 4.2.0
Release: 0 Release: 0
@@ -26,8 +24,10 @@ License: AGPL-3.0-or-later
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://gitlab.com/kitsunix/pyHIBP/pyHIBP URL: https://gitlab.com/kitsunix/pyHIBP/pyHIBP
Source: https://files.pythonhosted.org/packages/source/p/pyhibp/pyhibp-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/pyhibp/pyhibp-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module requests >= 2.20.0 } BuildRequires: %{python_module requests >= 2.20.0 }
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-requests >= 2.20.0 Requires: python-requests >= 2.20.0
@@ -41,10 +41,10 @@ A Python interface to Troy Hunt's 'Have I Been Pwned?' (HIBP) public API.
%setup -q -n pyhibp-%{version} %setup -q -n pyhibp-%{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}
### Tests need network access to https://haveibeenpwned.com ### Tests need network access to https://haveibeenpwned.com
@@ -54,6 +54,7 @@ A Python interface to Troy Hunt's 'Have I Been Pwned?' (HIBP) public API.
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc CHANGELOG.md README.md %doc CHANGELOG.md README.md
%{python_sitelib}/* %{python_sitelib}/pyhibp
%{python_sitelib}/pyhibp-%{version}*-info
%changelog %changelog