Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pygit2 for openSUSE:Factory checked in at 2024-03-01 23:37:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pygit2 (Old) and /work/SRC/openSUSE:Factory/.python-pygit2.new.1770 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pygit2" Fri Mar 1 23:37:46 2024 rev:35 rq:1153847 version:1.14.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pygit2/python-pygit2.changes 2024-01-31 23:54:43.823111511 +0100 +++ /work/SRC/openSUSE:Factory/.python-pygit2.new.1770/python-pygit2.changes 2024-03-01 23:37:48.046222340 +0100 @@ -1,0 +2,10 @@ +Fri Mar 1 10:14:35 UTC 2024 - Dirk Müller <dmuel...@suse.com> + +- 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` + +------------------------------------------------------------------- Old: ---- pygit2-1.14.0.tar.gz New: ---- pygit2-1.14.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pygit2.spec ++++++ --- /var/tmp/diff_new_pack.dx6hUS/_old 2024-03-01 23:37:48.790249244 +0100 +++ /var/tmp/diff_new_pack.dx6hUS/_new 2024-03-01 23:37:48.794249389 +0100 @@ -19,7 +19,7 @@ %{?sle15_python_module_pythons} Name: python-pygit2 -Version: 1.14.0 +Version: 1.14.1 Release: 0 Summary: Python bindings for libgit2 License: GPL-2.0-only ++++++ pygit2-1.14.0.tar.gz -> pygit2-1.14.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygit2-1.14.0/AUTHORS.md new/pygit2-1.14.1/AUTHORS.md --- old/pygit2-1.14.0/AUTHORS.md 2024-01-26 11:51:51.982942300 +0100 +++ new/pygit2-1.14.1/AUTHORS.md 2024-02-10 11:50:23.546887000 +0100 @@ -161,6 +161,7 @@ Erik van Zijst Fabrice Salvaire Ferengee + Florian Weimer Frazer McLean Gustavo Di Pietro Holger Frey diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygit2-1.14.0/CHANGELOG.md new/pygit2-1.14.1/CHANGELOG.md --- old/pygit2-1.14.0/CHANGELOG.md 2024-01-26 11:36:01.607850600 +0100 +++ new/pygit2-1.14.1/CHANGELOG.md 2024-02-10 11:46:31.186264000 +0100 @@ -1,7 +1,23 @@ +# 1.14.1 (2024-02-10) + +- Update wheels to libgit2 v1.7.2 + +- Now `Object.filemode` returns `enums.FileMode` and `Reference.type` returns + `enums.ReferenceType` + [#1273](https://github.com/libgit2/pygit2/pull/1273) + +- Fix tests on Fedora 40 + [#1275](https://github.com/libgit2/pygit2/pull/1275) + +Deprecations: + +- Deprecate `ReferenceType.OID`, use `ReferenceType.DIRECT` +- Deprecate `ReferenceType.LISTALL`, use `ReferenceType.ALL` + # 1.14.0 (2024-01-26) - Drop support for Python 3.8 -- Add Linux wheels for musl on x86_64 +- Add Linux wheels for musl on x86\_64 [#1266](https://github.com/libgit2/pygit2/pull/1266) - New `Repository.submodules` namespace [#1250](https://github.com/libgit2/pygit2/pull/1250) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygit2-1.14.0/Makefile new/pygit2-1.14.1/Makefile --- old/pygit2-1.14.0/Makefile 2024-01-23 16:24:03.922692000 +0100 +++ new/pygit2-1.14.1/Makefile 2024-02-08 09:07:49.457925800 +0100 @@ -1,7 +1,7 @@ .PHONY: build html build: - OPENSSL_VERSION=3.1.4 LIBSSH2_VERSION=1.11.0 LIBGIT2_VERSION=1.7.1 sh build.sh + OPENSSL_VERSION=3.1.5 LIBSSH2_VERSION=1.11.0 LIBGIT2_VERSION=1.7.2 sh build.sh html: build make -C docs html diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygit2-1.14.0/PKG-INFO new/pygit2-1.14.1/PKG-INFO --- old/pygit2-1.14.0/PKG-INFO 2024-01-26 17:15:34.431048400 +0100 +++ new/pygit2-1.14.1/PKG-INFO 2024-02-10 19:49:03.387134300 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: pygit2 -Version: 1.14.0 +Version: 1.14.1 Summary: Python bindings for libgit2. Home-page: https://github.com/libgit2/pygit2 Maintainer: J. David Ibáñez diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygit2-1.14.0/build.sh new/pygit2-1.14.1/build.sh --- old/pygit2-1.14.0/build.sh 2024-01-23 12:49:26.300498500 +0100 +++ new/pygit2-1.14.1/build.sh 2024-02-08 09:08:56.450273800 +0100 @@ -22,14 +22,14 @@ # # sh build.sh # -# Build libgit2 1.7.1 (will use libssh2 if available), then build pygit2 +# Build libgit2 1.7.2 (will use libssh2 if available), then build pygit2 # inplace: # -# LIBGIT2_VERSION=1.7.1 sh build.sh +# LIBGIT2_VERSION=1.7.2 sh build.sh # -# Build libssh2 1.11.0 and libgit2 1.7.1, then build pygit2 inplace: +# Build libssh2 1.11.0 and libgit2 1.7.2, then build pygit2 inplace: # -# LIBSSH2_VERSION=1.11.0 LIBGIT2_VERSION=1.7.1 sh build.sh +# LIBSSH2_VERSION=1.11.0 LIBGIT2_VERSION=1.7.2 sh build.sh # # Build inplace and run the tests: # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygit2-1.14.0/pygit2/_build.py new/pygit2-1.14.1/pygit2/_build.py --- old/pygit2-1.14.0/pygit2/_build.py 2024-01-26 11:36:20.319185700 +0100 +++ new/pygit2-1.14.1/pygit2/_build.py 2024-02-10 11:47:14.170375600 +0100 @@ -34,7 +34,7 @@ # # The version number of pygit2 # -__version__ = '1.14.0' +__version__ = '1.14.1' # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygit2-1.14.0/pygit2/_pygit2.pyi new/pygit2-1.14.1/pygit2/_pygit2.pyi --- old/pygit2-1.14.0/pygit2/_pygit2.pyi 2024-01-23 12:49:26.305498600 +0100 +++ new/pygit2-1.14.1/pygit2/_pygit2.pyi 2024-01-30 18:29:27.185924300 +0100 @@ -15,6 +15,7 @@ ObjectType, Option, ReferenceFilter, + ReferenceType, ResetMode, SortMode, ) @@ -34,7 +35,7 @@ class Object: _pointer: bytes - filemode: int + filemode: FileMode hex: str id: Oid name: str | None @@ -69,7 +70,7 @@ raw_target: Oid | bytes shorthand: str target: Oid | str - type: int + type: ReferenceType def __init__(self, *args) -> None: ... def delete(self) -> None: ... def log(self) -> Iterator[RefLogEntry]: ... diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygit2-1.14.0/pygit2/enums.py new/pygit2-1.14.1/pygit2/enums.py --- old/pygit2-1.14.0/pygit2/enums.py 2024-01-24 10:29:15.039344000 +0100 +++ new/pygit2-1.14.1/pygit2/enums.py 2024-01-30 18:29:27.188924300 +0100 @@ -1004,10 +1004,23 @@ class ReferenceType(IntFlag): """ Basic type of any Git reference. """ - INVALID = _pygit2.GIT_REF_INVALID - OID = _pygit2.GIT_REF_OID - SYMBOLIC = _pygit2.GIT_REF_SYMBOLIC - LISTALL = _pygit2.GIT_REF_LISTALL + INVALID = C.GIT_REFERENCE_INVALID + "Invalid reference" + + DIRECT = C.GIT_REFERENCE_DIRECT + "A reference that points at an object id" + + SYMBOLIC = C.GIT_REFERENCE_SYMBOLIC + "A reference that points at another reference" + + ALL = C.GIT_REFERENCE_ALL + "Bitwise OR of (DIRECT | SYMBOLIC)" + + # Deprecated entries + OID = DIRECT + "Deprecated, use DIRECT instead" + LISTALL = ALL + "Deprecated, use ALL instead" class RepositoryInitFlag(IntFlag): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygit2-1.14.0/pyproject.toml new/pygit2-1.14.1/pyproject.toml --- old/pygit2-1.14.0/pyproject.toml 2024-01-23 16:24:03.922692000 +0100 +++ new/pygit2-1.14.1/pyproject.toml 2024-02-08 09:11:49.082840000 +0100 @@ -7,7 +7,7 @@ archs = ["auto"] build-frontend = "default" dependency-versions = "pinned" -environment = {LIBGIT2_VERSION="1.7.1", LIBSSH2_VERSION="1.11.0", OPENSSL_VERSION="3.1.4", LIBGIT2="/project/ci"} +environment = {LIBGIT2_VERSION="1.7.2", LIBSSH2_VERSION="1.11.0", OPENSSL_VERSION="3.1.5", LIBGIT2="/project/ci"} before-all = "sh build.sh" @@ -21,5 +21,5 @@ [tool.cibuildwheel.macos] archs = ["universal2"] -environment = {LIBGIT2_VERSION="1.7.1", LIBSSH2_VERSION="1.11.0", OPENSSL_VERSION="3.1.4", LIBGIT2="/Users/runner/work/pygit2/pygit2/ci"} +environment = {LIBGIT2_VERSION="1.7.2", LIBSSH2_VERSION="1.11.0", OPENSSL_VERSION="3.1.5", LIBGIT2="/Users/runner/work/pygit2/pygit2/ci"} repair-wheel-command = "DYLD_LIBRARY_PATH=/Users/runner/work/pygit2/pygit2/ci/lib delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygit2-1.14.0/src/object.c new/pygit2-1.14.1/src/object.c --- old/pygit2-1.14.0/src/object.c 2024-01-24 10:28:20.398145000 +0100 +++ new/pygit2-1.14.1/src/object.c 2024-01-30 18:29:27.200924600 +0100 @@ -40,6 +40,7 @@ extern PyTypeObject CommitType; extern PyTypeObject BlobType; extern PyTypeObject TagType; +extern PyObject *FileModeEnum; PyTypeObject ObjectType; @@ -159,7 +160,7 @@ } PyDoc_STRVAR(Object_name__doc__, - "Name (will be None if the object was not reached trough a tree)"); + "Name (or None if the object was not reached through a tree)"); PyObject * Object_name__get__(Object *self) { @@ -181,14 +182,14 @@ } PyDoc_STRVAR(Object_filemode__doc__, - "Filemode (will be None if the object was not reached trough a tree)"); + "An enums.FileMode constant (or None if the object was not reached through a tree)"); PyObject * Object_filemode__get__(Object *self) { if (self->entry == NULL) Py_RETURN_NONE; - return PyLong_FromLong(git_tree_entry_filemode(self->entry)); + return pygit2_enum(FileModeEnum, git_tree_entry_filemode(self->entry)); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygit2-1.14.0/src/pygit2.c new/pygit2-1.14.1/src/pygit2.c --- old/pygit2-1.14.0/src/pygit2.c 2024-01-24 10:28:20.399145000 +0100 +++ new/pygit2-1.14.1/src/pygit2.c 2024-01-30 18:29:27.204924600 +0100 @@ -48,6 +48,7 @@ PyObject *FileStatusEnum; PyObject *MergeAnalysisEnum; PyObject *MergePreferenceEnum; +PyObject *ReferenceTypeEnum; extern PyTypeObject RepositoryType; extern PyTypeObject OdbType; @@ -377,6 +378,7 @@ Py_CLEAR(FileStatusEnum); Py_CLEAR(MergeAnalysisEnum); Py_CLEAR(MergePreferenceEnum); + Py_CLEAR(ReferenceTypeEnum); } PyDoc_STRVAR(_cache_enums__doc__, @@ -411,6 +413,7 @@ CACHE_PYGIT2_ENUM(FileStatus); CACHE_PYGIT2_ENUM(MergeAnalysis); CACHE_PYGIT2_ENUM(MergePreference); + CACHE_PYGIT2_ENUM(ReferenceType); #undef CACHE_PYGIT2_ENUM @@ -606,13 +609,14 @@ ADD_TYPE(m, Reference) ADD_TYPE(m, RefLogEntry) ADD_TYPE(m, Note) + ADD_CONSTANT_INT(m, GIT_REFERENCES_ALL) + ADD_CONSTANT_INT(m, GIT_REFERENCES_BRANCHES) + ADD_CONSTANT_INT(m, GIT_REFERENCES_TAGS) + /* libgit2 deprecated enums */ ADD_CONSTANT_INT(m, GIT_REF_INVALID) ADD_CONSTANT_INT(m, GIT_REF_OID) ADD_CONSTANT_INT(m, GIT_REF_SYMBOLIC) ADD_CONSTANT_INT(m, GIT_REF_LISTALL) - ADD_CONSTANT_INT(m, GIT_REFERENCES_ALL) - ADD_CONSTANT_INT(m, GIT_REFERENCES_BRANCHES) - ADD_CONSTANT_INT(m, GIT_REFERENCES_TAGS) /* * RevSpec @@ -622,7 +626,7 @@ ADD_CONSTANT_INT(m, GIT_REVSPEC_SINGLE) ADD_CONSTANT_INT(m, GIT_REVSPEC_RANGE) ADD_CONSTANT_INT(m, GIT_REVSPEC_MERGE_BASE) - /* Deprecated enums */ + /* libgit2 deprecated enums */ ADD_CONSTANT_INT(m, GIT_REVPARSE_SINGLE) ADD_CONSTANT_INT(m, GIT_REVPARSE_RANGE) ADD_CONSTANT_INT(m, GIT_REVPARSE_MERGE_BASE) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygit2-1.14.0/src/reference.c new/pygit2-1.14.1/src/reference.c --- old/pygit2-1.14.0/src/reference.c 2024-01-24 10:28:20.400144800 +0100 +++ new/pygit2-1.14.1/src/reference.c 2024-01-30 18:29:27.205924500 +0100 @@ -43,6 +43,7 @@ extern PyTypeObject RefLogEntryType; extern PyTypeObject RepositoryType; extern PyTypeObject SignatureType; +extern PyObject *ReferenceTypeEnum; PyTypeObject ReferenceType; @@ -424,7 +425,7 @@ } PyDoc_STRVAR(Reference_type__doc__, - "Type, either GIT_REF_OID or GIT_REF_SYMBOLIC."); + "An enums.ReferenceType constant (either OID or SYMBOLIC)."); PyObject * Reference_type__get__(Reference *self) @@ -433,7 +434,8 @@ CHECK_REFERENCE(self); c_type = git_reference_type(self->reference); - return PyLong_FromLong(c_type); + + return pygit2_enum(ReferenceTypeEnum, c_type); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygit2-1.14.0/test/test_refs.py new/pygit2-1.14.1/test/test_refs.py --- old/pygit2-1.14.0/test/test_refs.py 2024-01-24 10:27:30.675751400 +0100 +++ new/pygit2-1.14.1/test/test_refs.py 2024-01-30 18:29:27.216924700 +0100 @@ -88,7 +88,8 @@ def test_refs_get_type(testrepo): reference = testrepo.references.get('refs/heads/master') - assert reference.type == ReferenceType.OID + assert reference.type == ReferenceType.DIRECT + assert reference.type == ReferenceType.OID # deprecated def test_refs_get_target(testrepo): reference = testrepo.references.get('HEAD') @@ -167,7 +168,8 @@ reference = testrepo.references.get('HEAD') assert reference.type == ReferenceType.SYMBOLIC reference = reference.resolve() - assert reference.type == ReferenceType.OID + assert reference.type == ReferenceType.DIRECT + assert reference.type == ReferenceType.OID # deprecated assert reference.target.hex == LAST_COMMIT def test_refs_resolve_identity(testrepo): @@ -468,7 +470,8 @@ def test_reference_get_type(testrepo): reference = testrepo.lookup_reference('refs/heads/master') - assert reference.type == ReferenceType.OID + assert reference.type == ReferenceType.DIRECT + assert reference.type == ReferenceType.OID # deprecated def test_get_target(testrepo): reference = testrepo.lookup_reference('HEAD') @@ -548,7 +551,8 @@ reference = testrepo.lookup_reference('HEAD') assert reference.type == ReferenceType.SYMBOLIC reference = reference.resolve() - assert reference.type == ReferenceType.OID + assert reference.type == ReferenceType.DIRECT + assert reference.type == ReferenceType.OID # deprecated assert reference.target.hex == LAST_COMMIT def test_reference_resolve_identity(testrepo): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pygit2-1.14.0/test/test_remote.py new/pygit2-1.14.1/test/test_remote.py --- old/pygit2-1.14.0/test/test_remote.py 2024-01-24 10:27:30.676751400 +0100 +++ new/pygit2-1.14.1/test/test_remote.py 2024-02-01 14:31:54.930352400 +0100 @@ -39,7 +39,6 @@ REMOTE_FETCHSPEC_SRC = 'refs/heads/*' REMOTE_FETCHSPEC_DST = 'refs/remotes/origin/*' REMOTE_REPO_OBJECTS = 30 -REMOTE_REPO_BYTES = 2758 REMOTE_FETCHTEST_FETCHSPECS = ["refs/tags/v1.13.2"] REMOTE_REPO_FETCH_ALL_OBJECTS = 13276 REMOTE_REPO_FETCH_HEAD_COMMIT_OBJECTS = 238 @@ -215,7 +214,8 @@ def test_fetch(emptyrepo): remote = emptyrepo.remotes[0] stats = remote.fetch() - assert stats.received_bytes == REMOTE_REPO_BYTES + assert stats.received_bytes > 2700 + assert stats.received_bytes < 2800 assert stats.indexed_objects == REMOTE_REPO_OBJECTS assert stats.received_objects == REMOTE_REPO_OBJECTS