1 |
commit: 342d4d4a755c3fc0d09bf832325f3d596ba4b090 |
2 |
Author: Maciej Barć <xgqt <AT> protonmail <DOT> com> |
3 |
AuthorDate: Sat May 2 13:03:02 2020 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Sat May 2 13:03:27 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=342d4d4a |
7 |
|
8 |
dev-python/redbaron: new package; add version 0.9 |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Maciej Barć <xgqt <AT> protonmail.com> |
12 |
|
13 |
dev-python/redbaron/Manifest | 1 + |
14 |
dev-python/redbaron/metadata.xml | 12 ++++++++++++ |
15 |
dev-python/redbaron/redbaron-0.9.ebuild | 32 ++++++++++++++++++++++++++++++++ |
16 |
3 files changed, 45 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/redbaron/Manifest b/dev-python/redbaron/Manifest |
19 |
new file mode 100644 |
20 |
index 0000000..4ceb8d5 |
21 |
--- /dev/null |
22 |
+++ b/dev-python/redbaron/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST redbaron-0.9.tar.gz 708544 BLAKE2B e3314a29e66fe2e91ef28183f5e9f6c91117963bfffa0bcc1fb62602bc87b1c5fcf058ff545c3515e0de8077f70298aa788960e7409cbde6a0199701947786f6 SHA512 db99be12a1a0a3caab80f8b319d2966ffe5f80b15e5f838212bdb327c75c411ee273b4ff44dae76010165bd563275eb50c8c5b8d87284a493114224603e9cb25 |
25 |
|
26 |
diff --git a/dev-python/redbaron/metadata.xml b/dev-python/redbaron/metadata.xml |
27 |
new file mode 100644 |
28 |
index 0000000..4345ad7 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/redbaron/metadata.xml |
31 |
@@ -0,0 +1,12 @@ |
32 |
+<?xml version="1.0" encoding="UTF-8"?> |
33 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
34 |
+<pkgmetadata> |
35 |
+ <maintainer type="person"> |
36 |
+ <email>xgqt@××××××××××.com</email> |
37 |
+ <name>Maciej Barć</name> |
38 |
+ </maintainer> |
39 |
+ <upstream> |
40 |
+ <remote-id type="github">PyCQA/redbaron</remote-id> |
41 |
+ <remote-id type="pypi">redbaron</remote-id> |
42 |
+ </upstream> |
43 |
+</pkgmetadata> |
44 |
|
45 |
diff --git a/dev-python/redbaron/redbaron-0.9.ebuild b/dev-python/redbaron/redbaron-0.9.ebuild |
46 |
new file mode 100644 |
47 |
index 0000000..e57d741 |
48 |
--- /dev/null |
49 |
+++ b/dev-python/redbaron/redbaron-0.9.ebuild |
50 |
@@ -0,0 +1,32 @@ |
51 |
+# Copyright 1999-2020 Gentoo Authors |
52 |
+# Distributed under the terms of the GNU General Public License v2 |
53 |
+ |
54 |
+EAPI=7 |
55 |
+ |
56 |
+PYTHON_COMPAT=( python3_{6,7} ) |
57 |
+ |
58 |
+inherit distutils-r1 |
59 |
+ |
60 |
+DESCRIPTION="A FST for python to make writing refactoring code a realistic task" |
61 |
+HOMEPAGE="https://redbaron.readthedocs.io/" |
62 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
63 |
+ |
64 |
+LICENSE="LGPL-3" |
65 |
+SLOT="0" |
66 |
+KEYWORDS="~amd64" |
67 |
+ |
68 |
+RDEPEND=" |
69 |
+ >=dev-python/baron-0.7[${PYTHON_USEDEP}] |
70 |
+ dev-python/pygments[${PYTHON_USEDEP}] |
71 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
72 |
+" |
73 |
+ |
74 |
+python_test() { |
75 |
+ # Remove "__pycache__". Reason: unique basename |
76 |
+ rm -rfd "${S}"/tests/__pycache__ || die |
77 |
+ |
78 |
+ # Skip tests. Reason: calls fixture "red" directly |
79 |
+ rm "${S}"/tests/test_bounding_box.py || die |
80 |
+ |
81 |
+ pytest -v || die "Tests fail with ${EPYTHON}" |
82 |
+} |