14
0
forked from pool/python-pygit2

[info=196021276a72dada032fdf877abaa053e1818855548022aef73e40a9617bd4ca]

OBS-URL: https://build.opensuse.org/package/show/devel:Factory:git-workflow:staging:mcepl:python-pygit2:2/python-pygit2?expand=0&rev=1
This commit is contained in:
2024-11-05 11:34:35 +00:00
committed by Git OBS Bridge
parent 3ccebb27e5
commit 2aac036740
7 changed files with 59 additions and 12 deletions

4
_scmsync.obsinfo Normal file
View File

@@ -0,0 +1,4 @@
mtime: 1730806374
commit: 196021276a72dada032fdf877abaa053e1818855548022aef73e40a9617bd4ca
url: https://src.opensuse.org/mcepl/python-pygit2.git
revision: 196021276a72dada032fdf877abaa053e1818855548022aef73e40a9617bd4ca

3
build.specials.obscpio Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:190f5654559b6146329ea81555b2006807e6a5baa7fd64f577f60533cb368f77
size 280

27
const-parents.patch Normal file
View File

@@ -0,0 +1,27 @@
---
src/repository.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
--- a/src/repository.c
+++ b/src/repository.c
@@ -1065,7 +1065,8 @@ Repository_create_commit(Repository *sel
err = git_commit_create(&oid, self->repo, update_ref,
py_author->signature, py_committer->signature,
- encoding, message, tree, parent_count, parents);
+ encoding, message, tree, parent_count,
+ (const git_commit **)parents);
if (err < 0) {
Error_set(err);
goto out;
@@ -1147,7 +1148,8 @@ Repository_create_commit_string(Reposito
err = git_commit_create_buffer(&buf, self->repo,
py_author->signature, py_committer->signature,
- encoding, message, tree, parent_count, parents);
+ encoding, message, tree, parent_count,
+ (const git_commit **)parents);
if (err < 0) {
Error_set(err);
goto out;

BIN
pygit2-1.15.1.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
pygit2-1.16.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Tue Nov 5 10:50:38 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Update to 1.16.0:
- Add support for Python 3.13
- Drop support for Python 3.9
- New Repository.hashfile(...)
- New Option.GET_MWINDOW_FILE_LIMIT and
Option.SET_MWINDOW_FILE_LIMIT
- Fix overriding certificate_check(...) callback via argument
to RemoteCallbacks(...)
- Add py.typed
- Fix discover_repository(...) annotation
- Add const-parents.patch to fix FTBFS (gh#libgit2/pygit2!1324).
-------------------------------------------------------------------
Mon Aug 5 11:21:06 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -19,14 +19,18 @@
%{?sle15_python_module_pythons}
Name: python-pygit2
Version: 1.15.1
Version: 1.16.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 const-parents.patch gh#libgit2/pygit2!1324 mcepl@suse.com
# use correct type of git_commit_create() function
Patch0: const-parents.patch
BuildRequires: %{python_module base >= 3.10}
BuildRequires: %{python_module cached-property}
BuildRequires: %{python_module cffi >= 1.16.0}
BuildRequires: %{python_module cffi >= 1.17.0}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
@@ -39,7 +43,7 @@ BuildRequires: libgit2-devel >= 1.1
BuildRequires: libopenssl-devel
BuildRequires: python-rpm-macros
Requires: python-cached-property
%requires_eq python-cffi
Requires: python-cffi >= 1.17.0
%python_subpackages
%description
@@ -47,12 +51,6 @@ Bindings for libgit2, a linkable C library for the Git version-control system.
%prep
%autosetup -p1 -n pygit2-%{version}
%if %{?pkg_vcmp:%pkg_vcmp libgit2-devel < 1.8}%{!?pkg_vcmp:1}
%patch -P 3 -p1 -R
%patch -P 2 -p1 -R
%patch -P 1 -p1 -R
%patch -P 0 -p1 -R
%endif
# do not add options to pytest
rm pytest.ini