1 |
commit: 397cd2af116d12bb865265079146ac5e9207294f |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 3 21:40:04 2017 +0000 |
4 |
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 4 04:48:32 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=397cd2af |
7 |
|
8 |
dev-python/pytest-virtualenv: New pkg, dep of dev-python/setuptools_trial |
9 |
|
10 |
Indeirect dep for buildbot tests. |
11 |
|
12 |
Package-Manager: Portage-2.3.3_p7, Repoman-2.3.1 |
13 |
|
14 |
dev-python/pytest-virtualenv/Manifest | 1 + |
15 |
dev-python/pytest-virtualenv/metadata.xml | 20 ++++++++++++++ |
16 |
.../pytest-virtualenv-1.2.5.ebuild | 32 ++++++++++++++++++++++ |
17 |
3 files changed, 53 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/pytest-virtualenv/Manifest b/dev-python/pytest-virtualenv/Manifest |
20 |
new file mode 100644 |
21 |
index 00000000..4dbf3de |
22 |
--- /dev/null |
23 |
+++ b/dev-python/pytest-virtualenv/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST pytest-virtualenv-1.2.5.tar.gz 9480 SHA256 ecd883d6bc9cd70f66b4297dfb0d04415b013cdc3efb8b8a0b917a516b50d22e SHA512 7d437346c3b4aa96078cc4fa8f0b6c83b173572209e71a74c77098ab4e8ad0c571c0932c2b413123cd73f47a4eda36d0c0ae3ece2866afc2d1f5092357c7593a WHIRLPOOL f3fb869b85a5d582afbd297c3dedee6f864e53efcbc11cd5d199649fb0df048ac42f17a25ac2aff1c0c876ccb664361cb6b57865a143899a3d6c75cf6817fbb5 |
26 |
|
27 |
diff --git a/dev-python/pytest-virtualenv/metadata.xml b/dev-python/pytest-virtualenv/metadata.xml |
28 |
new file mode 100644 |
29 |
index 00000000..fee4ecc |
30 |
--- /dev/null |
31 |
+++ b/dev-python/pytest-virtualenv/metadata.xml |
32 |
@@ -0,0 +1,20 @@ |
33 |
+<?xml version="1.0" encoding="UTF-8"?> |
34 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
35 |
+<pkgmetadata> |
36 |
+ <maintainer type="person"> |
37 |
+ <email>dolsen@g.o</email> |
38 |
+ <description>Primary maintainer</description> |
39 |
+ </maintainer> |
40 |
+ <upstream> |
41 |
+ <maintainer> |
42 |
+ <email>eeaston@×××××.com</email> |
43 |
+ <name>Edward Easton</name> |
44 |
+ </maintainer> |
45 |
+ <remote-id type="pypi">pytest-virtualenv</remote-id> |
46 |
+ </upstream> |
47 |
+ <longdescription> |
48 |
+ Create a Python virtual environment in your test that cleans up on |
49 |
+ teardown. The fixture has utility methods to install packages and list |
50 |
+ what's installed. |
51 |
+ </longdescription> |
52 |
+</pkgmetadata> |
53 |
|
54 |
diff --git a/dev-python/pytest-virtualenv/pytest-virtualenv-1.2.5.ebuild b/dev-python/pytest-virtualenv/pytest-virtualenv-1.2.5.ebuild |
55 |
new file mode 100644 |
56 |
index 00000000..c2ea590 |
57 |
--- /dev/null |
58 |
+++ b/dev-python/pytest-virtualenv/pytest-virtualenv-1.2.5.ebuild |
59 |
@@ -0,0 +1,32 @@ |
60 |
+# Copyright 1999-2017 Gentoo Foundation |
61 |
+# Distributed under the terms of the GNU General Public License v2 |
62 |
+# $Id$ |
63 |
+ |
64 |
+EAPI=6 |
65 |
+PYTHON_COMPAT=( python2_7 python3_{4,5} ) |
66 |
+ |
67 |
+inherit distutils-r1 |
68 |
+ |
69 |
+DESCRIPTION="Virtualenv fixture for py.test" |
70 |
+HOMEPAGE="https://github.com/manahl/pytest-plugins https://pypi.python.org/pypi/pytest-virtualenv" |
71 |
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" |
72 |
+ |
73 |
+LICENSE="MIT" |
74 |
+SLOT="0" |
75 |
+KEYWORDS="~amd64 ~x86" |
76 |
+IUSE="test" |
77 |
+ |
78 |
+RDEPEND=" |
79 |
+ dev-python/pytest-fixture-config[${PYTHON_USEDEP}] |
80 |
+ dev-python/pytest-shutil[${PYTHON_USEDEP}] |
81 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
82 |
+ dev-python/setuptools-git[${PYTHON_USEDEP}] |
83 |
+" |
84 |
+ |
85 |
+DEPEND="${RDEPEND}" |
86 |
+ |
87 |
+python_test() { |
88 |
+ distutils_install_for_testing |
89 |
+ |
90 |
+ esetup.py test || die "Tests failed under ${EPYTHON}" |
91 |
+} |