2011-02-02 13:49:39 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-pygit2
|
|
|
|
#
|
2024-01-06 22:01:04 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2019-03-23 12:27:24 +01:00
|
|
|
# Copyright (c) 2019 Neal Gompa <ngompa13@gmail.com>.
|
2011-02-02 13:49:39 +01:00
|
|
|
#
|
|
|
|
# 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.
|
2012-04-24 11:14:51 +02:00
|
|
|
|
2019-03-23 12:40:49 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-02-02 13:49:39 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-01-06 22:01:04 +01:00
|
|
|
%{?sle15_python_module_pythons}
|
2011-12-09 13:10:44 +01:00
|
|
|
Name: python-pygit2
|
- Update to 1.15.1
* 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
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygit2?expand=0&rev=93
2024-06-19 13:29:50 +02:00
|
|
|
Version: 1.15.0
|
2011-02-02 13:49:39 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Python bindings for libgit2
|
2018-05-17 14:13:49 +02:00
|
|
|
License: GPL-2.0-only
|
|
|
|
URL: https://github.com/libgit2/pygit2
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pygit2/pygit2-%{version}.tar.gz
|
2020-05-06 10:08:09 +02:00
|
|
|
BuildRequires: %{python_module cached-property}
|
- Update to 1.15.1
* 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
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygit2?expand=0&rev=93
2024-06-19 13:29:50 +02:00
|
|
|
BuildRequires: %{python_module cffi >= 1.16.0}
|
2017-04-08 21:04:55 +02:00
|
|
|
BuildRequires: %{python_module devel}
|
- 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
2024-01-30 19:13:05 +01:00
|
|
|
BuildRequires: %{python_module pip}
|
2019-03-23 12:27:24 +01:00
|
|
|
BuildRequires: %{python_module pytest}
|
2017-04-08 21:04:55 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
- 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
2024-01-30 19:13:05 +01:00
|
|
|
BuildRequires: %{python_module wheel}
|
2019-03-23 12:27:24 +01:00
|
|
|
BuildRequires: ca-certificates
|
|
|
|
BuildRequires: ca-certificates-mozilla
|
2018-05-17 14:13:49 +02:00
|
|
|
BuildRequires: fdupes
|
2020-11-02 16:43:22 +01:00
|
|
|
BuildRequires: libgit2-devel >= 1.1
|
2018-05-17 14:13:49 +02:00
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-05-06 10:08:09 +02:00
|
|
|
Requires: python-cached-property
|
2018-05-17 14:13:49 +02:00
|
|
|
%requires_eq python-cffi
|
2017-04-08 21:04:55 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
2011-02-02 13:49:39 +01:00
|
|
|
%description
|
|
|
|
Bindings for libgit2, a linkable C library for the Git version-control system.
|
|
|
|
|
|
|
|
%prep
|
2024-05-02 18:40:21 +02:00
|
|
|
%autosetup -p1 -n pygit2-%{version}
|
|
|
|
%if %{?pkg_vcmp:%pkg_vcmp libgit2-devel < 1.8}%{!?pkg_vcmp:1}
|
2024-05-17 15:15:37 +02:00
|
|
|
%patch -P 3 -p1 -R
|
|
|
|
%patch -P 2 -p1 -R
|
2024-05-02 18:40:21 +02:00
|
|
|
%patch -P 1 -p1 -R
|
|
|
|
%patch -P 0 -p1 -R
|
2024-04-03 08:06:11 +02:00
|
|
|
%endif
|
2021-10-20 11:10:02 +02:00
|
|
|
|
2019-03-23 12:40:49 +01:00
|
|
|
# do not add options to pytest
|
|
|
|
rm pytest.ini
|
2011-02-02 13:49:39 +01:00
|
|
|
|
|
|
|
%build
|
2017-04-08 21:04:55 +02:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
- 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
2024-01-30 19:13:05 +01:00
|
|
|
%pyproject_wheel
|
2011-02-02 13:49:39 +01:00
|
|
|
|
|
|
|
%install
|
- 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
2024-01-30 19:13:05 +01:00
|
|
|
%pyproject_install
|
2019-05-15 20:35:11 +02:00
|
|
|
%python_expand rm -rf %{buildroot}%{$python_sitearch}/pygit2/decl/
|
2018-05-17 14:13:49 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2011-02-02 13:49:39 +01:00
|
|
|
|
2012-12-18 11:57:33 +01:00
|
|
|
%check
|
2019-09-12 14:59:59 +02:00
|
|
|
rm -rf pygit2
|
2019-12-03 10:46:47 +01:00
|
|
|
# test_no_context_lines failing on big endian
|
|
|
|
# https://github.com/libgit2/pygit2/issues/812
|
- Update to 1.15.1
* 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
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygit2?expand=0&rev=93
2024-06-19 13:29:50 +02:00
|
|
|
donttest="test_no_context_lines"
|
|
|
|
donttest="$donttest or test_push_options"
|
|
|
|
%pytest_arch -k "not ($donttest)"
|
2011-02-02 13:49:39 +01:00
|
|
|
|
2017-04-08 21:04:55 +02:00
|
|
|
%files %{python_files}
|
2018-05-17 14:13:49 +02:00
|
|
|
%license COPYING
|
- 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
2024-01-30 19:13:05 +01:00
|
|
|
%doc README.md
|
2023-03-21 21:35:02 +01:00
|
|
|
%{python_sitearch}/pygit2
|
- 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
2024-01-30 19:13:05 +01:00
|
|
|
%{python_sitearch}/pygit2-%{version}.dist-info
|
2011-02-02 13:49:39 +01:00
|
|
|
|
|
|
|
%changelog
|