pygit2 1.16.0__tar.gz → 1.17.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. {pygit2-1.16.0 → pygit2-1.17.0}/AUTHORS.md +5 -0
  2. {pygit2-1.16.0 → pygit2-1.17.0}/CHANGELOG.md +21 -0
  3. pygit2-1.17.0/Makefile +7 -0
  4. {pygit2-1.16.0 → pygit2-1.17.0}/PKG-INFO +1 -1
  5. {pygit2-1.16.0 → pygit2-1.17.0}/build.sh +4 -4
  6. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/__init__.py +1 -1
  7. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/_build.py +2 -2
  8. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/_run.py +1 -1
  9. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/blame.py +1 -1
  10. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/branches.py +1 -1
  11. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/callbacks.py +2 -1
  12. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/config.py +4 -7
  13. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/credentials.py +1 -1
  14. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/blame.h +3 -0
  15. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/config.h +0 -1
  16. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/remote.h +1 -0
  17. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/enums.py +5 -5
  18. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/errors.py +1 -1
  19. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/ffi.py +1 -1
  20. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/filter.py +1 -1
  21. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/index.py +3 -6
  22. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/legacyenums.py +1 -1
  23. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/packbuilder.py +1 -1
  24. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/references.py +1 -1
  25. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/refspec.py +1 -1
  26. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/remotes.py +1 -1
  27. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/repository.py +1 -1
  28. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/settings.py +1 -1
  29. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/submodules.py +1 -1
  30. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/utils.py +3 -3
  31. {pygit2-1.16.0 → pygit2-1.17.0}/pyproject.toml +4 -3
  32. {pygit2-1.16.0 → pygit2-1.17.0}/setup.py +1 -1
  33. {pygit2-1.16.0 → pygit2-1.17.0}/src/blob.c +1 -1
  34. {pygit2-1.16.0 → pygit2-1.17.0}/src/branch.c +1 -1
  35. {pygit2-1.16.0 → pygit2-1.17.0}/src/branch.h +1 -1
  36. {pygit2-1.16.0 → pygit2-1.17.0}/src/commit.c +1 -1
  37. {pygit2-1.16.0 → pygit2-1.17.0}/src/diff.c +1 -1
  38. {pygit2-1.16.0 → pygit2-1.17.0}/src/diff.h +1 -1
  39. {pygit2-1.16.0 → pygit2-1.17.0}/src/error.c +1 -1
  40. {pygit2-1.16.0 → pygit2-1.17.0}/src/error.h +1 -1
  41. {pygit2-1.16.0 → pygit2-1.17.0}/src/filter.c +1 -1
  42. {pygit2-1.16.0 → pygit2-1.17.0}/src/filter.h +1 -1
  43. {pygit2-1.16.0 → pygit2-1.17.0}/src/mailmap.c +1 -1
  44. {pygit2-1.16.0 → pygit2-1.17.0}/src/mailmap.h +1 -1
  45. {pygit2-1.16.0 → pygit2-1.17.0}/src/note.c +1 -1
  46. {pygit2-1.16.0 → pygit2-1.17.0}/src/note.h +1 -1
  47. {pygit2-1.16.0 → pygit2-1.17.0}/src/object.c +1 -1
  48. {pygit2-1.16.0 → pygit2-1.17.0}/src/object.h +1 -1
  49. {pygit2-1.16.0 → pygit2-1.17.0}/src/odb.c +1 -1
  50. {pygit2-1.16.0 → pygit2-1.17.0}/src/odb.h +1 -1
  51. {pygit2-1.16.0 → pygit2-1.17.0}/src/odb_backend.c +1 -1
  52. {pygit2-1.16.0 → pygit2-1.17.0}/src/odb_backend.h +1 -1
  53. {pygit2-1.16.0 → pygit2-1.17.0}/src/oid.c +1 -1
  54. {pygit2-1.16.0 → pygit2-1.17.0}/src/oid.h +1 -1
  55. {pygit2-1.16.0 → pygit2-1.17.0}/src/options.c +1 -1
  56. {pygit2-1.16.0 → pygit2-1.17.0}/src/options.h +1 -1
  57. {pygit2-1.16.0 → pygit2-1.17.0}/src/patch.c +1 -1
  58. {pygit2-1.16.0 → pygit2-1.17.0}/src/patch.h +1 -1
  59. {pygit2-1.16.0 → pygit2-1.17.0}/src/pygit2.c +1 -1
  60. {pygit2-1.16.0 → pygit2-1.17.0}/src/refdb.c +1 -1
  61. {pygit2-1.16.0 → pygit2-1.17.0}/src/refdb.h +1 -1
  62. {pygit2-1.16.0 → pygit2-1.17.0}/src/refdb_backend.c +1 -1
  63. {pygit2-1.16.0 → pygit2-1.17.0}/src/refdb_backend.h +1 -1
  64. {pygit2-1.16.0 → pygit2-1.17.0}/src/reference.c +1 -1
  65. {pygit2-1.16.0 → pygit2-1.17.0}/src/reference.h +1 -1
  66. {pygit2-1.16.0 → pygit2-1.17.0}/src/repository.c +6 -4
  67. {pygit2-1.16.0 → pygit2-1.17.0}/src/repository.h +1 -1
  68. {pygit2-1.16.0 → pygit2-1.17.0}/src/revspec.c +1 -1
  69. {pygit2-1.16.0 → pygit2-1.17.0}/src/revspec.h +1 -1
  70. {pygit2-1.16.0 → pygit2-1.17.0}/src/signature.c +1 -1
  71. {pygit2-1.16.0 → pygit2-1.17.0}/src/signature.h +1 -1
  72. {pygit2-1.16.0 → pygit2-1.17.0}/src/stash.c +1 -1
  73. {pygit2-1.16.0 → pygit2-1.17.0}/src/tag.c +1 -1
  74. {pygit2-1.16.0 → pygit2-1.17.0}/src/tree.c +1 -1
  75. {pygit2-1.16.0 → pygit2-1.17.0}/src/tree.h +1 -1
  76. {pygit2-1.16.0 → pygit2-1.17.0}/src/treebuilder.c +1 -1
  77. {pygit2-1.16.0 → pygit2-1.17.0}/src/treebuilder.h +1 -1
  78. {pygit2-1.16.0 → pygit2-1.17.0}/src/types.h +3 -3
  79. {pygit2-1.16.0 → pygit2-1.17.0}/src/utils.c +1 -1
  80. {pygit2-1.16.0 → pygit2-1.17.0}/src/utils.h +1 -1
  81. {pygit2-1.16.0 → pygit2-1.17.0}/src/walker.c +1 -1
  82. {pygit2-1.16.0 → pygit2-1.17.0}/src/walker.h +1 -1
  83. {pygit2-1.16.0 → pygit2-1.17.0}/src/worktree.c +1 -1
  84. {pygit2-1.16.0 → pygit2-1.17.0}/src/worktree.h +1 -1
  85. {pygit2-1.16.0 → pygit2-1.17.0}/test/__init__.py +1 -1
  86. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_apply_diff.py +1 -1
  87. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_archive.py +1 -1
  88. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_attributes.py +1 -1
  89. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_blame.py +1 -1
  90. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_blob.py +1 -1
  91. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_branch.py +1 -1
  92. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_branch_empty.py +1 -1
  93. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_cherrypick.py +1 -1
  94. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_commit.py +1 -1
  95. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_commit_gpg.py +1 -1
  96. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_commit_trailer.py +1 -1
  97. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_config.py +1 -1
  98. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_credentials.py +1 -1
  99. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_describe.py +1 -1
  100. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_diff.py +1 -1
  101. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_diff_binary.py +1 -1
  102. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_index.py +1 -1
  103. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_mailmap.py +1 -1
  104. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_merge.py +1 -1
  105. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_note.py +1 -1
  106. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_object.py +1 -1
  107. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_odb.py +1 -1
  108. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_odb_backend.py +1 -1
  109. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_oid.py +1 -1
  110. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_options.py +1 -1
  111. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_packbuilder.py +1 -1
  112. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_patch.py +1 -1
  113. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_patch_encoding.py +1 -1
  114. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_refdb_backend.py +1 -1
  115. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_refs.py +1 -1
  116. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_remote.py +31 -1
  117. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_remote_prune.py +1 -1
  118. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_remote_utf8.py +1 -1
  119. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_repository.py +1 -1
  120. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_repository_bare.py +1 -1
  121. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_repository_custom.py +1 -1
  122. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_repository_empty.py +1 -1
  123. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_revparse.py +1 -1
  124. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_revwalk.py +1 -1
  125. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_signature.py +1 -1
  126. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_status.py +1 -1
  127. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_submodule.py +1 -1
  128. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_tag.py +1 -1
  129. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_tree.py +1 -1
  130. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_treebuilder.py +1 -1
  131. {pygit2-1.16.0 → pygit2-1.17.0}/test/utils.py +1 -1
  132. pygit2-1.16.0/Makefile +0 -7
  133. {pygit2-1.16.0 → pygit2-1.17.0}/COPYING +0 -0
  134. {pygit2-1.16.0 → pygit2-1.17.0}/README.md +0 -0
  135. {pygit2-1.16.0 → pygit2-1.17.0}/SPONSORS.md +0 -0
  136. {pygit2-1.16.0 → pygit2-1.17.0}/build_tag.py +0 -0
  137. {pygit2-1.16.0 → pygit2-1.17.0}/mypy-stubtest.ini +0 -0
  138. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/_pygit2.pyi +0 -0
  139. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/blob.py +0 -0
  140. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/attr.h +0 -0
  141. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/buffer.h +0 -0
  142. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/callbacks.h +0 -0
  143. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/checkout.h +0 -0
  144. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/clone.h +0 -0
  145. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/commit.h +0 -0
  146. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/common.h +0 -0
  147. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/describe.h +0 -0
  148. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/diff.h +0 -0
  149. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/errors.h +0 -0
  150. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/graph.h +0 -0
  151. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/index.h +0 -0
  152. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/indexer.h +0 -0
  153. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/merge.h +0 -0
  154. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/net.h +0 -0
  155. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/oid.h +0 -0
  156. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/pack.h +0 -0
  157. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/proxy.h +0 -0
  158. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/refspec.h +0 -0
  159. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/repository.h +0 -0
  160. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/revert.h +0 -0
  161. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/stash.h +0 -0
  162. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/strarray.h +0 -0
  163. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/submodule.h +0 -0
  164. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/transport.h +0 -0
  165. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/decl/types.h +0 -0
  166. {pygit2-1.16.0 → pygit2-1.17.0}/pygit2/py.typed +0 -0
  167. {pygit2-1.16.0 → pygit2-1.17.0}/pytest.ini +0 -0
  168. {pygit2-1.16.0 → pygit2-1.17.0}/requirements-test.txt +0 -0
  169. {pygit2-1.16.0 → pygit2-1.17.0}/requirements.txt +0 -0
  170. {pygit2-1.16.0 → pygit2-1.17.0}/setup.cfg +0 -0
  171. {pygit2-1.16.0 → pygit2-1.17.0}/src/wildmatch.c +0 -0
  172. {pygit2-1.16.0 → pygit2-1.17.0}/src/wildmatch.h +0 -0
  173. {pygit2-1.16.0 → pygit2-1.17.0}/test/conftest.py +0 -0
  174. {pygit2-1.16.0 → pygit2-1.17.0}/test/data/barerepo.zip +0 -0
  175. {pygit2-1.16.0 → pygit2-1.17.0}/test/data/binaryfilerepo.zip +0 -0
  176. {pygit2-1.16.0 → pygit2-1.17.0}/test/data/blameflagsrepo.zip +0 -0
  177. {pygit2-1.16.0 → pygit2-1.17.0}/test/data/dirtyrepo.zip +0 -0
  178. {pygit2-1.16.0 → pygit2-1.17.0}/test/data/emptyrepo.zip +0 -0
  179. {pygit2-1.16.0 → pygit2-1.17.0}/test/data/encoding.zip +0 -0
  180. {pygit2-1.16.0 → pygit2-1.17.0}/test/data/gpgsigned.zip +0 -0
  181. {pygit2-1.16.0 → pygit2-1.17.0}/test/data/submodulerepo.zip +0 -0
  182. {pygit2-1.16.0 → pygit2-1.17.0}/test/data/testrepo.zip +0 -0
  183. {pygit2-1.16.0 → pygit2-1.17.0}/test/data/testrepoformerging.zip +0 -0
  184. {pygit2-1.16.0 → pygit2-1.17.0}/test/data/testrepopacked.zip +0 -0
  185. {pygit2-1.16.0 → pygit2-1.17.0}/test/data/trailerrepo.zip +0 -0
  186. {pygit2-1.16.0 → pygit2-1.17.0}/test/data/utf8branchrepo.zip +0 -0
  187. {pygit2-1.16.0 → pygit2-1.17.0}/test/keys/pygit2_empty +0 -0
  188. {pygit2-1.16.0 → pygit2-1.17.0}/test/keys/pygit2_empty.pub +0 -0
  189. {pygit2-1.16.0 → pygit2-1.17.0}/test/test_filter.py +0 -0
@@ -111,6 +111,7 @@ Authors:
111
111
  Kaarel Kitsemets
112
112
  Ken Dreyer
113
113
  Kevin KIN-FOO
114
+ Kyle Gottfried
114
115
  Marcel Waldvogel
115
116
  Masud Rahman
116
117
  Mathieu Parent
@@ -174,10 +175,12 @@ Authors:
174
175
  Jasper Lievisse Adriaanse
175
176
  Jimisola Laursen
176
177
  Jiri Benc
178
+ Johann Miller
177
179
  Jonathan Robson
178
180
  Josh Bleecher Snyder
179
181
  Julia Evans
180
182
  Justin Clift
183
+ Kevin Valk
181
184
  Konstantinos Smanis
182
185
  Kyriakos Oikonomakos
183
186
  Lance Eftink
@@ -187,6 +190,7 @@ Authors:
187
190
  Mathieu Bridon
188
191
  Mathieu Pillard
189
192
  Matthaus Woolard
193
+ Matěj Cepl
190
194
  Maxwell G
191
195
  Michał Górny
192
196
  Na'aman Hirschfeld
@@ -208,6 +212,7 @@ Authors:
208
212
  Rodrigo Bistolfi
209
213
  Ross Nicoll
210
214
  Rui Abreu Ferreira
215
+ Rui Chen
211
216
  Sandro Jäckel
212
217
  Saul Pwanson
213
218
  Shane Turner
@@ -1,3 +1,24 @@
1
+ # 1.17.0 (2025-01-08)
2
+
3
+ - Upgrade to libgit2 1.9
4
+
5
+ - Add `certificate_check` callback to `Remote.ls_remotes(...)`
6
+ [#1326](https://github.com/libgit2/pygit2/pull/1326)
7
+
8
+ - Fix build with GCC 14
9
+ [#1324](https://github.com/libgit2/pygit2/pull/1324)
10
+
11
+ - Release wheels for PyPy
12
+ [#1336](https://github.com/libgit2/pygit2/pull/1336)
13
+ [#1339](https://github.com/libgit2/pygit2/pull/1339)
14
+
15
+ - CI: update tests for macOS to use OpenSSL 3
16
+ [#1335](https://github.com/libgit2/pygit2/pull/1335)
17
+
18
+ - Documentation: fix typo in `Repository.status(...)` docstring
19
+ [#1327](https://github.com/libgit2/pygit2/pull/1327)
20
+
21
+
1
22
  # 1.16.0 (2024-10-11)
2
23
 
3
24
  - Add support for Python 3.13
pygit2-1.17.0/Makefile ADDED
@@ -0,0 +1,7 @@
1
+ .PHONY: build html
2
+
3
+ build:
4
+ OPENSSL_VERSION=3.2.3 LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.0 sh build.sh
5
+
6
+ html: build
7
+ make -C docs html
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pygit2
3
- Version: 1.16.0
3
+ Version: 1.17.0
4
4
  Summary: Python bindings for libgit2.
5
5
  Home-page: https://github.com/libgit2/pygit2
6
6
  Maintainer: J. David Ibáñez
@@ -22,14 +22,14 @@
22
22
  #
23
23
  # sh build.sh
24
24
  #
25
- # Build libgit2 1.8.1 (will use libssh2 if available), then build pygit2
25
+ # Build libgit2 1.9.0 (will use libssh2 if available), then build pygit2
26
26
  # inplace:
27
27
  #
28
- # LIBGIT2_VERSION=1.8.1 sh build.sh
28
+ # LIBGIT2_VERSION=1.9.0 sh build.sh
29
29
  #
30
- # Build libssh2 1.11.0 and libgit2 1.8.1, then build pygit2 inplace:
30
+ # Build libssh2 1.11.1 and libgit2 1.9.0, then build pygit2 inplace:
31
31
  #
32
- # LIBSSH2_VERSION=1.11.0 LIBGIT2_VERSION=1.8.1 sh build.sh
32
+ # LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.0 sh build.sh
33
33
  #
34
34
  # Build inplace and run the tests:
35
35
  #
@@ -1,4 +1,4 @@
1
- # Copyright 2010-2024 The pygit2 contributors
1
+ # Copyright 2010-2025 The pygit2 contributors
2
2
  #
3
3
  # This file is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License, version 2,
@@ -1,4 +1,4 @@
1
- # Copyright 2010-2024 The pygit2 contributors
1
+ # Copyright 2010-2025 The pygit2 contributors
2
2
  #
3
3
  # This file is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License, version 2,
@@ -34,7 +34,7 @@ from pathlib import Path
34
34
  #
35
35
  # The version number of pygit2
36
36
  #
37
- __version__ = '1.16.0'
37
+ __version__ = '1.17.0'
38
38
 
39
39
 
40
40
  #
@@ -1,4 +1,4 @@
1
- # Copyright 2010-2024 The pygit2 contributors
1
+ # Copyright 2010-2025 The pygit2 contributors
2
2
  #
3
3
  # This file is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License, version 2,
@@ -1,4 +1,4 @@
1
- # Copyright 2010-2024 The pygit2 contributors
1
+ # Copyright 2010-2025 The pygit2 contributors
2
2
  #
3
3
  # This file is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License, version 2,
@@ -1,4 +1,4 @@
1
- # Copyright 2010-2024 The pygit2 contributors
1
+ # Copyright 2010-2025 The pygit2 contributors
2
2
  #
3
3
  # This file is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License, version 2,
@@ -1,4 +1,4 @@
1
- # Copyright 2010-2024 The pygit2 contributors
1
+ # Copyright 2010-2025 The pygit2 contributors
2
2
  #
3
3
  # This file is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License, version 2,
@@ -391,6 +391,7 @@ def git_remote_callbacks(payload):
391
391
  # Plug callbacks
392
392
  cdata.credentials = C._credentials_cb
393
393
  cdata.update_tips = C._update_tips_cb
394
+ cdata.certificate_check = C._certificate_check_cb
394
395
  # Payload
395
396
  handle = ffi.new_handle(payload)
396
397
  cdata.payload = handle
@@ -1,4 +1,4 @@
1
- # Copyright 2010-2024 The pygit2 contributors
1
+ # Copyright 2010-2025 The pygit2 contributors
2
2
  #
3
3
  # This file is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License, version 2,
@@ -52,6 +52,9 @@ class ConfigIterator:
52
52
  def __iter__(self):
53
53
  return self
54
54
 
55
+ def __next__(self):
56
+ return self._next_entry()
57
+
55
58
  def _next_entry(self):
56
59
  centry = ffi.new('git_config_entry **')
57
60
  err = C.git_config_next(centry, self._iter)
@@ -59,12 +62,6 @@ class ConfigIterator:
59
62
 
60
63
  return ConfigEntry._from_c(centry[0], self)
61
64
 
62
- def next(self):
63
- return self.__next__()
64
-
65
- def __next__(self):
66
- return self._next_entry()
67
-
68
65
 
69
66
  class ConfigMultivarIterator(ConfigIterator):
70
67
  def __next__(self):
@@ -1,4 +1,4 @@
1
- # Copyright 2010-2024 The pygit2 contributors
1
+ # Copyright 2010-2025 The pygit2 contributors
2
2
  #
3
3
  # This file is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License, version 2,
@@ -18,12 +18,15 @@ typedef struct git_blame_hunk {
18
18
  git_oid final_commit_id;
19
19
  size_t final_start_line_number;
20
20
  git_signature *final_signature;
21
+ git_signature *final_committer;
21
22
 
22
23
  git_oid orig_commit_id;
23
24
  const char *orig_path;
24
25
  size_t orig_start_line_number;
25
26
  git_signature *orig_signature;
27
+ git_signature *orig_committer;
26
28
 
29
+ const char *summary;
27
30
  char boundary;
28
31
  } git_blame_hunk;
29
32
 
@@ -18,7 +18,6 @@ typedef struct git_config_entry {
18
18
  const char *origin_path;
19
19
  unsigned int include_depth;
20
20
  git_config_level_t level;
21
- void (*free)(struct git_config_entry *entry);
22
21
  } git_config_entry;
23
22
 
24
23
  void git_config_entry_free(git_config_entry *);
@@ -48,6 +48,7 @@ struct git_remote_callbacks {
48
48
  git_remote_ready_cb remote_ready;
49
49
  void *payload;
50
50
  git_url_resolve_cb resolve_url;
51
+ int (*update_refs)(const char *refname, const git_oid *a, const git_oid *b, git_refspec *spec, void *data);
51
52
  };
52
53
 
53
54
  typedef struct {
@@ -1,4 +1,4 @@
1
- # Copyright 2010-2024 The pygit2 contributors
1
+ # Copyright 2010-2025 The pygit2 contributors
2
2
  #
3
3
  # This file is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License, version 2,
@@ -65,16 +65,16 @@ class BlameFlag(IntFlag):
65
65
  'Normal blame, the default'
66
66
 
67
67
  TRACK_COPIES_SAME_FILE = _pygit2.GIT_BLAME_TRACK_COPIES_SAME_FILE
68
- 'Not yet implemented and reserved for future use (as of libgit2 1.8.0).'
68
+ 'Not yet implemented and reserved for future use (as of libgit2 1.9.0).'
69
69
 
70
70
  TRACK_COPIES_SAME_COMMIT_MOVES = _pygit2.GIT_BLAME_TRACK_COPIES_SAME_COMMIT_MOVES
71
- 'Not yet implemented and reserved for future use (as of libgit2 1.8.0).'
71
+ 'Not yet implemented and reserved for future use (as of libgit2 1.9.0).'
72
72
 
73
73
  TRACK_COPIES_SAME_COMMIT_COPIES = _pygit2.GIT_BLAME_TRACK_COPIES_SAME_COMMIT_COPIES
74
- 'Not yet implemented and reserved for future use (as of libgit2 1.8.0).'
74
+ 'Not yet implemented and reserved for future use (as of libgit2 1.9.0).'
75
75
 
76
76
  TRACK_COPIES_ANY_COMMIT_COPIES = _pygit2.GIT_BLAME_TRACK_COPIES_ANY_COMMIT_COPIES
77
- 'Not yet implemented and reserved for future use (as of libgit2 1.8.0).'
77
+ 'Not yet implemented and reserved for future use (as of libgit2 1.9.0).'
78
78
 
79
79
  FIRST_PARENT = _pygit2.GIT_BLAME_FIRST_PARENT
80
80
  'Restrict the search of commits to those reachable following only the first parents.'
@@ -1,4 +1,4 @@
1
- # Copyright 2010-2024 The pygit2 contributors
1
+ # Copyright 2010-2025 The pygit2 contributors
2
2
  #
3
3
  # This file is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License, version 2,
@@ -1,4 +1,4 @@
1
- # Copyright 2010-2024 The pygit2 contributors
1
+ # Copyright 2010-2025 The pygit2 contributors
2
2
  #
3
3
  # This file is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License, version 2,
@@ -1,4 +1,4 @@
1
- # Copyright 2010-2024 The pygit2 contributors
1
+ # Copyright 2010-2025 The pygit2 contributors
2
2
  #
3
3
  # This file is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License, version 2,
@@ -1,4 +1,4 @@
1
- # Copyright 2010-2024 The pygit2 contributors
1
+ # Copyright 2010-2025 The pygit2 contributors
2
2
  #
3
3
  # This file is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License, version 2,
@@ -467,8 +467,8 @@ class ConflictIterator:
467
467
  def __del__(self):
468
468
  C.git_index_conflict_iterator_free(self._iter)
469
469
 
470
- def next(self):
471
- return self.__next__()
470
+ def __iter__(self):
471
+ return self
472
472
 
473
473
  def __next__(self):
474
474
  cancestor = ffi.new('git_index_entry **')
@@ -486,6 +486,3 @@ class ConflictIterator:
486
486
  theirs = IndexEntry._from_c(ctheirs[0])
487
487
 
488
488
  return ancestor, ours, theirs
489
-
490
- def __iter__(self):
491
- return self
@@ -1,4 +1,4 @@
1
- # Copyright 2010-2024 The pygit2 contributors
1
+ # Copyright 2010-2025 The pygit2 contributors
2
2
  #
3
3
  # This file is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License, version 2,
@@ -1,4 +1,4 @@
1
- # Copyright 2010-2024 The pygit2 contributors
1
+ # Copyright 2010-2025 The pygit2 contributors
2
2
  #
3
3
  # This file is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License, version 2,
@@ -1,4 +1,4 @@
1
- # Copyright 2010-2024 The pygit2 contributors
1
+ # Copyright 2010-2025 The pygit2 contributors
2
2
  #
3
3
  # This file is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License, version 2,
@@ -1,4 +1,4 @@
1
- # Copyright 2010-2024 The pygit2 contributors
1
+ # Copyright 2010-2025 The pygit2 contributors
2
2
  #
3
3
  # This file is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License, version 2,
@@ -1,4 +1,4 @@
1
- # Copyright 2010-2024 The pygit2 contributors
1
+ # Copyright 2010-2025 The pygit2 contributors
2
2
  #
3
3
  # This file is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License, version 2,
@@ -1,4 +1,4 @@
1
- # Copyright 2010-2024 The pygit2 contributors
1
+ # Copyright 2010-2025 The pygit2 contributors
2
2
  #
3
3
  # This file is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License, version 2,
@@ -1,4 +1,4 @@
1
- # Copyright 2010-2024 The pygit2 contributors
1
+ # Copyright 2010-2025 The pygit2 contributors
2
2
  #
3
3
  # This file is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License, version 2,
@@ -1,4 +1,4 @@
1
- # Copyright 2010-2024 The pygit2 contributors
1
+ # Copyright 2010-2025 The pygit2 contributors
2
2
  #
3
3
  # This file is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License, version 2,
@@ -1,4 +1,4 @@
1
- # Copyright 2010-2024 The pygit2 contributors
1
+ # Copyright 2010-2025 The pygit2 contributors
2
2
  #
3
3
  # This file is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License, version 2,
@@ -165,8 +165,8 @@ class GenericIterator:
165
165
  self.length = len(container)
166
166
  self.idx = 0
167
167
 
168
- def next(self):
169
- return self.__next__()
168
+ def __iter__(self):
169
+ return self
170
170
 
171
171
  def __next__(self):
172
172
  idx = self.idx
@@ -2,12 +2,13 @@
2
2
  requires = ["setuptools", "wheel"]
3
3
 
4
4
  [tool.cibuildwheel]
5
- skip = "pp3* *musllinux_aarch64 *musllinux_ppc64le"
5
+ enable = ["pypy"]
6
+ skip = "*musllinux_aarch64 *musllinux_ppc64le"
6
7
 
7
8
  archs = ["auto"]
8
9
  build-frontend = "default"
9
10
  dependency-versions = "pinned"
10
- environment = {LIBGIT2_VERSION="1.8.1", LIBSSH2_VERSION="1.11.0", OPENSSL_VERSION="3.1.5", LIBGIT2="/project/ci"}
11
+ environment = {LIBGIT2_VERSION="1.9.0", LIBSSH2_VERSION="1.11.1", OPENSSL_VERSION="3.2.3", LIBGIT2="/project/ci"}
11
12
 
12
13
  before-all = "sh build.sh"
13
14
 
@@ -21,7 +22,7 @@ repair-wheel-command = "LD_LIBRARY_PATH=/project/ci/lib auditwheel repair -w {de
21
22
 
22
23
  [tool.cibuildwheel.macos]
23
24
  archs = ["universal2"]
24
- environment = {LIBGIT2_VERSION="1.8.1", LIBSSH2_VERSION="1.11.0", OPENSSL_VERSION="3.1.5", LIBGIT2="/Users/runner/work/pygit2/pygit2/ci"}
25
+ environment = {LIBGIT2_VERSION="1.9.0", LIBSSH2_VERSION="1.11.1", OPENSSL_VERSION="3.2.3", LIBGIT2="/Users/runner/work/pygit2/pygit2/ci"}
25
26
  repair-wheel-command = "DYLD_LIBRARY_PATH=/Users/runner/work/pygit2/pygit2/ci/lib delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}"
26
27
 
27
28
  [tool.ruff]
@@ -1,4 +1,4 @@
1
- # Copyright 2010-2024 The pygit2 contributors
1
+ # Copyright 2010-2025 The pygit2 contributors
2
2
  #
3
3
  # This file is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2010-2024 The pygit2 contributors
2
+ * Copyright 2010-2025 The pygit2 contributors
3
3
  *
4
4
  * This file is free software; you can redistribute it and/or modify
5
5
  * it under the terms of the GNU General Public License, version 2,