1 |
commit: c74a603ae11d18544b47127070a1ccc4277b34a2 |
2 |
Author: Louis Sautier <sautier.louis <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Dec 29 15:28:37 2015 +0000 |
4 |
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 29 15:28:37 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c74a603a |
7 |
|
8 |
dev-python/backports-unittest-mock: needed as a new dep to test dev-python/irc |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
dev-python/backports-unittest-mock/Manifest | 1 + |
13 |
.../backports-unittest-mock-1.1.1.ebuild | 38 ++++++++++++++++++++++ |
14 |
dev-python/backports-unittest-mock/metadata.xml | 14 ++++++++ |
15 |
3 files changed, 53 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/backports-unittest-mock/Manifest b/dev-python/backports-unittest-mock/Manifest |
18 |
new file mode 100644 |
19 |
index 0000000..1ccc06c |
20 |
--- /dev/null |
21 |
+++ b/dev-python/backports-unittest-mock/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST backports.unittest_mock-1.1.1.tar.gz 3255 SHA256 641bd99befaa09834df2aa5f01a0db27c782758e06d46831bfae6ff91dc5d1be SHA512 82872d9ada74b7e64792b29cd49177d5c54ffd64260ce17628df7df08e9e16ee1456d9f80eacacebb43a5e51ad93868cd49bee84209cf6682385e746bcfc90c4 WHIRLPOOL e1c1728a6a2aa0a2ec58a57b23874deb1167d2e3599a20d5e1331ab97e34798519956cb5b20bed735c7a714b6d258944f32144997a9763462c3d373e28a68267 |
24 |
|
25 |
diff --git a/dev-python/backports-unittest-mock/backports-unittest-mock-1.1.1.ebuild b/dev-python/backports-unittest-mock/backports-unittest-mock-1.1.1.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000..98be0c6 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/backports-unittest-mock/backports-unittest-mock-1.1.1.ebuild |
30 |
@@ -0,0 +1,38 @@ |
31 |
+# Copyright 1999-2015 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI=5 |
36 |
+ |
37 |
+# It is the developer's intention that backports.unittest_mock will be |
38 |
+# used even for Python 3: https://github.com/jaraco/jaraco.timing/pull/1 |
39 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
40 |
+ |
41 |
+inherit distutils-r1 |
42 |
+ |
43 |
+MY_PN="${PN/-/.}" |
44 |
+MY_PN="${MY_PN//-/_}" |
45 |
+DESCRIPTION="Backport of unittest.mock" |
46 |
+HOMEPAGE="https://github.com/jaraco/backports.unittest_mock" |
47 |
+SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" |
48 |
+ |
49 |
+LICENSE="MIT" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~x86" |
52 |
+IUSE="test" |
53 |
+ |
54 |
+RDEPEND="dev-python/mock[${PYTHON_USEDEP}]" |
55 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/setuptools_scm-1.9[${PYTHON_USEDEP}] |
57 |
+ test? ( |
58 |
+ ${RDEPEND} |
59 |
+ >=dev-python/pytest-2.8[${PYTHON_USEDEP}] |
60 |
+ dev-python/pytest-runner[${PYTHON_USEDEP}] |
61 |
+ ) |
62 |
+" |
63 |
+ |
64 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
65 |
+ |
66 |
+python_test() { |
67 |
+ py.test || die "tests failed with ${EPYTHON}" |
68 |
+} |
69 |
|
70 |
diff --git a/dev-python/backports-unittest-mock/metadata.xml b/dev-python/backports-unittest-mock/metadata.xml |
71 |
new file mode 100644 |
72 |
index 0000000..2a913a1 |
73 |
--- /dev/null |
74 |
+++ b/dev-python/backports-unittest-mock/metadata.xml |
75 |
@@ -0,0 +1,14 @@ |
76 |
+<?xml version="1.0" encoding="UTF-8"?> |
77 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
78 |
+<pkgmetadata> |
79 |
+ <herd>proxy-maintainers</herd> |
80 |
+ <maintainer> |
81 |
+ <email>sautier.louis@×××××.com</email> |
82 |
+ <name>Louis Sautier</name> |
83 |
+ <description>Proxied maintainer; set to assignee in all bugs</description> |
84 |
+ </maintainer> |
85 |
+ <upstream> |
86 |
+ <remote-id type="pypi">backports.unittest_mock</remote-id> |
87 |
+ <remote-id type="github">jaraco/backports.unittest_mock</remote-id> |
88 |
+ </upstream> |
89 |
+</pkgmetadata> |