15
0
forked from pool/python-gitdb

2 Commits

Author SHA256 Message Date
194dd4d5df Accepting request 1241510 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1241510
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-gitdb?expand=0&rev=8
2025-01-31 15:02:08 +00:00
27de8ff941 - Update to 4.0.12
* Never add a vendored smmap directory to sys.path
  * Revise and update the readme
  * Set Dependabot submodule update cadence to weekly
  * Add missing asserts in test_base.py
  * Use contextlib.suppress instead of except: pass
  * Add support for Python 3.13
  * Potential Race Condition Fix - OS Rename & Chmod - PermissionError
  * Bump gitdb/ext/smmap from 256c5a2 to 04dd210
  * Bump actions/setup-python from 4 to 5

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gitdb?expand=0&rev=20
2025-01-30 17:37:56 +00:00
2 changed files with 5 additions and 19 deletions

View File

@@ -1,10 +1,3 @@
-------------------------------------------------------------------
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>

View File

@@ -24,17 +24,13 @@ 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
@@ -44,22 +40,19 @@ GitDB is a pure-Python git object database
%setup -q -n gitdb-%{version}
%build
%pyproject_wheel
%python_build
%install
%pyproject_install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
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)"
# Package requires its own git tree in order to pass tests
#%%python_exec setup.py test
%files %{python_files}
%license LICENSE
%doc AUTHORS
%{python_sitelib}/gitdb
%{python_sitelib}/gitdb-%{version}.dist-info
%{python_sitelib}/gitdb*
%changelog