14
0

Accepting request 1282321 from devel:languages:python

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1282321
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-py-vapid?expand=0&rev=5
This commit is contained in:
2025-06-03 15:56:57 +00:00
committed by Git OBS Bridge
2 changed files with 14 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 3 12:53:20 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Tue Dec 13 16:23:06 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-py-vapid
#
# Copyright (c) 2022 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
@@ -16,7 +16,6 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-py-vapid
Version: 1.9.0
Release: 0
@@ -24,12 +23,14 @@ Summary: VAPID header generation library
License: MPL-2.0
URL: https://github.com/mozilla-services/vapid
Source: https://files.pythonhosted.org/packages/source/p/py-vapid/py-vapid-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-cryptography >= 2.5
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires(post): alts
Requires(postun): alts
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module cryptography >= 2.5}
@@ -45,10 +46,10 @@ VAPID header generation library.
sed -i 's/from mock import/from unittest.mock import/' py_vapid/tests/test_vapid.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/vapid
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -65,6 +66,7 @@ sed -i 's/from mock import/from unittest.mock import/' py_vapid/tests/test_vapid
%doc README.md README.rst
%license LICENSE
%python_alternative %{_bindir}/vapid
%{python_sitelib}/*
%{python_sitelib}/py[-_]vapid
%{python_sitelib}/py[-_]vapid-%{version}*-info
%changelog