Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sphinxcontrib-trio/
Date: Sun, 27 Jun 2021 11:23:14
Message-Id: 1624792196.e8a0f53e31137e5e8b6b77bd45f756c762beedf2.andrewammerlaan@gentoo
1 commit: e8a0f53e31137e5e8b6b77bd45f756c762beedf2
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 27 11:09:56 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 27 11:09:56 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8a0f53e
7
8 dev-python/sphinxcontrib-trio: import from ::guru
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
12
13 dev-python/sphinxcontrib-trio/Manifest | 1 +
14 dev-python/sphinxcontrib-trio/metadata.xml | 17 ++++++++++
15 .../sphinxcontrib-trio-1.1.2.ebuild | 38 ++++++++++++++++++++++
16 3 files changed, 56 insertions(+)
17
18 diff --git a/dev-python/sphinxcontrib-trio/Manifest b/dev-python/sphinxcontrib-trio/Manifest
19 new file mode 100644
20 index 00000000000..4a31a932f9f
21 --- /dev/null
22 +++ b/dev-python/sphinxcontrib-trio/Manifest
23 @@ -0,0 +1 @@
24 +DIST sphinxcontrib-trio-1.1.2.tar.gz 24131 BLAKE2B 5ddaf5ed6c85905275e206fdd966745ce4dd7296595c488864df291cb7202725ccab722f306dd9d6c27d660f5cb3e43bf9ab2fe50e8aa5a7232c2615dddbdfd0 SHA512 cb90f37f463fbdd3f810eb6d76b4bdaaabe83317de0ad747fcee55980849d691e272884ecdfcbee58851cf536f268f2520caba281d7550fe3250e92c69164434
25
26 diff --git a/dev-python/sphinxcontrib-trio/metadata.xml b/dev-python/sphinxcontrib-trio/metadata.xml
27 new file mode 100644
28 index 00000000000..0cfc4ecfa6b
29 --- /dev/null
30 +++ b/dev-python/sphinxcontrib-trio/metadata.xml
31 @@ -0,0 +1,17 @@
32 +<?xml version="1.0" encoding="UTF-8"?>
33 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
34 +
35 +<pkgmetadata>
36 + <maintainer type="person">
37 + <email>andrewammerlaan@g.o</email>
38 + <name>Andrew Ammerlaan</name>
39 + </maintainer>
40 + <stabilize-allarches/>
41 + <longdescription lang="en">
42 +This sphinx extension helps you document Python code that uses async/await, or abstract methods, or context managers, or generators, or … you get the idea. It works by making sphinx’s regular directives for documenting Python functions and methods smarter and more powerful. The name is because it was originally written for the Trio project, and I’m not very creative. But don’t be put off – there’s nothing Trio- or async-specific about this extension; any Python project can benefit. (Though projects using async/await probably benefit the most, since sphinx’s built-in tools are especially inadequate in this case.)
43 + </longdescription>
44 + <upstream>
45 + <remote-id type="github">python-trio/sphinxcontrib-trio</remote-id>
46 + <remote-id type="pypi">sphinxcontrib-trio</remote-id>
47 + </upstream>
48 +</pkgmetadata>
49
50 diff --git a/dev-python/sphinxcontrib-trio/sphinxcontrib-trio-1.1.2.ebuild b/dev-python/sphinxcontrib-trio/sphinxcontrib-trio-1.1.2.ebuild
51 new file mode 100644
52 index 00000000000..384fc0ddd4c
53 --- /dev/null
54 +++ b/dev-python/sphinxcontrib-trio/sphinxcontrib-trio-1.1.2.ebuild
55 @@ -0,0 +1,38 @@
56 +# Copyright 1999-2021 Gentoo Authors
57 +# Distributed under the terms of the GNU General Public License v2
58 +
59 +EAPI=7
60 +
61 +PYTHON_COMPAT=( python3_{8..10} )
62 +
63 +inherit distutils-r1
64 +
65 +DESCRIPTION="Make Sphinx better at documenting Python functions and methods"
66 +HOMEPAGE="
67 + https://github.com/python-trio/sphinxcontrib-trio
68 + https://pypi.org/project/sphinxcontrib-trio
69 +"
70 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
71 +
72 +LICENSE="|| ( Apache-2.0 MIT )"
73 +KEYWORDS="~amd64"
74 +SLOT="0"
75 +
76 +RDEPEND="dev-python/sphinx[${PYTHON_USEDEP}]"
77 +
78 +BDEPEND="
79 + test? (
80 + dev-python/async_generator[${PYTHON_USEDEP}]
81 + dev-python/contextlib2[${PYTHON_USEDEP}]
82 + dev-python/cssselect[${PYTHON_USEDEP}]
83 + dev-python/lxml[${PYTHON_USEDEP}]
84 +)"
85 +
86 +# AttributeError: 'Sphinx' object has no attribute 'add_stylesheet'
87 +#distutils_enable_sphinx docs/source
88 +distutils_enable_tests pytest
89 +
90 +python_test() {
91 + # https://github.com/python-trio/sphinxcontrib-trio/issues/260
92 + epytest --deselect tests/test_sphinxcontrib_trio.py::test_end_to_end
93 +}