From 5e36294a53f552ffc9cacc6f6d553585df128ed5bf1980115c632b2017dfdb7d Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 30 Jan 2024 18:13:05 +0000 Subject: [PATCH] - 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` OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygit2?expand=0&rev=82 --- pygit2-1.13.3.tar.gz | 3 --- pygit2-1.14.0.tar.gz | 3 +++ python-pygit2.changes | 35 +++++++++++++++++++++++++++++++++++ python-pygit2.spec | 12 +++++++----- 4 files changed, 45 insertions(+), 8 deletions(-) delete mode 100644 pygit2-1.13.3.tar.gz create mode 100644 pygit2-1.14.0.tar.gz diff --git a/pygit2-1.13.3.tar.gz b/pygit2-1.13.3.tar.gz deleted file mode 100644 index 9d85f74..0000000 --- a/pygit2-1.13.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0257c626011e4afb99bdb20875443f706f84201d4c92637f02215b98eac13ded -size 752098 diff --git a/pygit2-1.14.0.tar.gz b/pygit2-1.14.0.tar.gz new file mode 100644 index 0000000..62c6319 --- /dev/null +++ b/pygit2-1.14.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f529ed9660edbf9b625ccae7e51098ef73662e61496609009772d4627a826aa8 +size 765357 diff --git a/python-pygit2.changes b/python-pygit2.changes index acb3e95..4820881 100644 --- a/python-pygit2.changes +++ b/python-pygit2.changes @@ -1,3 +1,38 @@ +------------------------------------------------------------------- +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 diff --git a/python-pygit2.spec b/python-pygit2.spec index 55a63c6..72841e5 100644 --- a/python-pygit2.spec +++ b/python-pygit2.spec @@ -19,7 +19,7 @@ %{?sle15_python_module_pythons} Name: python-pygit2 -Version: 1.13.3 +Version: 1.14.0 Release: 0 Summary: Python bindings for libgit2 License: GPL-2.0-only @@ -28,8 +28,10 @@ Source: https://files.pythonhosted.org/packages/source/p/pygit2/pygit2-% BuildRequires: %{python_module cached-property} BuildRequires: %{python_module cffi >= 1.4.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 @@ -51,10 +53,10 @@ rm pytest.ini %build export CFLAGS="%{optflags} -fno-strict-aliasing" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand rm -rf %{buildroot}%{$python_sitearch}/pygit2/decl/ %python_expand %fdupes %{buildroot}%{$python_sitearch} @@ -66,8 +68,8 @@ rm -rf pygit2 %files %{python_files} %license COPYING -%doc README.rst +%doc README.md %{python_sitearch}/pygit2 -%{python_sitearch}/pygit2-%{version}*-info +%{python_sitearch}/pygit2-%{version}.dist-info %changelog