diff --git a/pygit2-1.12.2.tar.gz b/pygit2-1.12.2.tar.gz deleted file mode 100644 index b19bc33..0000000 --- a/pygit2-1.12.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:56e85d0e66de957d599d1efb2409d39afeefd8f01009bfda0796b42a4b678358 -size 738453 diff --git a/pygit2-1.13.3.tar.gz b/pygit2-1.13.3.tar.gz new file mode 100644 index 0000000..9d85f74 --- /dev/null +++ b/pygit2-1.13.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0257c626011e4afb99bdb20875443f706f84201d4c92637f02215b98eac13ded +size 752098 diff --git a/python-pygit2.changes b/python-pygit2.changes index ba8b81f..acb3e95 100644 --- a/python-pygit2.changes +++ b/python-pygit2.changes @@ -1,3 +1,25 @@ +------------------------------------------------------------------- +Sat Jan 6 20:59:47 UTC 2024 - Dirk Müller + +- update to 1.13.3: + * New API for filters in Python #1237 #1244 + * Shallow repositories: New depth optional argument for + clone_repository(...) and Remote.fetch(...) #1245 #1246 + * New submodule init(...), update(...) and reload(...) + functions #1248 + * Release GIL in Walker.__next__ #1249 + * Type hints for submodule functions in Repository #1247 + * Support Python 3.12 + * Documentation updates #1242 + * Fix crash in reference rename #1233 + * Upgrade to libgit2 v1.7.1 + * Don't distribute wheels for pypy, only universal wheels for + macOS + * New Repository.remotes.create_anonymous(url) #1229 + * docs: update links to pypi, pygit2.org #1228 + * Prep work for Python 3.12 (not yet supported) #1223 +- drop support-libgit2-1.7.patch (upstream) + ------------------------------------------------------------------- Tue Jul 25 14:29:15 UTC 2023 - Dominique Leuenberger @@ -45,7 +67,7 @@ Sat Dec 3 20:06:29 UTC 2022 - Yogalakshmi Arunachalam * New notify/progress callbacks for checkout and stash #1167 #1169 * New Repository.remotes.names() #1159 * Now refname argument in RemoteCallbacks.push_update_reference(...) is a string, not bytes #1168 - * Add missing newline at end of pygit2/decl/pack.h #1163 + * Add missing newline at end of pygit2/decl/pack.h #1163 ------------------------------------------------------------------- Mon Sep 19 16:53:05 UTC 2022 - Stephan Kulow @@ -71,7 +93,7 @@ Thu Jul 21 14:44:55 UTC 2022 - Steve Kowalik * New Repository.create_commit_string(...) and Repository.create_commit_with_signature(...) #1142 * Linux and macOS wheels updated to libgit2 v1.4.3 - * Remove redundant line #1139 + * Remove redundant line #1139 - Add patch support-libgit-1.5.patch: * Suppot libgit 1.5.0 @@ -282,7 +304,7 @@ Fri Apr 7 22:12:04 UTC 2017 - toddrme2178@gmail.com - Update to 0.25.0. * Make pygit2 throw if tree of a commit is not found * fixed cached memory tests - * Added mwindow_mapped_limit, cached_memory, enable_caching, + * Added mwindow_mapped_limit, cached_memory, enable_caching, cache_max_size, cache_object_limit options - Implement singlespec version. diff --git a/python-pygit2.spec b/python-pygit2.spec index 6cc3aff..55a63c6 100644 --- a/python-pygit2.spec +++ b/python-pygit2.spec @@ -1,7 +1,7 @@ # # spec file for package python-pygit2 # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # Copyright (c) 2019 Neal Gompa . # # All modifications and additions to the file contributed by third parties @@ -17,16 +17,14 @@ # -%define skip_python2 1 +%{?sle15_python_module_pythons} Name: python-pygit2 -Version: 1.12.2 +Version: 1.13.3 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 support-libgit2-1.7.patch https://github.com/libgit2/pygit2/commit/1473e8eb6eb59dc7521dcd5f8a4c9390e9b53223 -Patch0: support-libgit2-1.7.patch BuildRequires: %{python_module cached-property} BuildRequires: %{python_module cffi >= 1.4.0} BuildRequires: %{python_module devel} diff --git a/support-libgit2-1.7.patch b/support-libgit2-1.7.patch deleted file mode 100644 index f79e792..0000000 --- a/support-libgit2-1.7.patch +++ /dev/null @@ -1,130 +0,0 @@ -From 1473e8eb6eb59dc7521dcd5f8a4c9390e9b53223 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?J=2E=20David=20Ib=C3=A1=C3=B1ez?= -Date: Mon, 17 Jul 2023 22:23:30 +0200 -Subject: [PATCH] Upgrade to libgit2 v1.7.0 - ---- - .github/workflows/tests.yml | 8 ++++---- - .github/workflows/wheels.yml | 4 ++-- - CHANGELOG.rst | 9 +++++++++ - Makefile | 2 +- - appveyor.yml | 2 +- - build.sh | 12 ++++++------ - docs/install.rst | 18 ++++++++++-------- - pygit2/decl/diff.h | 1 + - pygit2/decl/oid.h | 4 ++++ - pygit2/decl/remote.h | 1 + - src/types.h | 4 ++-- - 11 files changed, 41 insertions(+), 24 deletions(-) - -Index: pygit2-1.12.2/CHANGELOG.rst -=================================================================== ---- pygit2-1.12.2.orig/CHANGELOG.rst -+++ pygit2-1.12.2/CHANGELOG.rst -@@ -1,3 +1,12 @@ -+1.13.0 (UNRELEASED) -+------------------------- -+ -+- Upgrade to libgit2 v1.7.0 -+ -+- docs: update links to pypy, pygit2.org -+ `#1228 `_ -+ -+ - 1.12.2 (2023-06-25) - ------------------------- - -Index: pygit2-1.12.2/Makefile -=================================================================== ---- pygit2-1.12.2.orig/Makefile -+++ pygit2-1.12.2/Makefile -@@ -1,7 +1,7 @@ - .PHONY: build html - - build: -- OPENSSL_VERSION=3.0.9 LIBSSH2_VERSION=1.11.0 LIBGIT2_VERSION=1.6.4 sh build.sh -+ OPENSSL_VERSION=3.0.9 LIBSSH2_VERSION=1.11.0 LIBGIT2_VERSION=1.7.0 sh build.sh - - html: build - make -C docs html -Index: pygit2-1.12.2/build.sh -=================================================================== ---- pygit2-1.12.2.orig/build.sh -+++ pygit2-1.12.2/build.sh -@@ -26,19 +26,19 @@ - # - # sh build.sh - # --# Build libgit2 1.6.4 (will use libssh2 if available), then build pygit2 -+# Build libgit2 1.7.0 (will use libssh2 if available), then build pygit2 - # inplace: - # --# LIBGIT2_VERSION=1.6.4 sh build.sh -+# LIBGIT2_VERSION=1.7.0 sh build.sh - # --# Build libssh2 1.11.0 and libgit2 1.6.4, then build pygit2 inplace: -+# Build libssh2 1.11.0 and libgit2 1.7.0, then build pygit2 inplace: - # --# LIBSSH2_VERSION=1.11.0 LIBGIT2_VERSION=1.6.4 sh build.sh -+# LIBSSH2_VERSION=1.11.0 LIBGIT2_VERSION=1.7.0 sh build.sh - # --# Tell where libssh2 is installed, build libgit2 1.6.4, then build pygit2 -+# Tell where libssh2 is installed, build libgit2 1.7.0, then build pygit2 - # inplace: - # --# LIBSSH2_PREFIX=/usr/local LIBGIT2_VERSION=1.6.4 sh build.sh -+# LIBSSH2_PREFIX=/usr/local LIBGIT2_VERSION=1.7.0 sh build.sh - # - # Build inplace and run the tests: - # -Index: pygit2-1.12.2/pygit2/decl/diff.h -=================================================================== ---- pygit2-1.12.2.orig/pygit2/decl/diff.h -+++ pygit2-1.12.2/pygit2/decl/diff.h -@@ -54,6 +54,7 @@ typedef struct { - void *payload; - uint32_t context_lines; - uint32_t interhunk_lines; -+ git_oid_t oid_type; - uint16_t id_abbrev; - git_off_t max_size; - const char *old_prefix; -Index: pygit2-1.12.2/pygit2/decl/oid.h -=================================================================== ---- pygit2-1.12.2.orig/pygit2/decl/oid.h -+++ pygit2-1.12.2/pygit2/decl/oid.h -@@ -1,3 +1,7 @@ -+typedef enum { -+ GIT_OID_SHA1 = 1, /**< SHA1 */ -+} git_oid_t; -+ - typedef struct git_oid { - unsigned char id[20]; - } git_oid; -Index: pygit2-1.12.2/pygit2/decl/remote.h -=================================================================== ---- pygit2-1.12.2.orig/pygit2/decl/remote.h -+++ pygit2-1.12.2/pygit2/decl/remote.h -@@ -83,6 +83,7 @@ typedef struct { - int update_fetchhead; - git_remote_autotag_option_t download_tags; - git_proxy_options proxy_opts; -+ int depth; - git_remote_redirect_t follow_redirects; - git_strarray custom_headers; - } git_fetch_options; -Index: pygit2-1.12.2/src/types.h -=================================================================== ---- pygit2-1.12.2.orig/src/types.h -+++ pygit2-1.12.2/src/types.h -@@ -32,8 +32,8 @@ - #include - #include - --#if !(LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR == 6) --#error You need a compatible libgit2 version (1.6.x) -+#if !(LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR == 7) -+#error You need a compatible libgit2 version (1.7.x) - #endif - - /*