1 |
commit: 395ac836e51ff34dfb964468e8d11c2b739d0a99 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jun 29 02:43:06 2021 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Jun 29 02:43:47 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=395ac836 |
7 |
|
8 |
dev-python/pip-api: initial import |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
dev-python/pip-api/Manifest | 1 + |
13 |
dev-python/pip-api/metadata.xml | 13 +++++++++++ |
14 |
dev-python/pip-api/pip-api-0.0.14.ebuild | 37 ++++++++++++++++++++++++++++++++ |
15 |
3 files changed, 51 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/pip-api/Manifest b/dev-python/pip-api/Manifest |
18 |
new file mode 100644 |
19 |
index 000000000..e42fe1f30 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/pip-api/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST pip-api-0.0.14.tar.gz 112646 BLAKE2B 8bfe738b6c1aee91d407b568c7cc335271f1b739e6db49374248342a4325853dea6650c32384bf89afd95b20f09d361b5edb3b0ecae100fdc3a6855ba010ec24 SHA512 d3802b8728b814dae9551cc12612eb10a8de061cd64ac40647513d083c45f4bee218b1d2ba772c4c4df05275c4dc8e935e8e69c2e2cf8c6420e6c1158c768c78 |
24 |
|
25 |
diff --git a/dev-python/pip-api/metadata.xml b/dev-python/pip-api/metadata.xml |
26 |
new file mode 100644 |
27 |
index 000000000..a654b8335 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/pip-api/metadata.xml |
30 |
@@ -0,0 +1,13 @@ |
31 |
+<?xml version="1.0" encoding="UTF-8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+ <maintainer type="person"> |
35 |
+ <email>lssndrbarbieri@×××××.com</email> |
36 |
+ <name>Alessandro Barbieri</name> |
37 |
+ </maintainer> |
38 |
+ <upstream> |
39 |
+ <bugs-to>https://github.com/di/pip-api/issues</bugs-to> |
40 |
+ <remote-id type="github">di/pip-api</remote-id> |
41 |
+ <remote-id type="pypi">pip-api</remote-id> |
42 |
+ </upstream> |
43 |
+</pkgmetadata> |
44 |
|
45 |
diff --git a/dev-python/pip-api/pip-api-0.0.14.ebuild b/dev-python/pip-api/pip-api-0.0.14.ebuild |
46 |
new file mode 100644 |
47 |
index 000000000..347170ee5 |
48 |
--- /dev/null |
49 |
+++ b/dev-python/pip-api/pip-api-0.0.14.ebuild |
50 |
@@ -0,0 +1,37 @@ |
51 |
+# Copyright 1999-2021 Gentoo Authors |
52 |
+# Distributed under the terms of the GNU General Public License v2 |
53 |
+ |
54 |
+EAPI=7 |
55 |
+ |
56 |
+DISTUTILS_SETUPTOOLS="pyproject.toml" |
57 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
58 |
+ |
59 |
+inherit distutils-r1 |
60 |
+ |
61 |
+DESCRIPTION="An unofficial, importable pip API" |
62 |
+HOMEPAGE="https://github.com/di/pip-api" |
63 |
+SRC_URI="https://github.com/di/pip-api/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" |
64 |
+ |
65 |
+LICENSE="Apache-2.0" |
66 |
+SLOT="0" |
67 |
+KEYWORDS="~amd64" |
68 |
+ |
69 |
+DEPEND=" |
70 |
+ dev-python/pip[${PYTHON_USEDEP}] |
71 |
+ test? ( |
72 |
+ dev-python/pretend[${PYTHON_USEDEP}] |
73 |
+ >=dev-python/virtualenv-20[${PYTHON_USEDEP}] |
74 |
+ ) |
75 |
+" |
76 |
+ |
77 |
+distutils_enable_tests pytest |
78 |
+ |
79 |
+python_test() { |
80 |
+ #https://github.com/di/pip-api/issues/81 |
81 |
+ epytest -vv \ |
82 |
+ --deselect tests/test_installed_distributions.py::test_installed_distributions \ |
83 |
+ --deselect tests/test_tests.py::test_isolation[True] \ |
84 |
+ --deselect tests/test_tests.py::test_isolation[False] \ |
85 |
+ --deselect tests/test_tests.py::test_all_the_right_pips \ |
86 |
+ || die |
87 |
+} |