14
0
forked from pool/python-pygit2

Accepting request 1181724 from home:glaubitz:branches:devel:languages:python

- Update to 1.15.1
  * Many deprecated features have been removed, see below
  * Upgrade to libgit2 v1.8.1
  * New `push_options` optional argument in `Repository.push(...)`
  * New support comparison of `Oid` with text string
  * Fix `CheckoutNotify.IGNORED`
  * Use default error handler when decoding/encoding paths
  * Remove setuptools runtime dependency
  * Coding style with ruff
  * Add wheels for ppc64le
  * Fix tests on EPEL8 builds for s390x
  * Deprecate `IndexEntry.hex`, use `str(IndexEntry.id)`
  * Remove deprecated `oid.hex`, use `str(oid)`
  * Remove deprecated `object.hex`, use `str(object.id)`
  * Remove deprecated `object.oid`, use `object.id`
  * Remove deprecated `Repository.add_submodule(...)`, use `Repository.submodules.add(...)`
  * Remove deprecated `Repository.lookup_submodule(...)`, use `Repository.submodules[...]`
  * Remove deprecated `Repository.init_submodules(...)`, use `Repository.submodules.init(...)`
  * Remove deprecated `Repository.update_submodule(...)`, use `Repository.submodules.update(...)`
  * Remove deprecated constants `GIT_OBJ_XXX`, use `ObjectType`
  * Remove deprecated constants `GIT_REVPARSE_XXX`, use `RevSpecFlag`
  * Remove deprecated constants `GIT_REF_XXX`, use `ReferenceType`
  * Remove deprecated `ReferenceType.OID`, use instead `ReferenceType.DIRECT`
  * Remove deprecated `ReferenceType.LISTALL`, use instead `ReferenceType.ALL`
  * Remove deprecated support for passing dicts to repository\'s `merge(...)`,
    `merge_commits(...)` and `merge_trees(...)`. Instead pass `MergeFlag` for `flags`, and
    `MergeFileFlag` for `file_flags`.
  * Remove deprecated support for passing a string for the favor argument to repository\'s
    `merge(...)`, `merge_commits(...)` and `merge_trees(...)`. Instead pass `MergeFavor`.
- Drop patches for issues fixed upstream

OBS-URL: https://build.opensuse.org/request/show/1181724
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygit2?expand=0&rev=93
This commit is contained in:
2024-06-19 11:29:50 +00:00
committed by Git OBS Bridge
parent bb9bb2c788
commit 7905637b01
9 changed files with 49 additions and 456 deletions

View File

@@ -19,24 +19,14 @@
%{?sle15_python_module_pythons}
Name: python-pygit2
Version: 1.14.1
Version: 1.15.0
Release: 0
Summary: Python bindings for libgit2
License: GPL-2.0-only
URL: https://github.com/libgit2/pygit2
Source: https://files.pythonhosted.org/packages/source/p/pygit2/pygit2-%{version}.tar.gz
# PATCH-FIX-UPSTREAM pygit2-Upgrade_to_libgit2_v1_8_0.patch gh#libgit2/pygit2@6d539d76b53b
Patch0: pygit2-Upgrade_to_libgit2_v1_8_0.patch
# PATCH-FIX-UPSTREAM - fixup for the libgit 1.8 support
Patch1: Fix-CI.patch
# PATCH-FIX-UPSTREAM
Patch2: pygit2-Upgrade_to_libgit2_v1_8_1.patch
# PATCH-FIX-UPSTREAM
Patch3: pygit2-Upgrade_to_libgit2_v1_8_1-2.patch
# PATCH-FIX-UPSTREAM - happens to eliminate bogus pointer casts
Patch4: Fix-leaks-in-fetch_refspecs-and-push_refspecs.patch
BuildRequires: %{python_module cached-property}
BuildRequires: %{python_module cffi >= 1.4.0}
BuildRequires: %{python_module cffi >= 1.16.0}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
@@ -80,7 +70,9 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
rm -rf pygit2
# test_no_context_lines failing on big endian
# https://github.com/libgit2/pygit2/issues/812
%pytest_arch -k 'not test_no_context_lines'
donttest="test_no_context_lines"
donttest="$donttest or test_push_options"
%pytest_arch -k "not ($donttest)"
%files %{python_files}
%license COPYING