1 |
commit: 8dd6b590c4cc016623a82e69d9430fe9f70b92ae |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 30 06:55:38 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 30 07:34:54 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8dd6b590 |
7 |
|
8 |
dev-python/numpydoc: Bump to 1.3.0 |
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.3.0.ebuild | 51 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 52 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/numpydoc/Manifest b/dev-python/numpydoc/Manifest |
17 |
index 805c3bd793bd..c1e37772fd84 100644 |
18 |
--- a/dev-python/numpydoc/Manifest |
19 |
+++ b/dev-python/numpydoc/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST numpydoc-1.2.1.tar.gz 70350 BLAKE2B f693436efa8e95527e4d7d20676b1f3e563369190a71cc4e2cc8ec38b65ad500f3e0e8a4e89ce48ebd3bf1190c8fff1ead05cc22dbbf80fdf147b9996b2b5add SHA512 439ff422d46ea8eaa26bd14ac41f8d64638d8df081a3b889eaadceafbde64f2a091f6363d0565759618d60c4fe869d8f62ec0878d45674022056058621048d0e |
22 |
DIST numpydoc-1.2.tar.gz 69659 BLAKE2B e5483ad3d6d82e9ff51d2d7cdc36c75407361059a696047f1d0fb7d3307c36ee056e8c0b9eb45fc11e4d341350c1b1dd021d60252055154c6907942e549b9555 SHA512 b8ea82a947c7fca9d02c2083f6040f2a1a115400e43257fd6ce7ac9b1b174d22ed7723053b87893d6bff8f47a625932297c884e853be4e00d3ae2262ad0161cf |
23 |
+DIST numpydoc-1.3.0.gh.tar.gz 70243 BLAKE2B 64b6550bffb644945972e38eb9783ca0a81478c9c9f8aac9d0a91b5871fcc9470d55533ebd4cbe287cf7ade2f355b05e4a31e8558e4fff3a836b37ed33027b13 SHA512 ba6b77fba590a9cb97562e9325db98d3423e39eeca6f28975960bc3ac9c83922ad9c47ecb92c2e2ec359f050304225fc204347708cf699cb40074eaefaa29e41 |
24 |
|
25 |
diff --git a/dev-python/numpydoc/numpydoc-1.3.0.ebuild b/dev-python/numpydoc/numpydoc-1.3.0.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..8b2f2b65ba40 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/numpydoc/numpydoc-1.3.0.ebuild |
30 |
@@ -0,0 +1,51 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+DISTUTILS_USE_PEP517=setuptools |
37 |
+PYTHON_COMPAT=( python3_{8..10} ) |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="Sphinx extension to support docstrings in Numpy format" |
42 |
+HOMEPAGE=" |
43 |
+ https://numpydoc.readthedocs.io/en/latest/ |
44 |
+ https://github.com/numpy/numpydoc/ |
45 |
+ https://pypi.org/project/numpydoc/ |
46 |
+" |
47 |
+SRC_URI=" |
48 |
+ https://github.com/numpy/numpydoc/archive/v${PV}.tar.gz |
49 |
+ -> ${P}.gh.tar.gz |
50 |
+" |
51 |
+ |
52 |
+LICENSE="BSD" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ >=dev-python/jinja-2.10[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/sphinx-3[${PYTHON_USEDEP}] |
59 |
+" |
60 |
+BDEPEND=" |
61 |
+ test? ( |
62 |
+ >=dev-python/matplotlib-3.2.1[${PYTHON_USEDEP}] |
63 |
+ ) |
64 |
+" |
65 |
+ |
66 |
+distutils_enable_tests pytest |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ sed -i -e 's:--cov-report= --cov=numpydoc::' setup.cfg || die |
70 |
+ |
71 |
+ distutils-r1_src_prepare |
72 |
+} |
73 |
+ |
74 |
+python_test() { |
75 |
+ local EPYTEST_DESELECT=( |
76 |
+ # these require Internet (intersphinx) |
77 |
+ numpydoc/tests/test_full.py::test_MyClass |
78 |
+ numpydoc/tests/test_full.py::test_my_function |
79 |
+ ) |
80 |
+ epytest --pyargs numpydoc |
81 |
+} |