Up to [cvs.NetBSD.org] / pkgsrc / devel / py-pygit2
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
py-pygit2: fix PLIST for setuptools 84.2 and depend on it Bump PKGREVISION.
py-pygit2: updated to 1.20.0 1.20.0 (2026-08-08) - New `RemoteCallbacks.custom_headers()` - New rebase API: `Repository.rebase_init(...)`, `Repository.rebase_open(...)`, `Rebase`, and `RebaseOperation` - Fix `Config.snapshot()` for non-repository configs, allow `PathLike` in `Config.__init__()`, and improve config documentation - Fix `UnicodeDecodeError` with non-UTF-8 file paths in `Repository.status()`, `DiffFile.path`, index paths, checkout callbacks, and related APIs - Fix `enums.CheckoutStrategy.CONFLICT_STYLE_ZDIFF3`, which was mistakenly bound to the `DIFF3` constant - Fix crashes and reference-lifetime bugs in custom refdb backends - Update wheels to libgit2 1.9.6 and OpenSSL 3.5.7 - Add riscv64 wheels
py-pygit2: updated to 1.19.2 1.19.2 (2026-03-29) - Fix refcount and error handling issues in `filter_register(...)` - Fix config with valueless keys - New `Repository.load_filter_list(...)` and `FilterList` - New `Odb.read_header(...)` and now `Odb.read(...)` returns `enums.ObjectType` instead of int - Build and CI fixes
py-pygit2: updated to 1.19.0 1.19.0 (2025-10-23) - Add support for Python 3.14 and drop 3.10 - Support threaded builds (experimental) - Add Linux musl wheels for AArch64 - Add Windows wheels for AArch64; CI: build Windows wheels with cibuildwheel on GitHub - New `Repository.transaction()` context manager, returns new `ReferenceTransaction` - CI: add GitHub releases and other improvements - Documentation improvements and other changes Breaking changes: - Remove deprecated `IndexEntry.hex`, use `str(entry.id)` instead of `entry.hex` Deprecations: - Deprecate `IndexEntry.oid`, use `entry.id` instead of `entry.oid`
py-pygit2: updated to 1.18.2
1.18.2 (2025-08-16)
- Add support for almost all global options
- Now it's possible to set `Submodule.url = url`
- New `RemoteCallbacks.push_negotiation(...)`
- New optional boolean argument `connect` in `Remote.ls_remotes(...)`
- New `Remote.list_heads(...)` returns a list of `RemoteHead` objects
- Documentation fixes
- Typing improvements
Deprecations:
- `Remote.ls_remotes(...)` is deprecated, use `Remote.list_heads(...)`:
# Before
for head in remote.ls_remotes():
head['name']
head['oid']
head['loid'] # None when local is False
head['local']
head['symref_target']
# Now
for head in remote.list_heads():
head.name
head.oid
head.loid # The zero oid when local is False
head.local
head.symref_target
1.18.1 (2025-07-26)
- Update wheels to libgit2 1.9.1 and OpenSSL 3.3
- New `Index.remove_directory(...)`
- New `Index.add_conflict(...)`
- Now `Repository.merge_file_from_index(...)` returns a `MergeFileResult` object when
called with `use_deprecated=False`
- Typing improvements
Deprecations:
- Update your code:
# Before
contents = Repository.merge_file_from_index(...)
# Now
result = Repository.merge_file_from_index(..., use_deprecated=False)
contents = result.contents
At some point in the future `use_deprecated=False` will be the default.
1.18.0 (2025-04-24)
- Upgrade Linux Glibc wheels to `manylinux_2_28`
- Add `RemoteCallbacks.push_transfer_progress(...)` callback
- New `bool(oid)`
- Now `Repository.merge(...)` accepts a commit or reference object
- New `threads` optional argument in `Remote.push(...)`
- New `proxy` optional argument in `clone_repository(...)`
- New optional arguments `context_lines` and `interhunk_lines` in `Blob.diff(...)` ; and
now `Repository.diff(...)` honors these two arguments when the objects diffed are blobs.
- Now `Tree.diff_to_workdir(...)` accepts keyword arguments, not just positional.
- Fix when a reference name has non UTF-8 chars
- Fix condition check in `Repository.remotes.rename(...)`
- Add codespell workflow, fix a number of typos
- Documentation and typing
- CI: Use ARM runner for tests and wheels
- Build and CI updates
Deprecations:
- Passing str to `Repository.merge(...)` is deprecated,
instead pass an oid object (or a commit, or a reference)
Breaking changes:
- Keyword argument `flag` has been renamed to `flags` in `Blob.diff(...)` and
`Blob.diff_to_buffer(...)`
py-pygit2: adapt for setuptools 78 Bump PKGREVISION.
py-pygit2: updated to 1.16.0 1.16.0 (2024-10-11) - 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
py-pygit2: updated to 1.14.0 1.14.0 (2024-01-26) - Drop support for Python 3.8 - Add Linux wheels for musl on x86_64 - New `Repository.submodules` namespace - New `Repository.listall_mergeheads()`, `Repository.message`, `Repository.raw_message` and `Repository.remove_message()` - New `pygit2.enums` supersedes the `GIT_` constants - Now `Repository.status()`, `Repository.status_file()`, `Repository.merge_analysis()`, `DiffFile.flags`, `DiffFile.mode`, `DiffDelta.flags` and `DiffDelta.status` return enums - Now repository\'s `merge()`, `merge_commits()` and `merge_trees()` take enums/flags for their `favor`, `flags` and `file_flags` arguments. - Fix crash in filter cleanup - Documentation fixes
py-pygit2: updated to 1.13.3 1.13.3 (2023-11-21) - New API for filters in Python - Shallow repositories: New ``depth`` optional argument for ``clone_repository(...)`` and ``Remote.fetch(...)`` - New submodule ``init(...)``, ``update(...)`` and ``reload(...)`` functions - Release GIL in ``Walker.__next__`` - Type hints for submodule functions in ``Repository``
py-pygit2: update to 1.13.2. 1.13.2 (2023-10-30) ------------------------- - Support Python 3.12 - Documentation updates `#1242 <https://github.com/libgit2/pygit2/pull/1242>`_ 1.13.1 (2023-09-24) ------------------------- - Fix crash in reference rename `#1233 <https://github.com/libgit2/pygit2/issues/1233>`_ 1.13.0 (2023-09-07) ------------------------- - Upgrade to libgit2 v1.7.1 - Don't distribute wheels for pypy, only universal wheels for macOS - New ``Repository.remotes.create_anonymous(url)`` `#1229 <https://github.com/libgit2/pygit2/pull/1229>`_ - docs: update links to pypi, pygit2.org `#1228 <https://github.com/libgit2/pygit2/pull/1228>`_ - Prep work for Python 3.12 (not yet supported) `#1223 <https://github.com/libgit2/pygit2/pull/1223>`_
py-pygit2: update to 1.10.1. 1.10.1 (2022-08-28) ------------------------- - Fix segfault in ``Signature`` repr `#1155 <https://github.com/libgit2/pygit2/pull/1155>`_ - Linux and macOS wheels for Python 3.11 `#1154 <https://github.com/libgit2/pygit2/pull/1154>`_ 1.10.0 (2022-07-24) ------------------------- - Upgrade to libgit2 1.5 - Add support for ``GIT_OPT_GET_OWNER_VALIDATION`` and ``GIT_OPT_SET_OWNER_VALIDATION`` `#1150 <https://github.com/libgit2/pygit2/pull/1150>`_ - New ``untracked_files`` and ``ignored`` optional arguments for ``Repository.status(...)`` `#1151 <https://github.com/libgit2/pygit2/pull/1151>`_ 1.9.2 (2022-05-24) ------------------------- - New ``Repository.create_commit_string(...)`` and ``Repository.create_commit_with_signature(...)`` `#1142 <https://github.com/libgit2/pygit2/pull/1142>`_ - Linux and macOS wheels updated to libgit2 v1.4.3 - Remove redundant line `#1139 <https://github.com/libgit2/pygit2/pull/1139>`_ 1.9.1 (2022-03-22) ------------------------- - Type hints: added to C code and Branches/References `#1121 <https://github.com/libgit2/pygit2/pull/1121>`_ `#1132 <https://github.com/libgit2/pygit2/pull/1132>`_ - New ``Signature`` supports ``str()`` and ``repr()`` `#1135 <https://github.com/libgit2/pygit2/pull/1135>`_ - Fix ODB backend's read in big endian architectures `#1130 <https://github.com/libgit2/pygit2/pull/1130>`_ - Fix install with poetry `#1129 <https://github.com/libgit2/pygit2/pull/1129>`_ `#1128 <https://github.com/libgit2/pygit2/issues/1128>`_ - Wheels: update to libgit2 v1.4.2 - Tests: fix testing ``parse_diff`` `#1131 <https://github.com/libgit2/pygit2/pull/1131>`_ - CI: various fixes after migration to libgit2 v1.4 1.9.0 (2022-02-22) ------------------------- - Upgrade to libgit2 v1.4 - Documentation, new recipes for committing and cloning `#1125 <https://github.com/libgit2/pygit2/pull/1125>`_ 1.8.0 (2022-02-04) ------------------------- - Rename ``RemoteCallbacks.progress(...)`` callback to ``.sideband_progress(...)`` `#1120 <https://github.com/libgit2/pygit2/pull/1120>`_ - New ``Repository.merge_base_many(...)`` and ``Repository.merge_base_octopus(...)`` `#1112 <https://github.com/libgit2/pygit2/pull/1112>`_ - New ``Repository.listall_stashes()`` `#1117 <https://github.com/libgit2/pygit2/pull/1117>`_ - Code cleanup `#1118 <https://github.com/libgit2/pygit2/pull/1118>`_ Backward incompatible changes: - The ``RemoteCallbacks.progress(...)`` callback has been renamed to ``RemoteCallbacks.sideband_progress(...)``. This matches the documentation, but may break existing code that still uses the old name. 1.7.2 (2021-12-06) ------------------------- - Universal wheels for macOS `#1109 <https://github.com/libgit2/pygit2/pull/1109>`_ 1.7.1 (2021-11-19) ------------------------- - New ``Repository.amend_commit(...)`` `#1098 <https://github.com/libgit2/pygit2/pull/1098>`_ - New ``Commit.message_trailers`` `#1101 <https://github.com/libgit2/pygit2/pull/1101>`_ - Windows wheels for Python 3.10 `#1103 <https://github.com/libgit2/pygit2/pull/1103>`_ - Changed: now ``DiffDelta.is_binary`` returns ``None`` if the file data has not yet been loaded, cf. `#962 <https://github.com/libgit2/pygit2/issues/962>`_ - Document ``Repository.get_attr(...)`` and update theme `#1017 <https://github.com/libgit2/pygit2/issues/1017>`_ `#1105 <https://github.com/libgit2/pygit2/pull/1105>`_ 1.7.0 (2021-10-08) ------------------------- - Upgrade to libgit2 1.3.0 `#1089 <https://github.com/libgit2/pygit2/pull/1089>`_ - Linux wheels now bundled with libssh2 1.10.0 (instead of 1.9.0) - macOS wheels now include libssh2 - Add support for Python 3.10 `#1092 <https://github.com/libgit2/pygit2/pull/1092>`_ `#1093 <https://github.com/libgit2/pygit2/pull/1093>`_ - Drop support for Python 3.6 - New `pygit2.GIT_CHECKOUT_SKIP_LOCKED_DIRECTORIES` `#1087 <https://github.com/libgit2/pygit2/pull/1087>`_ - New optional argument ``location`` in ``Repository.applies(..)`` and ``Repository.apply(..)`` `#1091 <https://github.com/libgit2/pygit2/pull/1091>`_ - Fix: Now the `flags` argument in `Repository.blame()` is passed through `#1083 <https://github.com/libgit2/pygit2/pull/1083>`_ - CI: Stop using Travis, move to GitHub actions Caveats: - Windows wheels for Python 3.10 not yet available.
py-pygit2: fix PLIST
py-pygit2: updated to 1.2.1 1.2.1: - Fix segfault in ``Object.raw_name`` when not reached through a tree - Internal: Use @ffi.def_extern instead of @ffi.callback - Internal: callbacks code refactored - Test suite completely switched to pytest - New unit tests - Documentation changes Deprecations: - Deprecate ``Repository.create_remote(...)``, use instead ``Repository.remotes.create(...)`` - Deprecate ``GIT_CREDTYPE_XXX`` contants, use ``GIT_CREDENTIAL_XXX`` instead.
py-pygit2: sort PLIST
py-pygit2: Update to 1.1.0
1.1.0 (2020-03-01)
-------------------------
- Upgrade to libgit2 0.99
`#959 <https://github.com/libgit2/pygit2/pull/959>`_
- Continued work on custom odb backends
`#948 <https://github.com/libgit2/pygit2/pull/948>`_
- New ``Diff.patchid`` getter
`#960 <https://github.com/libgit2/pygit2/pull/960>`_
`#877 <https://github.com/libgit2/pygit2/issues/877>`_
- New ``settings.disable_pack_keep_file_checks(...)``
`#908 <https://github.com/libgit2/pygit2/pull/908>`_
- New ``GIT_DIFF_`` and ``GIT_DELTA_`` constants
`#738 <https://github.com/libgit2/pygit2/issues/738>`_
- Fix crash in iteration of config entries
`#970 <https://github.com/libgit2/pygit2/issues/970>`_
- Travis: fix printing features when building Linux wheels
`#977 <https://github.com/libgit2/pygit2/pull/977>`_
- Move ``_pygit2`` to ``pygit2._pygit2``
`#978 <https://github.com/libgit2/pygit2/pull/978>`_
Requirements changes:
- Now libgit2 0.99 is required
- New requirement: cached-property
Breaking changes:
- In the rare case you're directly importing the low level ``_pygit2``, the
import has changed::
# Before
import _pygit2
# Now
from pygit2 import _pygit2
py-pygit2: updated to 1.0.2 1.0.2: Fix enumerating tree entries with submodules 1.0.1: Fix build in Mac OS 1.0.0: Drop Python 2.7 and 3.4 support, six no longer required Add Python 3.8 support New support for / operator to traverse trees New Branch.raw_branch_name New Index.remove_all() New Remote.ls_remotes(..) New Repository.lookup_reference_dwim(..) and Repository.resolve_refish(..) New Repository.odb returns new Odb type instance. And new OdbBackend type. New Repository.references.compress() Optimization: Load notes lazily Fix spurious exception in config Minor documentation and cosmetic changes
py-pygit2: fix python2.7 install
py-pygit2: update to 0.28.1. 0.28.1 (2019-04-19) ------------------------- - Now works with pycparser 2.18 and above `#846 <https://github.com/libgit2/pygit2/issues/846>`_ - Now ``Repository.write_archive(..)`` keeps the file mode `#616 <https://github.com/libgit2/pygit2/issues/616>`_ `#898 <https://github.com/libgit2/pygit2/pull/898>`_ - New ``Patch.data`` returns the raw contents of the patch as a byte string `#790 <https://github.com/libgit2/pygit2/pull/790>`_ `#893 <https://github.com/libgit2/pygit2/pull/893>`_ - New ``Patch.text`` returns the contents of the patch as a text string, deprecates `Patch.patch` `#790 <https://github.com/libgit2/pygit2/pull/790>`_ `#893 <https://github.com/libgit2/pygit2/pull/893>`_ Deprecations: - ``Patch.patch`` is deprecated, use ``Patch.text`` instead
Import pygit2 0.26.3 as devel/py-pygit2 (from wip/py-pygit2). pygit2 is a set of Python bindings to the libgit2 linkable C Git library.