From 364845fe04d93fa0e043c81bb559ffd7629f232f728b4074f19207345c4673c0 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 30 Jun 2025 04:23:59 +0000 Subject: [PATCH] - Switch to pyproject macros. - List directories explicitly under %files. - Run a portion of the testsuite. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gitdb?expand=0&rev=22 --- python-gitdb.changes | 7 +++++++ python-gitdb.spec | 17 ++++++++++++----- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/python-gitdb.changes b/python-gitdb.changes index 4a08515..349582d 100644 --- a/python-gitdb.changes +++ b/python-gitdb.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Jun 30 04:23:20 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- List directories explicitly under %files. +- Run a portion of the testsuite. + ------------------------------------------------------------------- Wed Jan 22 11:05:28 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-gitdb.spec b/python-gitdb.spec index 425cff9..3409090 100644 --- a/python-gitdb.spec +++ b/python-gitdb.spec @@ -24,13 +24,17 @@ Summary: Git Object Database License: BSD-3-Clause URL: https://github.com/gitpython-developers/gitdb Source: https://files.pythonhosted.org/packages/source/g/gitdb/gitdb-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module smmap >= 3.0.1} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-smmap >= 3.0.1 Provides: python-gitdb2 = %{version} Obsoletes: python-gitdb2 < %{version} +BuildArch: noarch %python_subpackages %description @@ -40,19 +44,22 @@ GitDB is a pure-Python git object database %setup -q -n gitdb-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# Package requires its own git tree in order to pass tests -#%%python_exec setup.py test +donttest="test_reading or test_writing or test_correctness or test_base" +donttest+=" or test_loose_correctness or test_pack_random_access" +donttest+=" or test_pack_writing or test_stream_reading" +%pytest -k "not ($donttest)" %files %{python_files} %license LICENSE %doc AUTHORS -%{python_sitelib}/gitdb* +%{python_sitelib}/gitdb +%{python_sitelib}/gitdb-%{version}.dist-info %changelog