pygit2 1.14.1__tar.gz → 1.15.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.
- {pygit2-1.14.1 → pygit2-1.15.1}/AUTHORS.md +5 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/CHANGELOG.md +98 -9
- {pygit2-1.14.1 → pygit2-1.15.1}/Makefile +1 -1
- {pygit2-1.14.1 → pygit2-1.15.1}/PKG-INFO +2 -3
- {pygit2-1.14.1 → pygit2-1.15.1}/README.md +1 -1
- {pygit2-1.14.1 → pygit2-1.15.1}/SPONSORS.md +3 -1
- {pygit2-1.14.1 → pygit2-1.15.1}/build.sh +4 -4
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/__init__.py +21 -13
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/_build.py +2 -2
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/_pygit2.pyi +174 -54
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/_run.py +2 -2
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/blame.py +14 -7
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/blob.py +3 -3
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/branches.py +3 -2
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/callbacks.py +59 -30
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/config.py +18 -23
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/config.h +5 -3
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/remote.h +2 -1
- pygit2-1.15.1/pygit2/decl/revert.h +21 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/strarray.h +1 -1
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/enums.py +138 -170
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/errors.py +4 -2
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/filter.py +3 -9
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/index.py +34 -35
- pygit2-1.15.1/pygit2/legacyenums.py +113 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/packbuilder.py +0 -2
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/references.py +4 -3
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/refspec.py +1 -2
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/remotes.py +50 -55
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/repository.py +161 -148
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/settings.py +0 -1
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/submodules.py +61 -28
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/utils.py +48 -13
- {pygit2-1.14.1 → pygit2-1.15.1}/pyproject.toml +17 -4
- {pygit2-1.14.1 → pygit2-1.15.1}/setup.py +20 -21
- {pygit2-1.14.1 → pygit2-1.15.1}/src/blob.c +1 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/diff.c +1 -1
- {pygit2-1.14.1 → pygit2-1.15.1}/src/filter.c +1 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/object.c +2 -25
- {pygit2-1.14.1 → pygit2-1.15.1}/src/odb.c +8 -5
- {pygit2-1.14.1 → pygit2-1.15.1}/src/odb_backend.c +6 -4
- {pygit2-1.14.1 → pygit2-1.15.1}/src/oid.c +16 -16
- {pygit2-1.14.1 → pygit2-1.15.1}/src/options.c +6 -4
- {pygit2-1.14.1 → pygit2-1.15.1}/src/pygit2.c +27 -39
- {pygit2-1.14.1 → pygit2-1.15.1}/src/reference.c +9 -7
- {pygit2-1.14.1 → pygit2-1.15.1}/src/repository.c +31 -34
- {pygit2-1.14.1 → pygit2-1.15.1}/src/tree.c +6 -4
- {pygit2-1.14.1 → pygit2-1.15.1}/src/treebuilder.c +6 -4
- {pygit2-1.14.1 → pygit2-1.15.1}/src/types.h +2 -2
- {pygit2-1.14.1 → pygit2-1.15.1}/src/utils.c +10 -96
- {pygit2-1.14.1 → pygit2-1.15.1}/src/utils.h +1 -3
- {pygit2-1.14.1 → pygit2-1.15.1}/test/__init__.py +1 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/test/conftest.py +6 -4
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_apply_diff.py +11 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_archive.py +3 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_attributes.py +1 -1
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_blame.py +34 -14
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_blob.py +28 -12
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_branch.py +51 -33
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_branch_empty.py +18 -12
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_cherrypick.py +11 -5
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_commit.py +84 -49
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_commit_gpg.py +16 -16
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_config.py +38 -33
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_credentials.py +44 -34
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_describe.py +22 -6
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_diff.py +47 -18
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_diff_binary.py +1 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_filter.py +21 -24
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_index.py +53 -27
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_mailmap.py +20 -20
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_merge.py +86 -76
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_note.py +24 -14
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_object.py +23 -15
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_odb.py +7 -3
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_odb_backend.py +11 -5
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_oid.py +24 -12
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_options.py +29 -15
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_packbuilder.py +3 -2
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_patch.py +18 -10
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_patch_encoding.py +2 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_refdb_backend.py +13 -6
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_refs.py +187 -115
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_remote.py +98 -31
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_remote_prune.py +4 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_remote_utf8.py +1 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_repository.py +196 -100
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_repository_bare.py +51 -24
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_repository_custom.py +5 -2
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_repository_empty.py +2 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_revparse.py +15 -16
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_revwalk.py +17 -8
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_signature.py +22 -8
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_status.py +15 -18
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_submodule.py +96 -21
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_tag.py +17 -8
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_tree.py +19 -7
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_treebuilder.py +1 -1
- {pygit2-1.14.1 → pygit2-1.15.1}/test/utils.py +16 -22
- pygit2-1.14.1/pygit2/decl/revert.h +0 -7
- pygit2-1.14.1/pygit2/legacyenums.py +0 -109
- {pygit2-1.14.1 → pygit2-1.15.1}/COPYING +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/build_tag.py +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/mypy-stubtest.ini +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/credentials.py +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/attr.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/blame.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/buffer.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/callbacks.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/checkout.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/clone.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/commit.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/common.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/describe.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/diff.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/errors.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/graph.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/index.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/indexer.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/merge.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/net.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/oid.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/pack.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/proxy.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/refspec.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/repository.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/stash.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/submodule.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/transport.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/decl/types.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pygit2/ffi.py +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/pytest.ini +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/requirements-test.txt +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/requirements.txt +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/setup.cfg +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/branch.c +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/branch.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/commit.c +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/diff.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/error.c +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/error.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/filter.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/mailmap.c +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/mailmap.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/note.c +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/note.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/object.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/odb.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/odb_backend.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/oid.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/options.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/patch.c +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/patch.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/refdb.c +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/refdb.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/refdb_backend.c +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/refdb_backend.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/reference.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/repository.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/revspec.c +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/revspec.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/signature.c +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/signature.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/stash.c +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/tag.c +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/tree.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/treebuilder.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/walker.c +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/walker.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/wildmatch.c +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/wildmatch.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/worktree.c +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/src/worktree.h +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/test/data/barerepo.zip +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/test/data/binaryfilerepo.zip +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/test/data/blameflagsrepo.zip +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/test/data/dirtyrepo.zip +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/test/data/emptyrepo.zip +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/test/data/encoding.zip +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/test/data/gpgsigned.zip +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/test/data/submodulerepo.zip +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/test/data/testrepo.zip +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/test/data/testrepoformerging.zip +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/test/data/testrepopacked.zip +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/test/data/trailerrepo.zip +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/test/data/utf8branchrepo.zip +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/test/keys/pygit2_empty +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/test/keys/pygit2_empty.pub +0 -0
- {pygit2-1.14.1 → pygit2-1.15.1}/test/test_commit_trailer.py +0 -0
|
@@ -50,6 +50,7 @@ Authors:
|
|
|
50
50
|
Dan Sully
|
|
51
51
|
David Versmisse
|
|
52
52
|
Grégory Herrero
|
|
53
|
+
Michał Kępień
|
|
53
54
|
Mikhail Yushkovskiy
|
|
54
55
|
Robin Stocker
|
|
55
56
|
Rohit Sanjay
|
|
@@ -81,6 +82,7 @@ Authors:
|
|
|
81
82
|
Sukhman Bhuller
|
|
82
83
|
Thomas Kluyver
|
|
83
84
|
Tyler Cipriani
|
|
85
|
+
WANG Xuerui
|
|
84
86
|
Alex Chamberlain
|
|
85
87
|
Alexander Bayandin
|
|
86
88
|
Amit Bakshi
|
|
@@ -185,10 +187,12 @@ Authors:
|
|
|
185
187
|
Mathieu Parent
|
|
186
188
|
Mathieu Pillard
|
|
187
189
|
Matthaus Woolard
|
|
190
|
+
Maxwell G
|
|
188
191
|
Michał Górny
|
|
189
192
|
Nicolás Sanguinetti
|
|
190
193
|
Nikita Kartashov
|
|
191
194
|
Nikolai Zujev
|
|
195
|
+
Nils Philippsen
|
|
192
196
|
Noah Fontes
|
|
193
197
|
Óscar San José
|
|
194
198
|
Patrick Lühne
|
|
@@ -212,6 +216,7 @@ Authors:
|
|
|
212
216
|
Tad Hardesty
|
|
213
217
|
Timo Röhling
|
|
214
218
|
Vladimir Rutsky
|
|
219
|
+
Wim Jeantine-Glenn
|
|
215
220
|
Yu Jianjian
|
|
216
221
|
buhl
|
|
217
222
|
chengyuhang
|
|
@@ -1,3 +1,89 @@
|
|
|
1
|
+
# 1.15.1 (2024-07-07)
|
|
2
|
+
|
|
3
|
+
- New `Repository.revert(...)`
|
|
4
|
+
[#1297](https://github.com/libgit2/pygit2/pull/1297)
|
|
5
|
+
|
|
6
|
+
- New optional `depth` argument in submodules `add()` and `update()` methods
|
|
7
|
+
[#1296](https://github.com/libgit2/pygit2/pull/1296)
|
|
8
|
+
|
|
9
|
+
- Now `Submodule.url` returns `None` when the submodule does not have a url
|
|
10
|
+
[#1294](https://github.com/libgit2/pygit2/pull/1294)
|
|
11
|
+
|
|
12
|
+
- Fix use after free bug in error reporting
|
|
13
|
+
[#1299](https://github.com/libgit2/pygit2/pull/1299)
|
|
14
|
+
|
|
15
|
+
- Fix `Submodule.head_id` when the submodule is not in the current HEAD tree
|
|
16
|
+
[#1300](https://github.com/libgit2/pygit2/pull/1300)
|
|
17
|
+
|
|
18
|
+
- Fix `Submodule.open()` when subclassing `Repository`
|
|
19
|
+
[#1295](https://github.com/libgit2/pygit2/pull/1295)
|
|
20
|
+
|
|
21
|
+
- Fix error in the test suite when running with address sanitizer
|
|
22
|
+
[#1304](https://github.com/libgit2/pygit2/pull/1304)
|
|
23
|
+
[#1301](https://github.com/libgit2/pygit2/issues/1301)
|
|
24
|
+
|
|
25
|
+
- Annotations and documentation fixes
|
|
26
|
+
[#1293](https://github.com/libgit2/pygit2/pull/1293)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
# 1.15.0 (2024-05-18)
|
|
30
|
+
|
|
31
|
+
- Many deprecated features have been removed, see below
|
|
32
|
+
|
|
33
|
+
- Upgrade to libgit2 v1.8.1
|
|
34
|
+
|
|
35
|
+
- New `push_options` optional argument in `Repository.push(...)`
|
|
36
|
+
[#1282](https://github.com/libgit2/pygit2/pull/1282)
|
|
37
|
+
|
|
38
|
+
- New support comparison of `Oid` with text string
|
|
39
|
+
|
|
40
|
+
- Fix `CheckoutNotify.IGNORED`
|
|
41
|
+
[#1288](https://github.com/libgit2/pygit2/issues/1288)
|
|
42
|
+
|
|
43
|
+
- Use default error handler when decoding/encoding paths
|
|
44
|
+
[#537](https://github.com/libgit2/pygit2/issues/537)
|
|
45
|
+
|
|
46
|
+
- Remove setuptools runtime dependency
|
|
47
|
+
[#1281](https://github.com/libgit2/pygit2/pull/1281)
|
|
48
|
+
|
|
49
|
+
- Coding style with ruff
|
|
50
|
+
[#1280](https://github.com/libgit2/pygit2/pull/1280)
|
|
51
|
+
|
|
52
|
+
- Add wheels for ppc64le
|
|
53
|
+
[#1279](https://github.com/libgit2/pygit2/pull/1279)
|
|
54
|
+
|
|
55
|
+
- Fix tests on EPEL8 builds for s390x
|
|
56
|
+
[#1283](https://github.com/libgit2/pygit2/pull/1283)
|
|
57
|
+
|
|
58
|
+
Deprecations:
|
|
59
|
+
|
|
60
|
+
- Deprecate `IndexEntry.hex`, use `str(IndexEntry.id)`
|
|
61
|
+
|
|
62
|
+
Breaking changes:
|
|
63
|
+
|
|
64
|
+
- Remove deprecated `oid.hex`, use `str(oid)`
|
|
65
|
+
- Remove deprecated `object.hex`, use `str(object.id)`
|
|
66
|
+
- Remove deprecated `object.oid`, use `object.id`
|
|
67
|
+
|
|
68
|
+
- Remove deprecated `Repository.add_submodule(...)`, use `Repository.submodules.add(...)`
|
|
69
|
+
- Remove deprecated `Repository.lookup_submodule(...)`, use `Repository.submodules[...]`
|
|
70
|
+
- Remove deprecated `Repository.init_submodules(...)`, use `Repository.submodules.init(...)`
|
|
71
|
+
- Remove deprecated `Repository.update_submodule(...)`, use `Repository.submodules.update(...)`
|
|
72
|
+
|
|
73
|
+
- Remove deprecated constants `GIT_OBJ_XXX`, use `ObjectType`
|
|
74
|
+
- Remove deprecated constants `GIT_REVPARSE_XXX`, use `RevSpecFlag`
|
|
75
|
+
- Remove deprecated constants `GIT_REF_XXX`, use `ReferenceType`
|
|
76
|
+
- Remove deprecated `ReferenceType.OID`, use instead `ReferenceType.DIRECT`
|
|
77
|
+
- Remove deprecated `ReferenceType.LISTALL`, use instead `ReferenceType.ALL`
|
|
78
|
+
|
|
79
|
+
- Remove deprecated support for passing dicts to repository\'s `merge(...)`,
|
|
80
|
+
`merge_commits(...)` and `merge_trees(...)`. Instead pass `MergeFlag` for `flags`, and
|
|
81
|
+
`MergeFileFlag` for `file_flags`.
|
|
82
|
+
|
|
83
|
+
- Remove deprecated support for passing a string for the favor argument to repository\'s
|
|
84
|
+
`merge(...)`, `merge_commits(...)` and `merge_trees(...)`. Instead pass `MergeFavor`.
|
|
85
|
+
|
|
86
|
+
|
|
1
87
|
# 1.14.1 (2024-02-10)
|
|
2
88
|
|
|
3
89
|
- Update wheels to libgit2 v1.7.2
|
|
@@ -49,15 +135,18 @@ Breaking changes:
|
|
|
49
135
|
|
|
50
136
|
Deprecations:
|
|
51
137
|
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
138
|
+
- Deprecate `Repository.add_submodule(...)`, use `Repository.submodules.add(...)`
|
|
139
|
+
- Deprecate `Repository.lookup_submodule(...)`, use `Repository.submodules[...]`
|
|
140
|
+
- Deprecate `Repository.init_submodules(...)`, use `Repository.submodules.init(...)`
|
|
141
|
+
- Deprecate `Repository.update_submodule(...)`, use `Repository.submodules.update(...)`
|
|
142
|
+
- Deprecate `GIT_*` constants, use `pygit2.enums`
|
|
143
|
+
|
|
144
|
+
- Passing dicts to repository\'s `merge(...)`, `merge_commits(...)` and `merge_trees(...)`
|
|
145
|
+
is deprecated. Instead pass `MergeFlag` for the `flags` argument, and `MergeFileFlag` for
|
|
146
|
+
`file_flags`.
|
|
147
|
+
|
|
148
|
+
- Passing a string for the favor argument to repository\'s `merge(...)`, `merge_commits(...)`
|
|
149
|
+
and `merge_trees(...)` is deprecated. Instead pass `MergeFavor`.
|
|
61
150
|
|
|
62
151
|
# 1.13.3 (2023-11-21)
|
|
63
152
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pygit2
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.15.1
|
|
4
4
|
Summary: Python bindings for libgit2.
|
|
5
5
|
Home-page: https://github.com/libgit2/pygit2
|
|
6
6
|
Maintainer: J. David Ibáñez
|
|
@@ -26,7 +26,6 @@ Description-Content-Type: text/markdown
|
|
|
26
26
|
License-File: COPYING
|
|
27
27
|
License-File: AUTHORS.md
|
|
28
28
|
Requires-Dist: cffi>=1.16.0
|
|
29
|
-
Requires-Dist: setuptools; python_version >= "3.12"
|
|
30
29
|
|
|
31
30
|
# pygit2 - libgit2 bindings in Python
|
|
32
31
|
|
|
@@ -48,7 +47,7 @@ Supports Python 3.9 to 3.12 and PyPy3 7.3+
|
|
|
48
47
|
|
|
49
48
|
## Sponsors
|
|
50
49
|
|
|
51
|
-
-
|
|
50
|
+
- [Microsoft](https://github.com/microsoft)
|
|
52
51
|
|
|
53
52
|
Add your name and link here, [become a
|
|
54
53
|
sponsor](https://github.com/sponsors/jdavid).
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
Friends of pygit2:
|
|
2
2
|
|
|
3
|
-
- [
|
|
3
|
+
- [Microsoft](https://github.com/microsoft)
|
|
4
4
|
|
|
5
5
|
Add your name to the list,
|
|
6
6
|
[become a friend of pygit2](https://github.com/sponsors/jdavid).
|
|
7
7
|
|
|
8
8
|
Past sponsors:
|
|
9
9
|
|
|
10
|
+
- [Iterative](https://iterative.ai/)
|
|
10
11
|
- [SourceHut](https://sourcehut.org)
|
|
12
|
+
- [GitHub](https://github.com/github)
|
|
11
13
|
- [omniproc](https://github.com/omniproc)
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
#
|
|
23
23
|
# sh build.sh
|
|
24
24
|
#
|
|
25
|
-
# Build libgit2 1.
|
|
25
|
+
# Build libgit2 1.8.1 (will use libssh2 if available), then build pygit2
|
|
26
26
|
# inplace:
|
|
27
27
|
#
|
|
28
|
-
# LIBGIT2_VERSION=1.
|
|
28
|
+
# LIBGIT2_VERSION=1.8.1 sh build.sh
|
|
29
29
|
#
|
|
30
|
-
# Build libssh2 1.11.0 and libgit2 1.
|
|
30
|
+
# Build libssh2 1.11.0 and libgit2 1.8.1, then build pygit2 inplace:
|
|
31
31
|
#
|
|
32
|
-
# LIBSSH2_VERSION=1.11.0 LIBGIT2_VERSION=1.
|
|
32
|
+
# LIBSSH2_VERSION=1.11.0 LIBGIT2_VERSION=1.8.1 sh build.sh
|
|
33
33
|
#
|
|
34
34
|
# Build inplace and run the tests:
|
|
35
35
|
#
|
|
@@ -66,15 +66,17 @@ _cache_enums()
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
def init_repository(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
69
|
+
path: typing.Union[str, bytes, PathLike, None],
|
|
70
|
+
bare: bool = False,
|
|
71
|
+
flags: enums.RepositoryInitFlag = enums.RepositoryInitFlag.MKPATH,
|
|
72
|
+
mode: typing.Union[
|
|
73
|
+
int, enums.RepositoryInitMode
|
|
74
|
+
] = enums.RepositoryInitMode.SHARED_UMASK,
|
|
75
|
+
workdir_path: typing.Optional[str] = None,
|
|
76
|
+
description: typing.Optional[str] = None,
|
|
77
|
+
template_path: typing.Optional[str] = None,
|
|
78
|
+
initial_head: typing.Optional[str] = None,
|
|
79
|
+
origin_url: typing.Optional[str] = None,
|
|
78
80
|
) -> Repository:
|
|
79
81
|
"""
|
|
80
82
|
Creates a new Git repository in the given *path*.
|
|
@@ -108,8 +110,7 @@ def init_repository(
|
|
|
108
110
|
|
|
109
111
|
# Options
|
|
110
112
|
options = ffi.new('git_repository_init_options *')
|
|
111
|
-
C.git_repository_init_options_init(options,
|
|
112
|
-
C.GIT_REPOSITORY_INIT_OPTIONS_VERSION)
|
|
113
|
+
C.git_repository_init_options_init(options, C.GIT_REPOSITORY_INIT_OPTIONS_VERSION)
|
|
113
114
|
options.flags = int(flags)
|
|
114
115
|
options.mode = mode
|
|
115
116
|
|
|
@@ -143,8 +144,15 @@ def init_repository(
|
|
|
143
144
|
|
|
144
145
|
|
|
145
146
|
def clone_repository(
|
|
146
|
-
|
|
147
|
-
|
|
147
|
+
url,
|
|
148
|
+
path,
|
|
149
|
+
bare=False,
|
|
150
|
+
repository=None,
|
|
151
|
+
remote=None,
|
|
152
|
+
checkout_branch=None,
|
|
153
|
+
callbacks=None,
|
|
154
|
+
depth=0,
|
|
155
|
+
):
|
|
148
156
|
"""
|
|
149
157
|
Clones a new Git repository from *url* in the given *path*.
|
|
150
158
|
|
|
@@ -34,7 +34,7 @@ from pathlib import Path
|
|
|
34
34
|
#
|
|
35
35
|
# The version number of pygit2
|
|
36
36
|
#
|
|
37
|
-
__version__ = '1.
|
|
37
|
+
__version__ = '1.15.1'
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
#
|
|
@@ -70,5 +70,5 @@ def get_libgit2_paths():
|
|
|
70
70
|
'libraries': ['git2'],
|
|
71
71
|
'include_dirs': [str(x) for x in include_dirs],
|
|
72
72
|
'library_dirs': [str(x) for x in library_dirs],
|
|
73
|
-
}
|
|
73
|
+
},
|
|
74
74
|
)
|