1 |
commit: 6f7810a237431e421f0ded636f904ca018ecb63e |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 24 21:44:19 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 24 22:09:49 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f7810a2 |
7 |
|
8 |
dev-python/numpydoc: Bump to 1.2 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/numpydoc/Manifest | 1 + |
13 |
dev-python/numpydoc/numpydoc-1.2.ebuild | 44 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 45 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/numpydoc/Manifest b/dev-python/numpydoc/Manifest |
17 |
index 73b5150901a4..ad77cba92360 100644 |
18 |
--- a/dev-python/numpydoc/Manifest |
19 |
+++ b/dev-python/numpydoc/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST numpydoc-1.1.0.tar.gz 609482 BLAKE2B 475be835a760dd148b7132a3149a1b79193425b70bbaa51b29a3909c73ed11a933181c917a0f0d0b56d8d30baced2142897e0a931b5eeb6449092d0a2a81632b SHA512 10dfc5e40ca851401be7d7cca3cbf24bf8ded8573c01344976321cd65fe351d985ee0bf48a92a485a43f8fb191c246e4822545a1583c87c1214d819a5fdfc106 |
22 |
+DIST numpydoc-1.2.tar.gz 69659 BLAKE2B e5483ad3d6d82e9ff51d2d7cdc36c75407361059a696047f1d0fb7d3307c36ee056e8c0b9eb45fc11e4d341350c1b1dd021d60252055154c6907942e549b9555 SHA512 b8ea82a947c7fca9d02c2083f6040f2a1a115400e43257fd6ce7ac9b1b174d22ed7723053b87893d6bff8f47a625932297c884e853be4e00d3ae2262ad0161cf |
23 |
|
24 |
diff --git a/dev-python/numpydoc/numpydoc-1.2.ebuild b/dev-python/numpydoc/numpydoc-1.2.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..1d6b9cd2cb0a |
27 |
--- /dev/null |
28 |
+++ b/dev-python/numpydoc/numpydoc-1.2.ebuild |
29 |
@@ -0,0 +1,44 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DISTUTILS_USE_PEP517=setuptools |
36 |
+PYTHON_COMPAT=( python3_{8..10} ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="Sphinx extension to support docstrings in Numpy format" |
41 |
+HOMEPAGE="https://pypi.org/project/numpydoc/" |
42 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="BSD" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ >=dev-python/jinja-2.10[${PYTHON_USEDEP}] |
50 |
+ >=dev-python/sphinx-1.8[${PYTHON_USEDEP}] |
51 |
+" |
52 |
+BDEPEND=" |
53 |
+ test? ( |
54 |
+ >=dev-python/matplotlib-3.2.1[${PYTHON_USEDEP}] |
55 |
+ ) |
56 |
+" |
57 |
+ |
58 |
+distutils_enable_tests pytest |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ sed -i -e 's:--cov-report= --cov=numpydoc::' setup.cfg || die |
62 |
+ |
63 |
+ distutils-r1_src_prepare |
64 |
+} |
65 |
+ |
66 |
+python_test() { |
67 |
+ local EPYTEST_DESELECT=( |
68 |
+ # these require Internet (intersphinx) |
69 |
+ numpydoc/tests/test_full.py::test_MyClass |
70 |
+ numpydoc/tests/test_full.py::test_my_function |
71 |
+ ) |
72 |
+ epytest --pyargs numpydoc |
73 |
+} |