From 933f030afd0bd1951865ceaf3ebbfe377c37ff7c35efbf3a3f3269a6dc2d658b Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 24 Sep 2024 10:18:34 +0000 Subject: [PATCH 1/6] [info=5ddd6ee66d4d50758a67277b320de87769a4722ab143b2f24cbb0e0d52f5aada] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygit2?expand=0&rev=97 --- .gitattributes | 23 ++ .gitignore | 1 + _scmsync.obsinfo | 4 + build.specials.obscpio | 3 + pygit2-1.15.1.tar.gz | 3 + pygit2-1.17.0.tar.gz | 3 + python-pygit2.changes | 619 +++++++++++++++++++++++++++++++++++++++++ python-pygit2.spec | 83 ++++++ 8 files changed, 739 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _scmsync.obsinfo create mode 100644 build.specials.obscpio create mode 100644 pygit2-1.15.1.tar.gz create mode 100644 pygit2-1.17.0.tar.gz create mode 100644 python-pygit2.changes create mode 100644 python-pygit2.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo new file mode 100644 index 0000000..d495dd6 --- /dev/null +++ b/_scmsync.obsinfo @@ -0,0 +1,4 @@ +mtime: 1722871444 +commit: 5ddd6ee66d4d50758a67277b320de87769a4722ab143b2f24cbb0e0d52f5aada +url: https://src.opensuse.org/pool/python-pygit2 +revision: factory diff --git a/build.specials.obscpio b/build.specials.obscpio new file mode 100644 index 0000000..8a42595 --- /dev/null +++ b/build.specials.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a62b5149fe863f60bc19559e42c1372f634584c2b3e82a7103be03921ba94d87 +size 256 diff --git a/pygit2-1.15.1.tar.gz b/pygit2-1.15.1.tar.gz new file mode 100644 index 0000000..94277a1 --- /dev/null +++ b/pygit2-1.15.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1fe8b85053d9713043c81eccc74132f9e5b603f209e80733d7955eafd22eb9d +size 768818 diff --git a/pygit2-1.17.0.tar.gz b/pygit2-1.17.0.tar.gz new file mode 100644 index 0000000..069f030 --- /dev/null +++ b/pygit2-1.17.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fa2bc050b2c2d3e73b54d6d541c792178561a344f07e409f532d5bb97ac7b894 +size 769002 diff --git a/python-pygit2.changes b/python-pygit2.changes new file mode 100644 index 0000000..6486fca --- /dev/null +++ b/python-pygit2.changes @@ -0,0 +1,619 @@ +------------------------------------------------------------------- +Mon Aug 5 11:21:06 UTC 2024 - John Paul Adrian Glaubitz + +- Update to 1.15.1 + * New `Repository.revert(...)` + * New optional `depth` argument in submodules `add()` and `update()` methods + * Now `Submodule.url` returns `None` when the submodule does not have a url + * Fix use after free bug in error reporting + * Fix `Submodule.head_id` when the submodule is not in the current HEAD tree + * Fix `Submodule.open()` when subclassing `Repository` + * Fix error in the test suite when running with address sanitizer + * Annotations and documentation fixes +- Fix version number for previous changelog entry + +------------------------------------------------------------------- +Wed Jun 19 10:53:06 UTC 2024 - John Paul Adrian Glaubitz + +- Update to 1.15.0 + * Many deprecated features have been removed, see below + * Upgrade to libgit2 v1.8.1 + * New `push_options` optional argument in `Repository.push(...)` + * New support comparison of `Oid` with text string + * Fix `CheckoutNotify.IGNORED` + * Use default error handler when decoding/encoding paths + * Remove setuptools runtime dependency + * Coding style with ruff + * Add wheels for ppc64le + * Fix tests on EPEL8 builds for s390x + * Deprecate `IndexEntry.hex`, use `str(IndexEntry.id)` + * Remove deprecated `oid.hex`, use `str(oid)` + * Remove deprecated `object.hex`, use `str(object.id)` + * Remove deprecated `object.oid`, use `object.id` + * Remove deprecated `Repository.add_submodule(...)`, use `Repository.submodules.add(...)` + * Remove deprecated `Repository.lookup_submodule(...)`, use `Repository.submodules[...]` + * Remove deprecated `Repository.init_submodules(...)`, use `Repository.submodules.init(...)` + * Remove deprecated `Repository.update_submodule(...)`, use `Repository.submodules.update(...)` + * Remove deprecated constants `GIT_OBJ_XXX`, use `ObjectType` + * Remove deprecated constants `GIT_REVPARSE_XXX`, use `RevSpecFlag` + * Remove deprecated constants `GIT_REF_XXX`, use `ReferenceType` + * Remove deprecated `ReferenceType.OID`, use instead `ReferenceType.DIRECT` + * Remove deprecated `ReferenceType.LISTALL`, use instead `ReferenceType.ALL` + * Remove deprecated support for passing dicts to repository\'s `merge(...)`, + `merge_commits(...)` and `merge_trees(...)`. Instead pass `MergeFlag` for `flags`, and + `MergeFileFlag` for `file_flags`. + * Remove deprecated support for passing a string for the favor argument to repository\'s + `merge(...)`, `merge_commits(...)` and `merge_trees(...)`. Instead pass `MergeFavor`. +- Drop patches for issues fixed upstream + * Fix-CI.patch + * Fix-leaks-in-fetch_refspecs-and-push_refspecs.patch + * pygit2-Upgrade_to_libgit2_v1_8_0.patch + * pygit2-Upgrade_to_libgit2_v1_8_1-2.patch + * pygit2-Upgrade_to_libgit2_v1_8_1.patch +- Disable test test_push_options which currently segfaults +- Update BuildRequires from setup.py + +------------------------------------------------------------------- +Fri May 17 10:57:08 UTC 2024 - Dirk Müller + +- add pygit2-Upgrade_to_libgit2_v1_8_1-2.patch + pygit2-Upgrade_to_libgit2_v1_8_1.patch: support libgit2 1.8.1 + +------------------------------------------------------------------- +Thu May 2 10:26:23 UTC 2024 - Michal Suchanek + +- Fix build with gcc 14 + * Fix-CI.patch + * Fix-leaks-in-fetch_refspecs-and-push_refspecs.patch + +------------------------------------------------------------------- +Sat Mar 30 23:08:16 UTC 2024 - Fridrich Strba + +- Added patch: + * pygit2-Upgrade_to_libgit2_v1_8_0.patch (gh#libgit2/pygit2@6d539d76b53b) + + Backport of upstream commit to build with libgit2 1.8.x + + Apply only if libgit2-devel >= 1.8 + + Fixes build in Factory + +------------------------------------------------------------------- +Fri Mar 1 10:14:35 UTC 2024 - Dirk Müller + +- update to 1.14.1: + * Now `Object.filemode` returns `enums.FileMode` and + `Reference.type` returns `enums.ReferenceType` + * Fix tests on Fedora 40 + * Deprecate `ReferenceType.OID`, use `ReferenceType.DIRECT` + * Deprecate `ReferenceType.LISTALL`, use `ReferenceType.ALL` + +------------------------------------------------------------------- +Tue Jan 30 18:11:57 UTC 2024 - Dirk Müller + +- update to 1.14.0: + * Drop support for Python 3.8 + * 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 + * Remove deprecated `Repository.create_remote(...)` function, + use instead `Repository.remotes.create(...)` + * Deprecate `Repository.add_submodule(...)`, use + `Repository.submodules.add(...)` + * Deprecate `Repository.lookup_submodule(...)`, use + `Repository.submodules[...]` + * Deprecate `Repository.init_submodules(...)`, use + `Repository.submodules.init(...)` + * Deprecate `Repository.update_submodule(...)`, use + `Repository.submodules.update(...)` + * Deprecate `GIT_*` constants, use `pygit2.enums` + * Passign dicts to repository\'s `merge(...)`, + `merge_commits(...)` and `merge_trees(...)` is deprecated. + Instead pass `MergeFavor` for the `favor` argument, `MergeFlag` + for `flags`, and `MergeFileFlag` for `file_flags`. + +------------------------------------------------------------------- +Sat Jan 6 20:59:47 UTC 2024 - Dirk Müller + +- update to 1.13.3: + * New API for filters in Python #1237 #1244 + * Shallow repositories: New depth optional argument for + clone_repository(...) and Remote.fetch(...) #1245 #1246 + * New submodule init(...), update(...) and reload(...) + functions #1248 + * Release GIL in Walker.__next__ #1249 + * Type hints for submodule functions in Repository #1247 + * Support Python 3.12 + * Documentation updates #1242 + * Fix crash in reference rename #1233 + * Upgrade to libgit2 v1.7.1 + * Don't distribute wheels for pypy, only universal wheels for + macOS + * New Repository.remotes.create_anonymous(url) #1229 + * docs: update links to pypi, pygit2.org #1228 + * Prep work for Python 3.12 (not yet supported) #1223 +- drop support-libgit2-1.7.patch (upstream) + +------------------------------------------------------------------- +Tue Jul 25 14:29:15 UTC 2023 - Dominique Leuenberger + +- Update to version 1.12.2: + + Update wheels to bundle libssh2 1.11.0 and OpenSSL 3.0.9. + Remove obsolete Remote.save(). +- Changes from version 1.12.1: + + Fix segfault in signature when encoding is incorrect. + + Typing improvements. + + Update wheels to libgit2 v1.6.4. +- Changes from version 1.12.0: + + Upgrade to libgit2 v1.6.3. + + Update Linux wheels to bundle OpenSSL 3.0.8. + + Downgrade Linux wheels to manylinux2014. + + New ConflictCollection.__contains__.1 + + New Repository.references.iterator(...). + + New favor, flags and file_flags optional arguments for + Repository.merge(...). + + New keep_all and paths optional arguments for + Repository.stash(...). + + New Respository.state(). + + Improve Repository.write_archive(...) performance. + + Sync type annotations. +- Drop support-libgit2-1.6.patch: fixed upstream. +- Add support-libgit2-1.7.patch: support libgit2 1.7.0. + +------------------------------------------------------------------- +Tue Mar 21 07:13:27 UTC 2023 - Daniel Garcia + +- Add support-libgit2-1.6.patch to make it work with the latest + libgit2 release gh#libgit2/pygit2#1200 + +------------------------------------------------------------------- +Sat Dec 3 20:06:29 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 1.11.1 (2022-11-09) + * Fix Linux wheels, downgrade to manylinux 2_24 #1176 + * Windows wheels for Python 3.11 #1177 + * CI: Use 3.11 final release for testing #1178 + * Drop support for Python 3.7 + * Update Linux wheels to manylinux 2_28 #1136 + * Fix crash in signature representation #1162 + * Fix memory leak in Signature #1173 + * New optional argument raise_error in Repository.applies(...) #1166 + * New notify/progress callbacks for checkout and stash #1167 #1169 + * New Repository.remotes.names() #1159 + * Now refname argument in RemoteCallbacks.push_update_reference(...) is a string, not bytes #1168 + * Add missing newline at end of pygit2/decl/pack.h #1163 + +------------------------------------------------------------------- +Mon Sep 19 16:53:05 UTC 2022 - Stephan Kulow + +- Update to 1.10.1 + - Fix segfault in ``Signature`` repr + `#1155 `_ + - Linux and macOS wheels for Python 3.11 + `#1154 `_ + - Upgrade to libgit2 1.5 + - Add support for ``GIT_OPT_GET_OWNER_VALIDATION`` and + ``GIT_OPT_SET_OWNER_VALIDATION`` + `#1150 `_ + - New ``untracked_files`` and ``ignored`` optional arguments for + ``Repository.status(...)`` + `#1151 `_ +- Remove support-libgit-1.5.patch no longer needed + +------------------------------------------------------------------- +Thu Jul 21 14:44:55 UTC 2022 - Steve Kowalik + +- Update to 1.9.2: + * New Repository.create_commit_string(...) and + Repository.create_commit_with_signature(...) #1142 + * Linux and macOS wheels updated to libgit2 v1.4.3 + * Remove redundant line #1139 +- Add patch support-libgit-1.5.patch: + * Suppot libgit 1.5.0 + +------------------------------------------------------------------- +Sat Mar 26 18:51:51 UTC 2022 - Dirk Müller + +- update to 1.9.1: + - Type hints: added to C code and Branches/References + - New ``Signature`` supports ``str()`` and ``repr()`` + - Fix ODB backend's read in big endian architectures + - Fix install with poetry + - Wheels: update to libgit2 v1.4.2 + - Tests: fix testing ``parse_diff`` + - CI: various fixes after migration to libgit2 v1.4 + +------------------------------------------------------------------- +Mon Feb 28 08:15:51 UTC 2022 - pgajdos@suse.com + +- version update to 1.9.0 + 1.9.0 (2022-02-22) + ------------------------- + - Upgrade to libgit2 v1.4 + - Documentation, new recipes for committing and cloning + `#1125 `_ + 1.8.0 (2022-02-04) + ------------------------- + - Rename ``RemoteCallbacks.progress(...)`` callback to ``.sideband_progress(...)`` + `#1120 `_ + - New ``Repository.merge_base_many(...)`` and ``Repository.merge_base_octopus(...)`` + `#1112 `_ + - New ``Repository.listall_stashes()`` + `#1117 `_ + - Code cleanup + `#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 `_ + 1.7.1 (2021-11-19) + ------------------------- + - New ``Repository.amend_commit(...)`` + `#1098 `_ + - New ``Commit.message_trailers`` + `#1101 `_ + - Windows wheels for Python 3.10 + `#1103 `_ + - Changed: now ``DiffDelta.is_binary`` returns ``None`` if the file data has + not yet been loaded, cf. `#962 `_ + - Document ``Repository.get_attr(...)`` and update theme + `#1017 `_ + `#1105 `_ + +------------------------------------------------------------------- +Wed Oct 20 08:25:16 UTC 2021 - Matej Cepl + +- Update to 1.7.0: + - Upgrade to libgit2 1.3.0 + - Add support for Python 3.10 + - Drop support for Python 3.6 + - New `pygit2.GIT_CHECKOUT_SKIP_LOCKED_DIRECTORIES` + - New optional argument ``location`` in + ``Repository.applies(..)`` and ``Repository.apply(..)`` + - Fix: Now the `flags` argument in `Repository.blame()` is + passed through + - CI: Stop using Travis, move to GitHub actions + - Fix a number of reference leaks + - Review custom object backends + - In custom backends the callbacks have been renamed from ``read`` to + ``read_cb``, ``write`` to ``write_cb``, and so on. + - New optional ``proxy`` argument in ``Remote`` methods + - New GIT_MERGE_PREFERENCE constants + - Don't require cached-property with Python 3.8 or later + - Refactored build and CI, new ``build.sh`` script + - Remove deprecated ``GIT_CREDTYPE_XXX`` contants, use + ``GIT_CREDENTIAL_XXX`` instead. + - Remove deprecated ``Patch.patch`` getter, use ``Patch.text`` + instead. + - New ``PackBuilder`` class and ``Repository.pack(...)`` + - New ``Config.delete_multivar(...)`` + - New ``Repository.is_shallow`` + - New optional ``message`` argument in + ``Repository.create_reference(...)`` + - Fix truncated diff when there are nulls + - Fix ``Index.add(...)`` raise ``TypeError`` instead of + ``AttributeError`` when arguments are of unexpected type + - Upgrade to libgit2 1.1, new ``GIT_BLAME_IGNORE_WHITESPACE`` constant + - Drop support for PyPy3 7.2 + - New optional ``flags`` argument in ``Repository.__init__(...)``, + new ``GIT_REPOSITORY_OPEN_*`` constants +- Remove upstreamed libgit2_1.patch. + +------------------------------------------------------------------- +Sun Nov 1 04:07:45 UTC 2020 - John Vandenberg + +- Add libgit2_1.patch for compatibility with libgit 1.1.0 +- Update to v1.3.0 + * New Repository.applies, Repository.revparse, Repository.revparse_ext, + Repository.add_submodule, Repository.raw_listall_branches, and + Repository.raw_listall_references + * New optional flags and file_flags arguments in + Repository.merge_commits and Repository.merge_trees + * New Reference.raw_target + * Allow bytes in Repository.lookup_branch and Repository.diff + * New GIT_BLAME_FIRST_PARENT and GIT_BLAME_USE_MAILMAP constants + * New IndexEntry supports repr(), str(), == and != + * New Object supports repr() + * New accept tuples of strings (not only lists) in a number of places + * Fix compatibility with old macOS 10.9 + * Fix check argument type in Repository.apply(...) + * Fix raise exception if error in Repository.listall_submodules() + * Fix a couple of refcount errors in OdbBackend.refresh() and + Worktree_is_prunable + +------------------------------------------------------------------- +Wed May 6 08:01:51 UTC 2020 - Tomáš Chvátal + +- Update to 1.2.1: + * Drop python2 support + * Various crash fixes + +------------------------------------------------------------------- +Mon Dec 2 14:50:25 UTC 2019 - Julio González Gil + +- Fix building for s390x (bsc#1158198) + +------------------------------------------------------------------- +Mon Jun 3 10:20:16 UTC 2019 - Tomáš Chvátal + +- Update to 0.28.2: + * Fix crash in reflog iteration #901 + * Support symbolic references in branches.with_commit(..) #910 + * Documentation updates #909 + * Test updates #911 + +------------------------------------------------------------------- +Wed May 15 18:22:32 UTC 2019 - Gary Smith + +- Update to 0.28.1 + * Removed patch pycparser.patch as it is no longer needed + * Now works with pycparser 2.18 and above + * Now ``Repository.write_archive(..)`` keeps the file mode + * New ``Patch.data`` returns the raw contents of the patch as a byte string + * New ``Patch.text`` returns the contents of the patch as a text string, + +------------------------------------------------------------------- +Mon Apr 8 08:15:54 UTC 2019 - Tomáš Chvátal + +- Add patch to fix the pycparser issues as per bellow: + * pycparser.patch + +------------------------------------------------------------------- +Sat Mar 23 11:32:34 UTC 2019 - Tomáš Chvátal + +- Drop the pygit2-0.28-Remove-pycparser-constraint.patch and replace + it with shorter sed +- Switch to pytest testing: + * Fails now but that is pycparser bug https://github.com/eliben/pycparser/issues/305 +- Disable tests temporarily as per above + +------------------------------------------------------------------- +Wed Mar 20 20:40:34 UTC 2019 - Neal Gompa + +- Update to 0.28.0 + * Update to libgit2 v0.28 + * New ``pygit2.Mailmap`` + * New ``Repository.apply(...)`` wraps ``git_apply(..)`` + * Now ``Repository.merge_analysis(...)`` accepts an optional reference parameter + * Now ``Repository.add_worktree(...)`` accepts an optional reference parameter + * Now it's possible to set SSL certificate locations + * Test and documentation improvements + * Now ``worktree.path`` returns the path to the worktree directory + * Remove undocumented ``worktree.git_path`` +- Remove unneeded patch to fix issues on i586: + * pygit2-i586.patch +- Add patch to remove unneeded constraint on pycparser + * pygit2-0.28-Remove-pycparser-constraint.patch + +------------------------------------------------------------------- +Mon May 21 08:33:07 UTC 2018 - tchvatal@suse.com + +- Add patch to fix issues on i586 arch: + * pygit2-i586.patch + +------------------------------------------------------------------- +Thu May 17 12:10:25 UTC 2018 - tchvatal@suse.com + +- Update to 0.27.0: + * Update to libgit2 v0.27 #783 + * Fix for GCC 4 #786 + +------------------------------------------------------------------- +Thu Aug 24 15:45:45 UTC 2017 - toddrme2178@gmail.com + +- Update to 0.26.0 + * Update to libgit2 v0.26 + * Drop support for Python 3.2, add support for cffi 1.10 + * New ``Repository.revert_commit(...)`` + * New ``Branch.is_checked_out()`` + * Various fixes + +------------------------------------------------------------------- +Fri Apr 7 22:12:04 UTC 2017 - toddrme2178@gmail.com + +- Update to 0.25.0. + * Make pygit2 throw if tree of a commit is not found + * fixed cached memory tests + * Added mwindow_mapped_limit, cached_memory, enable_caching, + cache_max_size, cache_object_limit options +- Implement singlespec version. + +------------------------------------------------------------------- +Wed Jan 11 21:49:47 UTC 2017 - astieger@suse.com + +- update to 0.24.2: + * Fix when libgit2 error messages have non-ascii chars + * Documentation improvements +- includes changes from 0.24.1 + * New Repository.listall_reference_objects() + * Fix ``Repository.write_archive(...)` + * Reproducible builds + * Documentation fixes + +------------------------------------------------------------------- +Wed Nov 2 09:27:00 UTC 2016 - kkaempf@suse.com + +- Fix Url link (old one was dead). + +------------------------------------------------------------------- +Fri Aug 12 16:35:20 UTC 2016 - tbechtold@suse.com + +- require the cffi version it was built against +- Use pypi.io as Source url + +------------------------------------------------------------------- +Thu Apr 7 19:47:24 UTC 2016 - zaitor@opensuse.org + +- Update to version 0.24.0: + + Support Python 3.5. + + New dependency, python-six + + New Repository.path_is_ignored(path). + + Fix error in Repository(path) when path is a bytes string. + + Fix memory issue in Repository.describe(...). + + Allow testing with `tox. +- Add python-six BuildRequires following upstream changes. + +------------------------------------------------------------------- +Tue Sep 29 09:13:03 UTC 2015 - toddrme2178@gmail.com + +- Update to version 0.23.1 + * Improve support for cffi 1.0+ + (https://github.com/libgit2/pygit2/pull/529) + (https://github.com/libgit2/pygit2/pull/561) + * Fix Remote.push + (https://github.com/libgit2/pygit2/pull/557) + * New TreeEntry.type + (https://github.com/libgit2/pygit2/pull/560) + * New pygit2.GIT_DIFF_SHOW_BINARY + (https://github.com/libgit2/pygit2/pull/566) + +------------------------------------------------------------------- +Thu Sep 17 11:15:59 UTC 2015 - p.drouand@gmail.com + +- Update to version 0.23.0 + * Update to libgit2 v0.23 + (https://github.com/libgit2/pygit2/pull/540) + * Now Repository.merge_base(...) returns None if no merge base is found + (https://github.com/libgit2/pygit2/pull/550) + * Documentation updates + (https://github.com/libgit2/pygit2/pull/547) + +------------------------------------------------------------------- +Tue Feb 3 15:06:02 UTC 2015 - dimstar@opensuse.org + +- Update to version 0.22.0: + + Update to libgit2 v0.22 + (https://github.com/libgit2/pygit2/pull/459) + + Add support for libgit2 feature detection (new pygit2.features + and pygit2.GIT_FEATURE_*) + (https://github.com/libgit2/pygit2/pull/475) + + New Repository.remotes (RemoteCollection) + (https://github.com/libgit2/pygit2/pull/447) + + API Changes: + - Prototype of clone_repository changed, check documentation + - Removed clone_into, use clone_repository with callbacks instead + - Use Repository.remotes.rename(name, new_name) instead of + Remote.rename(new_name) + - Use Repository.remotes.delete(name) instead of Remote.delete() + - Now Remote.push(...) takes a list of refspecs instead of just one + - Change Patch.old_id, Patch.new_id, Note.annotated_id, + RefLogEntry.oid_old and RefLogEntry.oid_new to be Oid objects + instead of strings + (https://github.com/libgit2/pygit2/pull/449) + + Other: + - Fix init_repository when passing optional parameters + workdir_path, description, template_path, initial_head or + origin_url. + - Fix use-after-free when patch outlives diff. + - Documentation improvements. + - Make the GPL exception explicit in setup.py. +- Add python-setuptools BuildRequires: new build dependency. + +------------------------------------------------------------------- +Tue Sep 2 18:20:17 UTC 2014 - p.drouand@gmail.com + +- Update to version 0.20.2 + + Fix regression with Python 2, ``IndexEntry.path`` returns str + (bytes in Python 2 and unicode in Python 3) + + Get back ``IndexEntry.oid`` for backwards compatibility + + Config, iterate over the keys (instead of the key/value pairs) + `#395 `_ + + ``Diff.find_similar`` supports new threshold arguments + `#396 `_ + + Optimization, do not load the object when expanding an oid prefix + `#397 `_ +- Changes from version 0.20.1 + + Install fix + `#382 `_ + + Documentation improved, including + `#383 `_ + `#385 `_ + `#388 `_ + + Documentation, use the read-the-docs theme + `#387 `_ + + Coding style improvements + `#392 `_ + + New ``Repository.state_cleanup()`` + `#386 `_ + + New ``Index.conflicts`` + `#345 `_ + `#389 `_ + + New checkout option to define the target directory + `#390 `_ +- Fix build +- Remove python_sitelib definition; pygit2 is arch dependant +- Add python-cffi and python-unittest2 requirements; new + dependencies +- Disable tests; network is now needed for launching them + +------------------------------------------------------------------- +Mon Dec 9 13:31:12 UTC 2013 - p.drouand@gmail.com + +- Update to version 0.20.0 + + Upstream provides no changelog, but you can check + https://github.com/libgit2/pygit2/compare/v0.19.0...v0.20.0 +- Fix build on openSUSE >= 12.3 and SLE11SP3 +- Remove obsolete conditionnal macros + +------------------------------------------------------------------- +Sun Aug 18 13:24:03 UTC 2013 - toddrme2178@gmail.com + +- Update to 0.19.0 + + Upstream provides no changelog, but you can check + https://github.com/libgit2/pygit2/compare/v0.17.3...v0.19.0 +- Keep 0.17.3 for compatibility with openSUSE 12.2 + +------------------------------------------------------------------- +Thu Dec 27 10:03:25 UTC 2012 - cfarrell@suse.com + +- license update: GPL-2.0 + See COPYING (and the majority of the source code files). Not sure why + Apache-2.0 was chosen as license here - there is absolutely no indication + of Apache style licensing in the package + +------------------------------------------------------------------- +Tue Dec 18 10:48:23 UTC 2012 - saschpe@suse.de + +- Update to version 0.17.3: + + Upstream provides no changelog, but you can check + https://github.com/libgit2/pygit2/compare/v0.17.2...v0.17.3 +- Changes from previous versions: + + https://github.com/libgit2/pygit2/compare/v0.16.1...v0.17.2 +- Enable testsuite again +- Package file COPYING + +------------------------------------------------------------------- +Tue Apr 24 08:49:31 UTC 2012 - saschpe@suse.de + +- Update to version 0.16.1: + + Upstream provides no changelog + +------------------------------------------------------------------- +Wed Jan 26 17:26:21 UTC 2011 - saschpe@gmx.de + +- Removed SUSE-specific --record-rpm for file lists + +------------------------------------------------------------------- +Tue Jan 18 21:49:47 UTC 2011 - saschpe@gmx.de + +- Install documentation (README.md and COPYING) +- Fix install section for other distros + +------------------------------------------------------------------- +Tue Jan 18 20:48:40 UTC 2011 - saschpe@gmx.de + +- Initial commit (0.1) +- Added patch include recent libgit2 changes + diff --git a/python-pygit2.spec b/python-pygit2.spec new file mode 100644 index 0000000..c424806 --- /dev/null +++ b/python-pygit2.spec @@ -0,0 +1,83 @@ +# +# spec file for package python-pygit2 +# +# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2019 Neal Gompa . +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-pygit2 +Version: 1.15.1 +Release: 0 +Summary: Python bindings for libgit2 +License: GPL-2.0-only +URL: https://github.com/libgit2/pygit2 +Source: https://files.pythonhosted.org/packages/source/p/pygit2/pygit2-%{version}.tar.gz +BuildRequires: %{python_module cached-property} +BuildRequires: %{python_module cffi >= 1.16.0} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: ca-certificates +BuildRequires: ca-certificates-mozilla +BuildRequires: fdupes +BuildRequires: libgit2-devel >= 1.1 +BuildRequires: libopenssl-devel +BuildRequires: python-rpm-macros +Requires: python-cached-property +%requires_eq python-cffi +%python_subpackages + +%description +Bindings for libgit2, a linkable C library for the Git version-control system. + +%prep +%autosetup -p1 -n pygit2-%{version} +%if %{?pkg_vcmp:%pkg_vcmp libgit2-devel < 1.8}%{!?pkg_vcmp:1} +%patch -P 3 -p1 -R +%patch -P 2 -p1 -R +%patch -P 1 -p1 -R +%patch -P 0 -p1 -R +%endif + +# do not add options to pytest +rm pytest.ini + +%build +export CFLAGS="%{optflags} -fno-strict-aliasing" +%pyproject_wheel + +%install +%pyproject_install +%python_expand rm -rf %{buildroot}%{$python_sitearch}/pygit2/decl/ +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +rm -rf pygit2 +# test_no_context_lines failing on big endian +# https://github.com/libgit2/pygit2/issues/812 +donttest="test_no_context_lines" +donttest="$donttest or test_push_options" +%pytest_arch -k "not ($donttest)" + +%files %{python_files} +%license COPYING +%doc README.md +%{python_sitearch}/pygit2 +%{python_sitearch}/pygit2-%{version}.dist-info + +%changelog From 91b8e4030b57e020de2b9eae6e55ab6e2b964d6a0a07a4da50c7440da80be1b9 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Tue, 5 Nov 2024 14:42:22 +0000 Subject: [PATCH 2/6] [info=c0760b117fc40c177bf755bf33d8afcf98ad5dfa5af50e0556b3773a03b56f59] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygit2?expand=0&rev=98 --- _scmsync.obsinfo | 4 ++-- build.specials.obscpio | 4 ++-- const-parents.patch | 27 +++++++++++++++++++++++++++ pygit2-1.15.1.tar.gz | 3 --- pygit2-1.16.0.tar.gz | 3 +++ python-pygit2.changes | 15 +++++++++++++++ python-pygit2.spec | 16 +++++++--------- 7 files changed, 56 insertions(+), 16 deletions(-) create mode 100644 const-parents.patch delete mode 100644 pygit2-1.15.1.tar.gz create mode 100644 pygit2-1.16.0.tar.gz diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo index d495dd6..8675986 100644 --- a/_scmsync.obsinfo +++ b/_scmsync.obsinfo @@ -1,4 +1,4 @@ -mtime: 1722871444 -commit: 5ddd6ee66d4d50758a67277b320de87769a4722ab143b2f24cbb0e0d52f5aada +mtime: 1730817737 +commit: c0760b117fc40c177bf755bf33d8afcf98ad5dfa5af50e0556b3773a03b56f59 url: https://src.opensuse.org/pool/python-pygit2 revision: factory diff --git a/build.specials.obscpio b/build.specials.obscpio index 8a42595..2be0cc6 100644 --- a/build.specials.obscpio +++ b/build.specials.obscpio @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a62b5149fe863f60bc19559e42c1372f634584c2b3e82a7103be03921ba94d87 -size 256 +oid sha256:62d7276b2f2c0d2ec7361743b1cdfb9b17354a28a6b0c0401d3fd4d146591148 +size 280 diff --git a/const-parents.patch b/const-parents.patch new file mode 100644 index 0000000..2669549 --- /dev/null +++ b/const-parents.patch @@ -0,0 +1,27 @@ + +--- + src/repository.c | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +--- a/src/repository.c ++++ b/src/repository.c +@@ -1065,7 +1065,8 @@ Repository_create_commit(Repository *sel + + err = git_commit_create(&oid, self->repo, update_ref, + py_author->signature, py_committer->signature, +- encoding, message, tree, parent_count, parents); ++ encoding, message, tree, parent_count, ++ (const git_commit **)parents); + if (err < 0) { + Error_set(err); + goto out; +@@ -1147,7 +1148,8 @@ Repository_create_commit_string(Reposito + + err = git_commit_create_buffer(&buf, self->repo, + py_author->signature, py_committer->signature, +- encoding, message, tree, parent_count, parents); ++ encoding, message, tree, parent_count, ++ (const git_commit **)parents); + if (err < 0) { + Error_set(err); + goto out; diff --git a/pygit2-1.15.1.tar.gz b/pygit2-1.15.1.tar.gz deleted file mode 100644 index 94277a1..0000000 --- a/pygit2-1.15.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e1fe8b85053d9713043c81eccc74132f9e5b603f209e80733d7955eafd22eb9d -size 768818 diff --git a/pygit2-1.16.0.tar.gz b/pygit2-1.16.0.tar.gz new file mode 100644 index 0000000..586d40d --- /dev/null +++ b/pygit2-1.16.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7b29a6796baa15fc89d443ac8d51775411d9b1e5b06dc40d458c56c8576b48a2 +size 768597 diff --git a/python-pygit2.changes b/python-pygit2.changes index 6486fca..9680a02 100644 --- a/python-pygit2.changes +++ b/python-pygit2.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Tue Nov 5 10:50:38 UTC 2024 - Matej Cepl + +- Update to 1.16.0: + - 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 +- Add const-parents.patch to fix FTBFS (gh#libgit2/pygit2!1324). + ------------------------------------------------------------------- Mon Aug 5 11:21:06 UTC 2024 - John Paul Adrian Glaubitz diff --git a/python-pygit2.spec b/python-pygit2.spec index c424806..7f7f63e 100644 --- a/python-pygit2.spec +++ b/python-pygit2.spec @@ -19,14 +19,18 @@ %{?sle15_python_module_pythons} Name: python-pygit2 -Version: 1.15.1 +Version: 1.16.0 Release: 0 Summary: Python bindings for libgit2 License: GPL-2.0-only URL: https://github.com/libgit2/pygit2 Source: https://files.pythonhosted.org/packages/source/p/pygit2/pygit2-%{version}.tar.gz +# PATCH-FIX-UPSTREAM const-parents.patch gh#libgit2/pygit2!1324 mcepl@suse.com +# use correct type of git_commit_create() function +Patch0: const-parents.patch +BuildRequires: %{python_module base >= 3.10} BuildRequires: %{python_module cached-property} -BuildRequires: %{python_module cffi >= 1.16.0} +BuildRequires: %{python_module cffi >= 1.17.0} BuildRequires: %{python_module devel} BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} @@ -39,7 +43,7 @@ BuildRequires: libgit2-devel >= 1.1 BuildRequires: libopenssl-devel BuildRequires: python-rpm-macros Requires: python-cached-property -%requires_eq python-cffi +Requires: python-cffi >= 1.17.0 %python_subpackages %description @@ -47,12 +51,6 @@ Bindings for libgit2, a linkable C library for the Git version-control system. %prep %autosetup -p1 -n pygit2-%{version} -%if %{?pkg_vcmp:%pkg_vcmp libgit2-devel < 1.8}%{!?pkg_vcmp:1} -%patch -P 3 -p1 -R -%patch -P 2 -p1 -R -%patch -P 1 -p1 -R -%patch -P 0 -p1 -R -%endif # do not add options to pytest rm pytest.ini From 8b8b111afcdebfe022117105947e69086f4d70e0e13aefe5de24d3a50b8cb349 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Tue, 4 Feb 2025 08:51:26 +0000 Subject: [PATCH 3/6] [info=a5914906eaa05210f799fdf6fdcc42fdc17a603d103035bf6c26729334b00c0c] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygit2?expand=0&rev=99 --- _scmsync.obsinfo | 4 ++-- build.specials.obscpio | 2 +- const-parents.patch | 27 --------------------------- pygit2-1.16.0.tar.gz | 3 --- python-pygit2.changes | 15 +++++++++++++++ python-pygit2.spec | 5 +---- 6 files changed, 19 insertions(+), 37 deletions(-) delete mode 100644 const-parents.patch delete mode 100644 pygit2-1.16.0.tar.gz diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo index 8675986..d9dd1a6 100644 --- a/_scmsync.obsinfo +++ b/_scmsync.obsinfo @@ -1,4 +1,4 @@ -mtime: 1730817737 -commit: c0760b117fc40c177bf755bf33d8afcf98ad5dfa5af50e0556b3773a03b56f59 +mtime: 1738659081 +commit: a5914906eaa05210f799fdf6fdcc42fdc17a603d103035bf6c26729334b00c0c url: https://src.opensuse.org/pool/python-pygit2 revision: factory diff --git a/build.specials.obscpio b/build.specials.obscpio index 2be0cc6..81fd997 100644 --- a/build.specials.obscpio +++ b/build.specials.obscpio @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:62d7276b2f2c0d2ec7361743b1cdfb9b17354a28a6b0c0401d3fd4d146591148 +oid sha256:ed0c3fae9ccb7f3514e7ac6c73358e60bd8909553729f7cff91abdf1e3494b21 size 280 diff --git a/const-parents.patch b/const-parents.patch deleted file mode 100644 index 2669549..0000000 --- a/const-parents.patch +++ /dev/null @@ -1,27 +0,0 @@ - ---- - src/repository.c | 6 ++++-- - 1 file changed, 4 insertions(+), 2 deletions(-) - ---- a/src/repository.c -+++ b/src/repository.c -@@ -1065,7 +1065,8 @@ Repository_create_commit(Repository *sel - - err = git_commit_create(&oid, self->repo, update_ref, - py_author->signature, py_committer->signature, -- encoding, message, tree, parent_count, parents); -+ encoding, message, tree, parent_count, -+ (const git_commit **)parents); - if (err < 0) { - Error_set(err); - goto out; -@@ -1147,7 +1148,8 @@ Repository_create_commit_string(Reposito - - err = git_commit_create_buffer(&buf, self->repo, - py_author->signature, py_committer->signature, -- encoding, message, tree, parent_count, parents); -+ encoding, message, tree, parent_count, -+ (const git_commit **)parents); - if (err < 0) { - Error_set(err); - goto out; diff --git a/pygit2-1.16.0.tar.gz b/pygit2-1.16.0.tar.gz deleted file mode 100644 index 586d40d..0000000 --- a/pygit2-1.16.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7b29a6796baa15fc89d443ac8d51775411d9b1e5b06dc40d458c56c8576b48a2 -size 768597 diff --git a/python-pygit2.changes b/python-pygit2.changes index 9680a02..587223e 100644 --- a/python-pygit2.changes +++ b/python-pygit2.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Wed Jan 29 13:52:23 UTC 2025 - Matej Cepl + +- Remove upstreamed const-parents.patch. + +------------------------------------------------------------------- +Tue Jan 28 09:21:54 UTC 2025 - Markéta Machová + +- Update to 1.17.0 + * Upgrade to libgit2 1.9 + * Add certificate_check callback to Remote.ls_remotes(...) + * Fix build with GCC 14 + * Documentation: fix typo in Repository.status(...) docstring + * Fix tests with Python 3.13.1 + ------------------------------------------------------------------- Tue Nov 5 10:50:38 UTC 2024 - Matej Cepl diff --git a/python-pygit2.spec b/python-pygit2.spec index 7f7f63e..9f7e44a 100644 --- a/python-pygit2.spec +++ b/python-pygit2.spec @@ -19,15 +19,12 @@ %{?sle15_python_module_pythons} Name: python-pygit2 -Version: 1.16.0 +Version: 1.17.0 Release: 0 Summary: Python bindings for libgit2 License: GPL-2.0-only URL: https://github.com/libgit2/pygit2 Source: https://files.pythonhosted.org/packages/source/p/pygit2/pygit2-%{version}.tar.gz -# PATCH-FIX-UPSTREAM const-parents.patch gh#libgit2/pygit2!1324 mcepl@suse.com -# use correct type of git_commit_create() function -Patch0: const-parents.patch BuildRequires: %{python_module base >= 3.10} BuildRequires: %{python_module cached-property} BuildRequires: %{python_module cffi >= 1.17.0} From f86679741f548f9107b8262f12791b027ad663cbfc6386a145964cc5939a295d Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 5 May 2025 06:38:29 +0000 Subject: [PATCH 4/6] [info=75d2cb71414110ccf67c23dc7b67ee0b99448d5a8d76a34fc70cd03e01433d4d] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygit2?expand=0&rev=100 --- _scmsync.obsinfo | 6 +++--- build.specials.obscpio | 2 +- python-pygit2.spec | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo index d9dd1a6..059e21b 100644 --- a/_scmsync.obsinfo +++ b/_scmsync.obsinfo @@ -1,4 +1,4 @@ -mtime: 1738659081 -commit: a5914906eaa05210f799fdf6fdcc42fdc17a603d103035bf6c26729334b00c0c -url: https://src.opensuse.org/pool/python-pygit2 +mtime: 1746427090 +commit: 75d2cb71414110ccf67c23dc7b67ee0b99448d5a8d76a34fc70cd03e01433d4d +url: https://src.opensuse.org/mcepl/python-pygit2 revision: factory diff --git a/build.specials.obscpio b/build.specials.obscpio index 81fd997..9039853 100644 --- a/build.specials.obscpio +++ b/build.specials.obscpio @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ed0c3fae9ccb7f3514e7ac6c73358e60bd8909553729f7cff91abdf1e3494b21 +oid sha256:dee9ff8a0b9c433cb62b60d3dfa23f2920345ea271fe1c6fca6b6f647f5690a4 size 280 diff --git a/python-pygit2.spec b/python-pygit2.spec index 9f7e44a..ec6204a 100644 --- a/python-pygit2.spec +++ b/python-pygit2.spec @@ -1,7 +1,7 @@ # # spec file for package python-pygit2 # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2019 Neal Gompa . # # All modifications and additions to the file contributed by third parties From 82166c1cd628f1c906242785c6477f9c0577231ff88a95dae0be9d6cf79508a1 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 11 Aug 2025 17:57:46 +0000 Subject: [PATCH 5/6] Remove *.obs* files OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygit2?expand=0&rev=101 --- _scmsync.obsinfo | 4 ---- build.specials.obscpio | 3 --- python-pygit2.spec | 2 +- 3 files changed, 1 insertion(+), 8 deletions(-) delete mode 100644 _scmsync.obsinfo delete mode 100644 build.specials.obscpio diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo deleted file mode 100644 index 059e21b..0000000 --- a/_scmsync.obsinfo +++ /dev/null @@ -1,4 +0,0 @@ -mtime: 1746427090 -commit: 75d2cb71414110ccf67c23dc7b67ee0b99448d5a8d76a34fc70cd03e01433d4d -url: https://src.opensuse.org/mcepl/python-pygit2 -revision: factory diff --git a/build.specials.obscpio b/build.specials.obscpio deleted file mode 100644 index 9039853..0000000 --- a/build.specials.obscpio +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dee9ff8a0b9c433cb62b60d3dfa23f2920345ea271fe1c6fca6b6f647f5690a4 -size 280 diff --git a/python-pygit2.spec b/python-pygit2.spec index ec6204a..696946b 100644 --- a/python-pygit2.spec +++ b/python-pygit2.spec @@ -1,7 +1,7 @@ # # spec file for package python-pygit2 # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # Copyright (c) 2019 Neal Gompa . # # All modifications and additions to the file contributed by third parties From 9eff18990a10578f8977a5637541266ba785a13f2659b44d4081f6a79bf22282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 2 Sep 2025 13:10:02 +0000 Subject: [PATCH 6/6] Accepting request 1302427 from home:sthackarajan:branches:devel:languages:python - Update to 1.18.2 OBS-URL: https://build.opensuse.org/request/show/1302427 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygit2?expand=0&rev=102 --- pygit2-1.17.0.tar.gz | 3 --- pygit2-1.18.2.tar.gz | 3 +++ python-pygit2.changes | 51 +++++++++++++++++++++++++++++++++++++++++++ python-pygit2.spec | 5 +++-- 4 files changed, 57 insertions(+), 5 deletions(-) delete mode 100644 pygit2-1.17.0.tar.gz create mode 100644 pygit2-1.18.2.tar.gz diff --git a/pygit2-1.17.0.tar.gz b/pygit2-1.17.0.tar.gz deleted file mode 100644 index 069f030..0000000 --- a/pygit2-1.17.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fa2bc050b2c2d3e73b54d6d541c792178561a344f07e409f532d5bb97ac7b894 -size 769002 diff --git a/pygit2-1.18.2.tar.gz b/pygit2-1.18.2.tar.gz new file mode 100644 index 0000000..3cfe62c --- /dev/null +++ b/pygit2-1.18.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eca87e0662c965715b7f13491d5e858df2c0908341dee9bde2bc03268e460f55 +size 797200 diff --git a/python-pygit2.changes b/python-pygit2.changes index 587223e..e3b7821 100644 --- a/python-pygit2.changes +++ b/python-pygit2.changes @@ -1,3 +1,54 @@ +------------------------------------------------------------------- +Tue Sep 2 10:47:35 UTC 2025 - Sangeetha Thackarajan + +- Update 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(...)` + + 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: + - At some point in the future `use_deprecated=False` in `Repository.merge_file_from_index(..., 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(...)` + ------------------------------------------------------------------- Wed Jan 29 13:52:23 UTC 2025 - Matej Cepl diff --git a/python-pygit2.spec b/python-pygit2.spec index 696946b..242da59 100644 --- a/python-pygit2.spec +++ b/python-pygit2.spec @@ -1,6 +1,7 @@ # # spec file for package python-pygit2 # +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2025 SUSE LLC and contributors # Copyright (c) 2019 Neal Gompa . # @@ -19,7 +20,7 @@ %{?sle15_python_module_pythons} Name: python-pygit2 -Version: 1.17.0 +Version: 1.18.2 Release: 0 Summary: Python bindings for libgit2 License: GPL-2.0-only @@ -36,7 +37,7 @@ BuildRequires: %{python_module wheel} BuildRequires: ca-certificates BuildRequires: ca-certificates-mozilla BuildRequires: fdupes -BuildRequires: libgit2-devel >= 1.1 +BuildRequires: libgit2-devel >= 1.9.0 BuildRequires: libopenssl-devel BuildRequires: python-rpm-macros Requires: python-cached-property