14
0
forked from pool/python-sure

Accepting request 1162365 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1162365
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sure?expand=0&rev=13
This commit is contained in:
2024-03-28 12:52:16 +00:00
committed by Git OBS Bridge
2 changed files with 14 additions and 4 deletions

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Mar 26 19:06:01 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Switch build system from setuptools to pyproject.toml
+ Add python-pip and python-wheel to BuildRequires
+ Replace %python_build with %pyproject_wheel
+ Replace %python_install with %pyproject_install
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Dec 4 10:46:23 UTC 2023 - Dirk Müller <dmueller@suse.com> Mon Dec 4 10:46:23 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-sure # spec file for package python-sure
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 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
@@ -26,9 +26,11 @@ URL: https://github.com/gabrielfalcao/sure
Source: https://files.pythonhosted.org/packages/source/s/sure/sure-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/s/sure/sure-%{version}.tar.gz
# Based on https://github.com/gabrielfalcao/sure/pull/161 # Based on https://github.com/gabrielfalcao/sure/pull/161
Patch0: python-sure-no-mock.patch Patch0: python-sure-no-mock.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six >= 1.10.0} BuildRequires: %{python_module six >= 1.10.0}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-six >= 1.10.0 Requires: python-six >= 1.10.0
@@ -47,10 +49,10 @@ sed -i '/^#!/d' sure/*.py
sed -i 's/--cov=sure//' setup.cfg sed -i 's/--cov=sure//' setup.cfg
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/sure %python_clone -a %{buildroot}%{_bindir}/sure
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}