1 |
commit: 5a112538b264c22884fbc5acff31595c782b66c9 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 5 22:10:59 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 5 23:19:11 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a112538 |
7 |
|
8 |
dev-python/pygit2: Clean old up |
9 |
|
10 |
dev-python/pygit2/Manifest | 1 - |
11 |
.../pygit2/files/pygit2-0.25.1-cffi-1.10.patch | 55 ---------------------- |
12 |
dev-python/pygit2/pygit2-0.25.1.ebuild | 30 ------------ |
13 |
3 files changed, 86 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/pygit2/Manifest b/dev-python/pygit2/Manifest |
16 |
index d612c14e31f..544d6a63916 100644 |
17 |
--- a/dev-python/pygit2/Manifest |
18 |
+++ b/dev-python/pygit2/Manifest |
19 |
@@ -1,2 +1 @@ |
20 |
-DIST pygit2-0.25.1.tar.gz 456580 BLAKE2B b7a9ce90076f2475df41f2e5ee8cbf7cb2ca68553076ae05cb2e8bdd68067f7373e33dfb03cadf90b7f410b5d5989b902b545fddbb1e3a9f17eb17d50692e982 SHA512 19908c874d5c2469609a54893f37367480d27ff03583c38b474ebb125dc9db95dc60776a120bb05662938d6eb62d4bcef24f684688e97e3453ccc27e015736cd |
21 |
DIST pygit2-0.26.3.tar.gz 462080 BLAKE2B b3c4b9b8a6aeba22a70a8d2ef1393dace3a065a3625ee3574058e333bca4ba1d60223939f412eecf5ae9d93a81fb81c4a536af46aa047c2c82a48bd81afe4cf9 SHA512 6f727686221d4e8c348f836b7ad278b48a4b971a121b9953c2cf7163bf093936d838aaf83e9edb8628757624ab27e8345a2fb29eb1a79a30e06c0ab0a77e4cc6 |
22 |
|
23 |
diff --git a/dev-python/pygit2/files/pygit2-0.25.1-cffi-1.10.patch b/dev-python/pygit2/files/pygit2-0.25.1-cffi-1.10.patch |
24 |
deleted file mode 100644 |
25 |
index c071f9e5dd6..00000000000 |
26 |
--- a/dev-python/pygit2/files/pygit2-0.25.1-cffi-1.10.patch |
27 |
+++ /dev/null |
28 |
@@ -1,55 +0,0 @@ |
29 |
-From b88dc868423af2f760f649960112efd0e37e5335 Mon Sep 17 00:00:00 2001 |
30 |
-From: Lukas Fleischer <lfleischer@××××.de> |
31 |
-Date: Sat, 6 May 2017 21:39:33 +0200 |
32 |
-Subject: [PATCH] Fix parameter passing of describe patterns |
33 |
- |
34 |
-When ffi.new() is used to build a new pointer object, the returned |
35 |
-pointer object has ownership on the allocated memory. When it is |
36 |
-garbage-collected, then the memory is freed. Thus, we need to make sure |
37 |
-the original object survives its use, otherwise the casted pointer will |
38 |
-point to garbage. |
39 |
- |
40 |
-This fixes one test which was failing with the latest CFFI version, see |
41 |
-issue #694. Thus, this commit also reverts 803b1cb (cffi 1.10 not yet |
42 |
-supported, 2017-03-22) where the latest CFFI version was marked as |
43 |
-unsupported. |
44 |
- |
45 |
-Signed-off-by: Lukas Fleischer <lfleischer@××××.de> |
46 |
---- |
47 |
- .travis.yml | 2 +- |
48 |
- pygit2/repository.py | 6 +++++- |
49 |
- setup.py | 4 ++-- |
50 |
- 3 files changed, 8 insertions(+), 4 deletions(-) |
51 |
- |
52 |
-diff --git a/pygit2/repository.py b/pygit2/repository.py |
53 |
-index 9377aa2..472f4ff 100644 |
54 |
---- a/pygit2/repository.py |
55 |
-+++ b/pygit2/repository.py |
56 |
-@@ -692,7 +692,11 @@ def describe(self, committish=None, max_candidates_tags=None, |
57 |
- if describe_strategy is not None: |
58 |
- options.describe_strategy = describe_strategy |
59 |
- if pattern: |
60 |
-- options.pattern = ffi.new('char[]', to_bytes(pattern)) |
61 |
-+ # The returned pointer object has ownership on the allocated |
62 |
-+ # memory. Make sure it is kept alive until git_describe_commit() or |
63 |
-+ # git_describe_workdir() are called below. |
64 |
-+ pattern_char = ffi.new('char[]', to_bytes(pattern)) |
65 |
-+ options.pattern = pattern_char |
66 |
- if only_follow_first_parent is not None: |
67 |
- options.only_follow_first_parent = only_follow_first_parent |
68 |
- if show_commit_oid_as_fallback is not None: |
69 |
-diff --git a/setup.py b/setup.py |
70 |
-index f4a9f8c..18d3eb0 100644 |
71 |
---- a/setup.py |
72 |
-+++ b/setup.py |
73 |
-@@ -203,8 +203,8 @@ def run(self): |
74 |
- long_description=long_description, |
75 |
- packages=['pygit2'], |
76 |
- package_data={'pygit2': ['decl.h']}, |
77 |
-- setup_requires=['cffi<1.10'], |
78 |
-- install_requires=['cffi<1.10', 'six'], |
79 |
-+ setup_requires=['cffi'], |
80 |
-+ install_requires=['cffi', 'six'], |
81 |
- zip_safe=False, |
82 |
- cmdclass=cmdclass, |
83 |
- **extra_args) |
84 |
|
85 |
diff --git a/dev-python/pygit2/pygit2-0.25.1.ebuild b/dev-python/pygit2/pygit2-0.25.1.ebuild |
86 |
deleted file mode 100644 |
87 |
index 35a8f52ddc9..00000000000 |
88 |
--- a/dev-python/pygit2/pygit2-0.25.1.ebuild |
89 |
+++ /dev/null |
90 |
@@ -1,30 +0,0 @@ |
91 |
-# Copyright 1999-2017 Gentoo Foundation |
92 |
-# Distributed under the terms of the GNU General Public License v2 |
93 |
- |
94 |
-EAPI=6 |
95 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
96 |
- |
97 |
-inherit distutils-r1 versionator |
98 |
- |
99 |
-DESCRIPTION="Python bindings for libgit2" |
100 |
-HOMEPAGE="https://github.com/libgit2/pygit2 https://pypi.python.org/pypi/pygit2" |
101 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
102 |
- |
103 |
-LICENSE="GPL-2-with-linking-exception" |
104 |
-SLOT="0" |
105 |
-KEYWORDS="~amd64 ~x86" |
106 |
- |
107 |
-RDEPEND=" |
108 |
- =dev-libs/libgit2-$(get_version_component_range 1-2)* |
109 |
- >=dev-python/cffi-1.0:=[${PYTHON_USEDEP}] |
110 |
- dev-python/six[${PYTHON_USEDEP}] |
111 |
-" |
112 |
-DEPEND="${RDEPEND}" |
113 |
- |
114 |
-PATCHES=( |
115 |
- "${FILESDIR}"/pygit2-0.25.1-cffi-1.10.patch |
116 |
-) |
117 |
- |
118 |
-python_test() { |
119 |
- esetup.py test |
120 |
-} |