mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
dev-python/pygit2: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,3 +1 @@
|
||||
DIST pygit2-1.6.1.tar.gz 258338 BLAKE2B dc223e2a5231728c42ca7e0581483731fbab6ee090cf4aeeb27f186973b3c753fdf54c89679a88b97d834d717135f9b8f9a2adf492ed8572affa938c79d0f905 SHA512 67a78313493ba096cbae6805bda861495f33644fd180b5fb1cd99dcd226ef5a09ee85bd27d04d0697ef15503a4e902aa1384980870551f430fd9560ac949fe2f
|
||||
DIST pygit2-1.7.0.tar.gz 276292 BLAKE2B 6091e2916c4986cb545f23d3a31f262666f0349661ccc48769414e888d0ede48af3a80483b4638a3a2275b74ed9b42113bdeae678f03d76caa7e796c6011b50c SHA512 3a8654036d0ab875898ce60e81bcab48bdb6d6bd63c29dc98272c71b5c82391e3186da61083fba09faf722e176fed5c592a36edb53ae0b957726e74646d25616
|
||||
DIST pygit2-1.7.1.tar.gz 281791 BLAKE2B 51f7f23752acf0abf6000f2262019db7503506267f0f5306bd53e0e15378447d2da564818c1b6efccc4759587aba6b4d7b142c760e4e2796445cd6056e949825 SHA512 a6232039b6364c7a0905aba20f7e27b43892b7067fa95fdd464438869453360ecdb885f2012cdf0eb0734c91dc79b60db894d1d0fee81922b9fb3cf920950937
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
From dcde9eff5950492ab0d2565a07fd18d765332a96 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?J=2E=20David=20Ib=C3=A1=C3=B1ez?= <jdavid.ibp@gmail.com>
|
||||
Date: Thu, 16 Sep 2021 11:19:04 +0200
|
||||
Subject: [PATCH] Upgrade to libgit2 1.2
|
||||
|
||||
Closes #1089
|
||||
---
|
||||
Makefile | 2 +-
|
||||
build.sh | 14 +++++++-------
|
||||
pygit2/decl/remote.h | 2 ++
|
||||
src/types.h | 4 ++--
|
||||
10 files changed, 29 insertions(+), 25 deletions(-)
|
||||
|
||||
diff --git a/pygit2/decl/remote.h b/pygit2/decl/remote.h
|
||||
index ff84371c3e1ce81a7e9914d4d4592638f41376bb..4e912c065cd6eaf19ef6d0304b0fd8f646edbff4 100644
|
||||
--- a/pygit2/decl/remote.h
|
||||
+++ b/pygit2/decl/remote.h
|
||||
@@ -23,6 +23,7 @@ typedef struct {
|
||||
|
||||
typedef int (*git_push_negotiation)(const git_push_update **updates, size_t len, void *payload);
|
||||
typedef int (*git_push_update_reference_cb)(const char *refname, const char *status, void *data);
|
||||
+typedef int (*git_remote_ready_cb)(git_remote *remote, int direction, void *payload);
|
||||
typedef int (*git_url_resolve_cb)(git_buf *url_resolved, const char *url, int direction, void *payload);
|
||||
|
||||
struct git_remote_callbacks {
|
||||
@@ -38,6 +39,7 @@ struct git_remote_callbacks {
|
||||
git_push_update_reference_cb push_update_reference;
|
||||
git_push_negotiation push_negotiation;
|
||||
git_transport_cb transport;
|
||||
+ git_remote_ready_cb remote_ready;
|
||||
void *payload;
|
||||
git_url_resolve_cb resolve_url;
|
||||
};
|
||||
diff --git a/src/types.h b/src/types.h
|
||||
index ff967b81f76688f8f0958638d99a06f7bbacb99c..89ad3a00149a1326c3edfa20d2d69d629cb1d2a2 100644
|
||||
--- a/src/types.h
|
||||
+++ b/src/types.h
|
||||
@@ -32,8 +32,8 @@
|
||||
#include <Python.h>
|
||||
#include <git2.h>
|
||||
|
||||
-#if !(LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR == 1)
|
||||
-#error You need a compatible libgit2 version (1.1.x)
|
||||
+#if !(LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR == 2)
|
||||
+#error You need a compatible libgit2 version (1.2.x)
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -1,40 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python bindings for libgit2"
|
||||
HOMEPAGE="https://github.com/libgit2/pygit2 https://pypi.org/project/pygit2/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2-with-linking-exception"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
RDEPEND="
|
||||
=dev-libs/libgit2-1.1*:=
|
||||
>=dev-python/cffi-1.0:=[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
|
||||
# unconditionally prevent it from using network
|
||||
sed -i -e '/has_network/s:True:False:' test/utils.py || die
|
||||
|
||||
# we need to move them away to prevent pytest from forcing '..'
|
||||
# for imports
|
||||
mkdir hack || die
|
||||
mv test hack/ || die
|
||||
ln -s hack/test test || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
pytest -vv hack/test || die
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python bindings for libgit2"
|
||||
HOMEPAGE="https://github.com/libgit2/pygit2 https://pypi.org/project/pygit2/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2-with-linking-exception"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
=dev-libs/libgit2-1.2*:=
|
||||
>=dev-python/cffi-1.0:=[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
local PATCHES=(
|
||||
"${FILESDIR}"/${P}-libgit2-1.2.0.patch
|
||||
)
|
||||
|
||||
distutils-r1_src_prepare
|
||||
|
||||
# unconditionally prevent it from using network
|
||||
sed -i -e '/has_network/s:True:False:' test/utils.py || die
|
||||
|
||||
# we need to move them away to prevent pytest from forcing '..'
|
||||
# for imports
|
||||
mkdir hack || die
|
||||
mv test hack/ || die
|
||||
ln -s hack/test test || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
epytest hack/test
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python bindings for libgit2"
|
||||
HOMEPAGE="https://github.com/libgit2/pygit2 https://pypi.org/project/pygit2/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2-with-linking-exception"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
RDEPEND="
|
||||
=dev-libs/libgit2-1.3*:=
|
||||
>=dev-python/cffi-1.0:=[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
|
||||
# unconditionally prevent it from using network
|
||||
sed -i -e '/has_network/s:True:False:' test/utils.py || die
|
||||
|
||||
# we need to move them away to prevent pytest from forcing '..'
|
||||
# for imports
|
||||
mkdir hack || die
|
||||
mv test hack/ || die
|
||||
ln -s hack/test test || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
epytest hack/test
|
||||
}
|
||||
Reference in New Issue
Block a user