1 |
commit: f3726e6f42e2e963fda8663ed8a359c54bc1027e |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 16 13:08:12 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 16 13:17:13 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3726e6f |
7 |
|
8 |
dev-python/apipkg: Bump to 1.5, fix tests |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/apipkg/Manifest | 1 + |
13 |
dev-python/apipkg/apipkg-1.5.ebuild | 24 ++++++++++++++++++++++ |
14 |
dev-python/apipkg/files/apipkg-1.5-pytest-4.patch | 25 +++++++++++++++++++++++ |
15 |
3 files changed, 50 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/apipkg/Manifest b/dev-python/apipkg/Manifest |
18 |
index 176961da12c..79087bd2641 100644 |
19 |
--- a/dev-python/apipkg/Manifest |
20 |
+++ b/dev-python/apipkg/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST apipkg-1.4.tar.gz 11224 BLAKE2B b59e3fe39030f1f1f7f41e121d7a4e242d7155be5f7b2b8f3cd7550772acceacaf2d9540cf98bdb51e6d132af937d634bce3699b950b9d9aa9a618009cbaebb8 SHA512 118f806706944513f50d3cdef596b32f8ce585cfaf94d2531a6d260f90a0e2147177161aaa6f5d6823150e6182d0f73be3dc01259b8a2f8d710733a22ea54789 |
23 |
+DIST apipkg-1.5.tar.gz 11186 BLAKE2B f703a37b38b412228348520a9daa0276a69c3be47a9586e1c2797cf525a024bb0fda81dbfad7d4b1404e1ebcd3eec0e9ce2231beef5072bf9915240e2e5fb445 SHA512 828937ca5e203915248fac54db8e7c13f941e006403f2a415c27fa4d1aa114790be3d7b5dd892f528611e5e6dfe75114ee80f4f4589a03c3f789ae6ddfcae0bf |
24 |
|
25 |
diff --git a/dev-python/apipkg/apipkg-1.5.ebuild b/dev-python/apipkg/apipkg-1.5.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..63525d9df7f |
28 |
--- /dev/null |
29 |
+++ b/dev-python/apipkg/apipkg-1.5.ebuild |
30 |
@@ -0,0 +1,24 @@ |
31 |
+# Copyright 1999-2019 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy pypy3 ) |
36 |
+ |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+DESCRIPTION="Namespace control and lazy-import mechanism" |
40 |
+HOMEPAGE="https://pypi.org/project/apipkg/" |
41 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="MIT" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
46 |
+ |
47 |
+BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
48 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}]" |
49 |
+ |
50 |
+PATCHES=( |
51 |
+ "${FILESDIR}"/${P}-pytest-4.patch |
52 |
+) |
53 |
+ |
54 |
+distutils_enable_tests pytest |
55 |
|
56 |
diff --git a/dev-python/apipkg/files/apipkg-1.5-pytest-4.patch b/dev-python/apipkg/files/apipkg-1.5-pytest-4.patch |
57 |
new file mode 100644 |
58 |
index 00000000000..0053e7078e2 |
59 |
--- /dev/null |
60 |
+++ b/dev-python/apipkg/files/apipkg-1.5-pytest-4.patch |
61 |
@@ -0,0 +1,25 @@ |
62 |
+From 81dc0f46754afd44358b8c97ea832030436ac7cb Mon Sep 17 00:00:00 2001 |
63 |
+From: Andy Postnikov <apostnikov@×××××.com> |
64 |
+Date: Sun, 27 Jan 2019 03:27:18 +0200 |
65 |
+Subject: [PATCH] testing/py-apipkg: fix tests |
66 |
+ |
67 |
+https://github.com/pytest-dev/apipkg/issues/14 |
68 |
+--- |
69 |
+ testing/py-apipkg/14.patch | 11 +++++++++++ |
70 |
+ testing/py-apipkg/APKBUILD | 7 ++++--- |
71 |
+ 2 files changed, 15 insertions(+), 3 deletions(-) |
72 |
+ create mode 100644 testing/py-apipkg/14.patch |
73 |
+ |
74 |
+[inner patch extracted for Gentoo use] |
75 |
+ |
76 |
+--- a/test_apipkg.py |
77 |
++++ b/test_apipkg.py |
78 |
+@@ -13,7 +13,7 @@ |
79 |
+ class TestRealModule: |
80 |
+ |
81 |
+ def setup_class(cls): |
82 |
+- cls.tmpdir = py.test.ensuretemp('test_apipkg') |
83 |
++ cls.tmpdir = py.path.local('test_apipkg') |
84 |
+ sys.path = [str(cls.tmpdir)] + sys.path |
85 |
+ pkgdir = cls.tmpdir.ensure('realtest', dir=1) |
86 |
+ |