Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| ee019d1b99 | |||
| e040bf51bb |
@@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 30 04:23:20 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- 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 <adrian.glaubitz@suse.com>
|
Wed Jan 22 11:05:28 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -24,13 +24,17 @@ Summary: Git Object Database
|
|||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: https://github.com/gitpython-developers/gitdb
|
URL: https://github.com/gitpython-developers/gitdb
|
||||||
Source: https://files.pythonhosted.org/packages/source/g/gitdb/gitdb-%{version}.tar.gz
|
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 setuptools}
|
||||||
BuildRequires: %{python_module smmap >= 3.0.1}
|
BuildRequires: %{python_module smmap >= 3.0.1}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-smmap >= 3.0.1
|
Requires: python-smmap >= 3.0.1
|
||||||
Provides: python-gitdb2 = %{version}
|
Provides: python-gitdb2 = %{version}
|
||||||
Obsoletes: python-gitdb2 < %{version}
|
Obsoletes: python-gitdb2 < %{version}
|
||||||
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -40,19 +44,22 @@ GitDB is a pure-Python git object database
|
|||||||
%setup -q -n gitdb-%{version}
|
%setup -q -n gitdb-%{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}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# Package requires its own git tree in order to pass tests
|
donttest="test_reading or test_writing or test_correctness or test_base"
|
||||||
#%%python_exec setup.py test
|
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}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc AUTHORS
|
%doc AUTHORS
|
||||||
%{python_sitelib}/gitdb*
|
%{python_sitelib}/gitdb
|
||||||
|
%{python_sitelib}/gitdb-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user