14
0

Accepting request 1280522 from devel:languages:python

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1280522
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fastimport?expand=0&rev=10
This commit is contained in:
2025-05-27 16:42:48 +00:00
committed by Git OBS Bridge
2 changed files with 13 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 27 11:29:09 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Fri Apr 21 12:24:57 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-fastimport
#
# 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
@@ -17,7 +17,6 @@
%{?sle15_python_module_pythons}
%global skip_python2 1
Name: python-fastimport
Version: 0.9.14
Release: 0
@@ -26,11 +25,13 @@ License: GPL-2.0-or-later
Group: Development/Libraries/Python
URL: https://github.com/jelmer/python-fastimport
Source: https://files.pythonhosted.org/packages/source/f/fastimport/fastimport-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires(post): alts
Requires(postun): alts
BuildArch: noarch
%python_subpackages
@@ -45,17 +46,17 @@ git-remote-hg use a slightly modified version of it.
%setup -q -n fastimport-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/fast-import-query
%python_clone -a %{buildroot}%{_bindir}/fast-import-info
%python_clone -a %{buildroot}%{_bindir}/fast-import-filter
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec -m unittest fastimport.tests.test_suite
%pyunittest fastimport.tests.test_suite
%post
%python_install_alternative fast-import-query