pygit2 1.17.0__tar.gz → 1.18.1__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 (191) hide show
  1. {pygit2-1.17.0 → pygit2-1.18.1}/AUTHORS.md +12 -2
  2. {pygit2-1.17.0 → pygit2-1.18.1}/CHANGELOG.md +99 -5
  3. pygit2-1.18.1/Makefile +7 -0
  4. {pygit2-1.17.0 → pygit2-1.18.1}/PKG-INFO +15 -2
  5. {pygit2-1.17.0 → pygit2-1.18.1}/build.sh +11 -0
  6. {pygit2-1.17.0 → pygit2-1.18.1}/build_tag.py +2 -1
  7. pygit2-1.18.1/pygit2/__init__.py +664 -0
  8. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/_build.py +2 -2
  9. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/_pygit2.pyi +383 -25
  10. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/_run.py +3 -3
  11. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/blob.py +2 -2
  12. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/callbacks.py +92 -20
  13. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/config.py +3 -3
  14. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/credentials.py +31 -11
  15. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/callbacks.h +6 -0
  16. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/commit.h +5 -0
  17. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/index.h +6 -0
  18. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/repository.h +1 -1
  19. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/errors.py +1 -1
  20. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/ffi.py +1 -1
  21. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/index.py +82 -8
  22. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/refspec.py +1 -1
  23. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/remotes.py +51 -37
  24. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/repository.py +96 -48
  25. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/submodules.py +7 -1
  26. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/utils.py +7 -7
  27. {pygit2-1.17.0 → pygit2-1.18.1}/pyproject.toml +11 -11
  28. {pygit2-1.17.0 → pygit2-1.18.1}/requirements-test.txt +1 -0
  29. {pygit2-1.17.0 → pygit2-1.18.1}/src/blob.c +20 -12
  30. {pygit2-1.17.0 → pygit2-1.18.1}/src/odb_backend.c +1 -1
  31. {pygit2-1.17.0 → pygit2-1.18.1}/src/oid.c +49 -1
  32. {pygit2-1.17.0 → pygit2-1.18.1}/src/pygit2.c +1 -1
  33. {pygit2-1.17.0 → pygit2-1.18.1}/src/reference.c +10 -1
  34. {pygit2-1.17.0 → pygit2-1.18.1}/src/repository.c +2 -2
  35. {pygit2-1.17.0 → pygit2-1.18.1}/src/signature.c +1 -1
  36. {pygit2-1.17.0 → pygit2-1.18.1}/src/tree.c +7 -6
  37. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_branch.py +14 -13
  38. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_commit.py +2 -2
  39. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_credentials.py +0 -2
  40. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_diff.py +77 -1
  41. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_index.py +38 -1
  42. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_merge.py +59 -32
  43. pygit2-1.18.1/test/test_nonunicode.py +58 -0
  44. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_object.py +2 -2
  45. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_odb.py +1 -1
  46. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_oid.py +7 -0
  47. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_refs.py +23 -23
  48. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_remote.py +147 -54
  49. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_repository.py +166 -4
  50. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_repository_bare.py +9 -9
  51. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_tree.py +1 -1
  52. {pygit2-1.17.0 → pygit2-1.18.1}/test/utils.py +5 -6
  53. pygit2-1.17.0/Makefile +0 -7
  54. pygit2-1.17.0/pygit2/__init__.py +0 -225
  55. {pygit2-1.17.0 → pygit2-1.18.1}/COPYING +0 -0
  56. {pygit2-1.17.0 → pygit2-1.18.1}/README.md +0 -0
  57. {pygit2-1.17.0 → pygit2-1.18.1}/SPONSORS.md +0 -0
  58. {pygit2-1.17.0 → pygit2-1.18.1}/mypy-stubtest.ini +0 -0
  59. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/blame.py +0 -0
  60. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/branches.py +0 -0
  61. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/attr.h +0 -0
  62. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/blame.h +0 -0
  63. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/buffer.h +0 -0
  64. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/checkout.h +0 -0
  65. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/clone.h +0 -0
  66. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/common.h +0 -0
  67. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/config.h +0 -0
  68. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/describe.h +0 -0
  69. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/diff.h +0 -0
  70. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/errors.h +0 -0
  71. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/graph.h +0 -0
  72. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/indexer.h +0 -0
  73. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/merge.h +0 -0
  74. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/net.h +0 -0
  75. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/oid.h +0 -0
  76. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/pack.h +0 -0
  77. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/proxy.h +0 -0
  78. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/refspec.h +0 -0
  79. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/remote.h +0 -0
  80. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/revert.h +0 -0
  81. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/stash.h +0 -0
  82. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/strarray.h +0 -0
  83. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/submodule.h +0 -0
  84. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/transport.h +0 -0
  85. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/decl/types.h +0 -0
  86. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/enums.py +0 -0
  87. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/filter.py +0 -0
  88. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/legacyenums.py +0 -0
  89. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/packbuilder.py +0 -0
  90. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/py.typed +0 -0
  91. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/references.py +0 -0
  92. {pygit2-1.17.0 → pygit2-1.18.1}/pygit2/settings.py +0 -0
  93. {pygit2-1.17.0 → pygit2-1.18.1}/pytest.ini +0 -0
  94. {pygit2-1.17.0 → pygit2-1.18.1}/requirements.txt +0 -0
  95. {pygit2-1.17.0 → pygit2-1.18.1}/setup.cfg +0 -0
  96. {pygit2-1.17.0 → pygit2-1.18.1}/setup.py +0 -0
  97. {pygit2-1.17.0 → pygit2-1.18.1}/src/branch.c +0 -0
  98. {pygit2-1.17.0 → pygit2-1.18.1}/src/branch.h +0 -0
  99. {pygit2-1.17.0 → pygit2-1.18.1}/src/commit.c +0 -0
  100. {pygit2-1.17.0 → pygit2-1.18.1}/src/diff.c +0 -0
  101. {pygit2-1.17.0 → pygit2-1.18.1}/src/diff.h +0 -0
  102. {pygit2-1.17.0 → pygit2-1.18.1}/src/error.c +0 -0
  103. {pygit2-1.17.0 → pygit2-1.18.1}/src/error.h +0 -0
  104. {pygit2-1.17.0 → pygit2-1.18.1}/src/filter.c +0 -0
  105. {pygit2-1.17.0 → pygit2-1.18.1}/src/filter.h +0 -0
  106. {pygit2-1.17.0 → pygit2-1.18.1}/src/mailmap.c +0 -0
  107. {pygit2-1.17.0 → pygit2-1.18.1}/src/mailmap.h +0 -0
  108. {pygit2-1.17.0 → pygit2-1.18.1}/src/note.c +0 -0
  109. {pygit2-1.17.0 → pygit2-1.18.1}/src/note.h +0 -0
  110. {pygit2-1.17.0 → pygit2-1.18.1}/src/object.c +0 -0
  111. {pygit2-1.17.0 → pygit2-1.18.1}/src/object.h +0 -0
  112. {pygit2-1.17.0 → pygit2-1.18.1}/src/odb.c +0 -0
  113. {pygit2-1.17.0 → pygit2-1.18.1}/src/odb.h +0 -0
  114. {pygit2-1.17.0 → pygit2-1.18.1}/src/odb_backend.h +0 -0
  115. {pygit2-1.17.0 → pygit2-1.18.1}/src/oid.h +0 -0
  116. {pygit2-1.17.0 → pygit2-1.18.1}/src/options.c +0 -0
  117. {pygit2-1.17.0 → pygit2-1.18.1}/src/options.h +0 -0
  118. {pygit2-1.17.0 → pygit2-1.18.1}/src/patch.c +0 -0
  119. {pygit2-1.17.0 → pygit2-1.18.1}/src/patch.h +0 -0
  120. {pygit2-1.17.0 → pygit2-1.18.1}/src/refdb.c +0 -0
  121. {pygit2-1.17.0 → pygit2-1.18.1}/src/refdb.h +0 -0
  122. {pygit2-1.17.0 → pygit2-1.18.1}/src/refdb_backend.c +0 -0
  123. {pygit2-1.17.0 → pygit2-1.18.1}/src/refdb_backend.h +0 -0
  124. {pygit2-1.17.0 → pygit2-1.18.1}/src/reference.h +0 -0
  125. {pygit2-1.17.0 → pygit2-1.18.1}/src/repository.h +0 -0
  126. {pygit2-1.17.0 → pygit2-1.18.1}/src/revspec.c +0 -0
  127. {pygit2-1.17.0 → pygit2-1.18.1}/src/revspec.h +0 -0
  128. {pygit2-1.17.0 → pygit2-1.18.1}/src/signature.h +0 -0
  129. {pygit2-1.17.0 → pygit2-1.18.1}/src/stash.c +0 -0
  130. {pygit2-1.17.0 → pygit2-1.18.1}/src/tag.c +0 -0
  131. {pygit2-1.17.0 → pygit2-1.18.1}/src/tree.h +0 -0
  132. {pygit2-1.17.0 → pygit2-1.18.1}/src/treebuilder.c +0 -0
  133. {pygit2-1.17.0 → pygit2-1.18.1}/src/treebuilder.h +0 -0
  134. {pygit2-1.17.0 → pygit2-1.18.1}/src/types.h +0 -0
  135. {pygit2-1.17.0 → pygit2-1.18.1}/src/utils.c +0 -0
  136. {pygit2-1.17.0 → pygit2-1.18.1}/src/utils.h +0 -0
  137. {pygit2-1.17.0 → pygit2-1.18.1}/src/walker.c +0 -0
  138. {pygit2-1.17.0 → pygit2-1.18.1}/src/walker.h +0 -0
  139. {pygit2-1.17.0 → pygit2-1.18.1}/src/wildmatch.c +0 -0
  140. {pygit2-1.17.0 → pygit2-1.18.1}/src/wildmatch.h +0 -0
  141. {pygit2-1.17.0 → pygit2-1.18.1}/src/worktree.c +0 -0
  142. {pygit2-1.17.0 → pygit2-1.18.1}/src/worktree.h +0 -0
  143. {pygit2-1.17.0 → pygit2-1.18.1}/test/__init__.py +0 -0
  144. {pygit2-1.17.0 → pygit2-1.18.1}/test/conftest.py +0 -0
  145. {pygit2-1.17.0 → pygit2-1.18.1}/test/data/barerepo.zip +0 -0
  146. {pygit2-1.17.0 → pygit2-1.18.1}/test/data/binaryfilerepo.zip +0 -0
  147. {pygit2-1.17.0 → pygit2-1.18.1}/test/data/blameflagsrepo.zip +0 -0
  148. {pygit2-1.17.0 → pygit2-1.18.1}/test/data/dirtyrepo.zip +0 -0
  149. {pygit2-1.17.0 → pygit2-1.18.1}/test/data/emptyrepo.zip +0 -0
  150. {pygit2-1.17.0 → pygit2-1.18.1}/test/data/encoding.zip +0 -0
  151. {pygit2-1.17.0 → pygit2-1.18.1}/test/data/gpgsigned.zip +0 -0
  152. {pygit2-1.17.0 → pygit2-1.18.1}/test/data/submodulerepo.zip +0 -0
  153. {pygit2-1.17.0 → pygit2-1.18.1}/test/data/testrepo.zip +0 -0
  154. {pygit2-1.17.0 → pygit2-1.18.1}/test/data/testrepoformerging.zip +0 -0
  155. {pygit2-1.17.0 → pygit2-1.18.1}/test/data/testrepopacked.zip +0 -0
  156. {pygit2-1.17.0 → pygit2-1.18.1}/test/data/trailerrepo.zip +0 -0
  157. {pygit2-1.17.0 → pygit2-1.18.1}/test/data/utf8branchrepo.zip +0 -0
  158. {pygit2-1.17.0 → pygit2-1.18.1}/test/keys/pygit2_empty +0 -0
  159. {pygit2-1.17.0 → pygit2-1.18.1}/test/keys/pygit2_empty.pub +0 -0
  160. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_apply_diff.py +0 -0
  161. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_archive.py +0 -0
  162. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_attributes.py +0 -0
  163. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_blame.py +0 -0
  164. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_blob.py +0 -0
  165. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_branch_empty.py +0 -0
  166. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_cherrypick.py +0 -0
  167. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_commit_gpg.py +0 -0
  168. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_commit_trailer.py +0 -0
  169. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_config.py +0 -0
  170. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_describe.py +0 -0
  171. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_diff_binary.py +0 -0
  172. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_filter.py +0 -0
  173. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_mailmap.py +0 -0
  174. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_note.py +0 -0
  175. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_odb_backend.py +0 -0
  176. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_options.py +0 -0
  177. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_packbuilder.py +0 -0
  178. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_patch.py +0 -0
  179. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_patch_encoding.py +0 -0
  180. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_refdb_backend.py +0 -0
  181. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_remote_prune.py +0 -0
  182. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_remote_utf8.py +0 -0
  183. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_repository_custom.py +0 -0
  184. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_repository_empty.py +0 -0
  185. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_revparse.py +0 -0
  186. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_revwalk.py +0 -0
  187. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_signature.py +0 -0
  188. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_status.py +0 -0
  189. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_submodule.py +0 -0
  190. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_tag.py +0 -0
  191. {pygit2-1.17.0 → pygit2-1.18.1}/test/test_treebuilder.py +0 -0
@@ -16,6 +16,7 @@ Authors:
16
16
  Richo Healey
17
17
  Christian Boos
18
18
  Julien Miotte
19
+ Benedikt Seidl
19
20
  Nick Hynes
20
21
  Richard Möhn
21
22
  Xu Tao
@@ -34,6 +35,7 @@ Authors:
34
35
  Xavier Delannoy
35
36
  Michael Jones
36
37
  Saugat Pachhai
38
+ Andrej730
37
39
  Bernardo Heynemann
38
40
  John Szakmeister
39
41
  Nabijacz Leweli
@@ -43,14 +45,16 @@ Authors:
43
45
  Chad Dombrova
44
46
  Lukas Fleischer
45
47
  Mathias Leppich
48
+ Mathieu Parent
49
+ Michał Kępień
46
50
  Nicolas Dandrimont
47
51
  Raphael Medaer (Escaux)
52
+ Yaroslav Halchenko
48
53
  Anatoly Techtonik
49
54
  Andrew Olsen
50
55
  Dan Sully
51
56
  David Versmisse
52
57
  Grégory Herrero
53
- Michał Kępień
54
58
  Mikhail Yushkovskiy
55
59
  Robin Stocker
56
60
  Rohit Sanjay
@@ -64,6 +68,7 @@ Authors:
64
68
  Assaf Nativ
65
69
  Bob Carroll
66
70
  Christian Häggström
71
+ Edmundo Carmona Antoranz
67
72
  Erik Johnson
68
73
  Filip Rindler
69
74
  Fraser Tweedale
@@ -89,6 +94,7 @@ Authors:
89
94
  Andrey Devyatkin
90
95
  Arno van Lumig
91
96
  Ben Davis
97
+ CJ Steiner
92
98
  Colin Watson
93
99
  Dan Yeaw
94
100
  Dustin Raimondi
@@ -114,7 +120,6 @@ Authors:
114
120
  Kyle Gottfried
115
121
  Marcel Waldvogel
116
122
  Masud Rahman
117
- Mathieu Parent
118
123
  Michael Sondergaard
119
124
  Natanael Arndt
120
125
  Ondřej Nový
@@ -127,9 +132,11 @@ Authors:
127
132
  nikitalita
128
133
  Adam Gausmann
129
134
  Adam Spiers
135
+ Adrien Nader
130
136
  Albin Söderström
131
137
  Alexandru Fikl
132
138
  Andrew Chin
139
+ Andrew McNulty
133
140
  Andrey Trubachev
134
141
  András Veres-Szentkirályi
135
142
  Ash Berlin
@@ -180,6 +187,7 @@ Authors:
180
187
  Josh Bleecher Snyder
181
188
  Julia Evans
182
189
  Justin Clift
190
+ Karl Malmros
183
191
  Kevin Valk
184
192
  Konstantinos Smanis
185
193
  Kyriakos Oikonomakos
@@ -215,6 +223,7 @@ Authors:
215
223
  Rui Chen
216
224
  Sandro Jäckel
217
225
  Saul Pwanson
226
+ Sebastian Hamann
218
227
  Shane Turner
219
228
  Sheeo
220
229
  Simone Mosciatti
@@ -224,6 +233,7 @@ Authors:
224
233
  Timo Röhling
225
234
  Victor Florea
226
235
  Vladimir Rutsky
236
+ William Schueller
227
237
  Wim Jeantine-Glenn
228
238
  Yu Jianjian
229
239
  buhl
@@ -1,3 +1,97 @@
1
+ # 1.18.1 (2025-07-26)
2
+
3
+ - Update wheels to libgit2 1.9.1 and OpenSSL 3.3
4
+
5
+ - New `Index.remove_directory(...)`
6
+ [#1377](https://github.com/libgit2/pygit2/pull/1377)
7
+
8
+ - New `Index.add_conflict(...)`
9
+ [#1382](https://github.com/libgit2/pygit2/pull/1382)
10
+
11
+ - Now `Repository.merge_file_from_index(...)` returns a `MergeFileResult` object when
12
+ called with `use_deprecated=False`
13
+ [#1376](https://github.com/libgit2/pygit2/pull/1376)
14
+
15
+ - Typing improvements
16
+ [#1369](https://github.com/libgit2/pygit2/pull/1369)
17
+ [#1370](https://github.com/libgit2/pygit2/pull/1370)
18
+ [#1371](https://github.com/libgit2/pygit2/pull/1371)
19
+ [#1373](https://github.com/libgit2/pygit2/pull/1373)
20
+ [#1384](https://github.com/libgit2/pygit2/pull/1384)
21
+ [#1386](https://github.com/libgit2/pygit2/pull/1386)
22
+
23
+ Deprecations:
24
+
25
+ - Update your code:
26
+
27
+ # Before
28
+ contents = Repository.merge_file_from_index(...)
29
+
30
+ # Now
31
+ result = Repository.merge_file_from_index(..., use_deprecated=False)
32
+ contents = result.contents
33
+
34
+ At some point in the future `use_deprecated=False` will be the default.
35
+
36
+
37
+ # 1.18.0 (2025-04-24)
38
+
39
+ - Upgrade Linux Glibc wheels to `manylinux_2_28`
40
+
41
+ - Add `RemoteCallbacks.push_transfer_progress(...)` callback
42
+ [#1345](https://github.com/libgit2/pygit2/pull/1345)
43
+
44
+ - New `bool(oid)`
45
+ [#1347](https://github.com/libgit2/pygit2/pull/1347)
46
+
47
+ - Now `Repository.merge(...)` accepts a commit or reference object
48
+ [#1348](https://github.com/libgit2/pygit2/pull/1348)
49
+
50
+ - New `threads` optional argument in `Remote.push(...)`
51
+ [#1352](https://github.com/libgit2/pygit2/pull/1352)
52
+
53
+ - New `proxy` optional argument in `clone_repository(...)`
54
+ [#1354](https://github.com/libgit2/pygit2/pull/1354)
55
+
56
+ - New optional arguments `context_lines` and `interhunk_lines` in `Blob.diff(...)` ; and
57
+ now `Repository.diff(...)` honors these two arguments when the objects diffed are blobs.
58
+ [#1360](https://github.com/libgit2/pygit2/pull/1360)
59
+
60
+ - Now `Tree.diff_to_workdir(...)` accepts keyword arguments, not just positional.
61
+
62
+ - Fix when a reference name has non UTF-8 chars
63
+ [#1329](https://github.com/libgit2/pygit2/pull/1329)
64
+
65
+ - Fix condition check in `Repository.remotes.rename(...)`
66
+ [#1342](https://github.com/libgit2/pygit2/pull/1342)
67
+
68
+ - Add codespell workflow, fix a number of typos
69
+ [#1344](https://github.com/libgit2/pygit2/pull/1344)
70
+
71
+ - Documentation and typing
72
+ [#1343](https://github.com/libgit2/pygit2/pull/1343)
73
+ [#1347](https://github.com/libgit2/pygit2/pull/1347)
74
+ [#1356](https://github.com/libgit2/pygit2/pull/1356)
75
+
76
+ - CI: Use ARM runner for tests and wheels
77
+ [#1346](https://github.com/libgit2/pygit2/pull/1346)
78
+
79
+ - Build and CI updates
80
+ [#1363](https://github.com/libgit2/pygit2/pull/1363)
81
+ [#1365](https://github.com/libgit2/pygit2/pull/1365)
82
+
83
+ Deprecations:
84
+
85
+ - Passing str to `Repository.merge(...)` is deprecated,
86
+ instead pass an oid object (or a commit, or a reference)
87
+ [#1349](https://github.com/libgit2/pygit2/pull/1349)
88
+
89
+ Breaking changes:
90
+
91
+ - Keyword argument `flag` has been renamed to `flags` in `Blob.diff(...)` and
92
+ `Blob.diff_to_buffer(...)`
93
+
94
+
1
95
  # 1.17.0 (2025-01-08)
2
96
 
3
97
  - Upgrade to libgit2 1.9
@@ -259,7 +353,7 @@ Deprecations:
259
353
  - New `keep_all` and `paths` optional arguments for
260
354
  `Repository.stash(...)`
261
355
  [#1202](https://github.com/libgit2/pygit2/pull/1202)
262
- - New `Respository.state()`
356
+ - New `Repository.state()`
263
357
  [#1204](https://github.com/libgit2/pygit2/pull/1204)
264
358
  - Improve `Repository.write_archive(...)` performance
265
359
  [#1183](https://github.com/libgit2/pygit2/pull/1183)
@@ -439,7 +533,7 @@ Breaking changes:
439
533
 
440
534
  Breaking changes:
441
535
 
442
- - Remove deprecated `GIT_CREDTYPE_XXX` contants, use
536
+ - Remove deprecated `GIT_CREDTYPE_XXX` constants, use
443
537
  `GIT_CREDENTIAL_XXX` instead.
444
538
  - Remove deprecated `Patch.patch` getter, use `Patch.text` instead.
445
539
 
@@ -536,7 +630,7 @@ Deprecations:
536
630
 
537
631
  - Deprecate `Repository.create_remote(...)`, use instead
538
632
  `Repository.remotes.create(...)`
539
- - Deprecate `GIT_CREDTYPE_XXX` contants, use `GIT_CREDENTIAL_XXX`
633
+ - Deprecate `GIT_CREDTYPE_XXX` constants, use `GIT_CREDENTIAL_XXX`
540
634
  instead.
541
635
 
542
636
  # 1.2.0 (2020-04-05)
@@ -657,7 +751,7 @@ Breaking changes:
657
751
 
658
752
  Breaking changes:
659
753
 
660
- - Now the Repository has a new attribue `odb` for object database:
754
+ - Now the Repository has a new attribute `odb` for object database:
661
755
 
662
756
  # Before
663
757
  repository.read(...)
@@ -862,7 +956,7 @@ Other changes:
862
956
  [#610](https://github.com/libgit2/pygit2/issues/610)
863
957
  - Fix tests failing in some cases
864
958
  [#795](https://github.com/libgit2/pygit2/issues/795)
865
- - Automatize wheels upload to pypi
959
+ - Automate wheels upload to pypi
866
960
  [#563](https://github.com/libgit2/pygit2/issues/563)
867
961
 
868
962
  # 0.27.0 (2018-03-30)
pygit2-1.18.1/Makefile ADDED
@@ -0,0 +1,7 @@
1
+ .PHONY: build html
2
+
3
+ build:
4
+ OPENSSL_VERSION=3.3.3 LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.1 sh build.sh
5
+
6
+ html: build
7
+ make -C docs html
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: pygit2
3
- Version: 1.17.0
3
+ Version: 1.18.1
4
4
  Summary: Python bindings for libgit2.
5
5
  Home-page: https://github.com/libgit2/pygit2
6
6
  Maintainer: J. David Ibáñez
@@ -27,6 +27,19 @@ Description-Content-Type: text/markdown
27
27
  License-File: COPYING
28
28
  License-File: AUTHORS.md
29
29
  Requires-Dist: cffi>=1.17.0
30
+ Dynamic: classifier
31
+ Dynamic: description
32
+ Dynamic: description-content-type
33
+ Dynamic: home-page
34
+ Dynamic: keywords
35
+ Dynamic: license
36
+ Dynamic: license-file
37
+ Dynamic: maintainer
38
+ Dynamic: maintainer-email
39
+ Dynamic: project-url
40
+ Dynamic: requires-dist
41
+ Dynamic: requires-python
42
+ Dynamic: summary
30
43
 
31
44
  # pygit2 - libgit2 bindings in Python
32
45
 
@@ -69,6 +69,7 @@ if [ "$CIBUILDWHEEL" = "1" ]; then
69
69
  yum install openssl-devel -y
70
70
  else
71
71
  yum install perl-IPC-Cmd -y
72
+ yum install perl-Pod-Html -y
72
73
  fi
73
74
  elif [ -f /sbin/apk ]; then
74
75
  apk add wget
@@ -261,6 +262,16 @@ if [ "$1" = "test" ]; then
261
262
  $PREFIX/bin/pytest --cov=pygit2
262
263
  fi
263
264
 
265
+ # Type checking
266
+ if [ "$1" = "mypy" ]; then
267
+ shift
268
+ if [ -n "$WHEELDIR" ]; then
269
+ $PREFIX/bin/pip install $WHEELDIR/pygit2*-$PYTHON_TAG-*.whl
270
+ fi
271
+ $PREFIX/bin/pip install -r requirements-test.txt
272
+ $PREFIX/bin/mypy pygit2
273
+ fi
274
+
264
275
  # Test .pyi stub file
265
276
  if [ "$1" = "stubtest" ]; then
266
277
  shift
@@ -1,4 +1,5 @@
1
- import platform, sys
1
+ import platform
2
+ import sys
2
3
 
3
4
  py = {'CPython': 'cp', 'PyPy': 'pp'}[platform.python_implementation()]
4
5
  print(f'{py}{sys.version_info.major}{sys.version_info.minor}')