Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/aiohttp-jinja2/
Date: Tue, 01 Jun 2021 11:56:09
Message-Id: 1622548557.3e9b9129d55821984c71ff2f29a75f9891e19027.sam@gentoo
1 commit: 3e9b9129d55821984c71ff2f29a75f9891e19027
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 1 11:55:48 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 1 11:55:57 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e9b9129
7
8 dev-python/aiohttp-jinja2: add 1.4.2
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-python/aiohttp-jinja2/Manifest | 1 +
13 .../aiohttp-jinja2/aiohttp-jinja2-1.4.2.ebuild | 55 ++++++++++++++++++++++
14 2 files changed, 56 insertions(+)
15
16 diff --git a/dev-python/aiohttp-jinja2/Manifest b/dev-python/aiohttp-jinja2/Manifest
17 index 28e0da6d800..c40dead9fd2 100644
18 --- a/dev-python/aiohttp-jinja2/Manifest
19 +++ b/dev-python/aiohttp-jinja2/Manifest
20 @@ -1 +1,2 @@
21 DIST aiohttp-jinja2-0.15.0.tar.gz 51183 BLAKE2B e19ca813f36ac746a84812ec278a3de43e6e24eaafcf949fd18a32c99f460ded03f4dc97171fe1493174a8e2c51543b8c1afcdec51c4688f4fb0b7781287cc03 SHA512 084714cd2376b93f32cdcebc1971d4aaa704a177524b00f322e0347c15ab8085960a68a3760be056e391410f01b6b637eb59db54fccf54d09ba53a9ea03a01db
22 +DIST aiohttp-jinja2-1.4.2.tar.gz 54328 BLAKE2B 3d6aaeb03bbb89516a92fa877ee95a2fd27ab83666a03ca12e78f1744b82797faf2547bf55118618cbd979d80779a9571dfcfe9036bc84142563ede55cfbc1a1 SHA512 7bdaee97efe90a0009cd78a4e46dc80cfeb661c2d5561fdb1b1a1ff098abba8667260bb908e3227edd6601c2412812d0311461942568a8aabf07a164ea2f290e
23
24 diff --git a/dev-python/aiohttp-jinja2/aiohttp-jinja2-1.4.2.ebuild b/dev-python/aiohttp-jinja2/aiohttp-jinja2-1.4.2.ebuild
25 new file mode 100644
26 index 00000000000..47be01d0423
27 --- /dev/null
28 +++ b/dev-python/aiohttp-jinja2/aiohttp-jinja2-1.4.2.ebuild
29 @@ -0,0 +1,55 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_{7,8,9} )
36 +
37 +inherit distutils-r1
38 +
39 +DESCRIPTION="jinja2 template renderer for aiohttp.web"
40 +HOMEPAGE="https://github.com/aio-libs/aiohttp-jinja2"
41 +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
42 +
43 +LICENSE="Apache-2.0"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86"
46 +IUSE="doc test"
47 +RESTRICT="!test? ( test )"
48 +
49 +RDEPEND="
50 + >=dev-python/aiohttp-2.3.9[${PYTHON_USEDEP}]
51 + >=dev-python/jinja-2.10[${PYTHON_USEDEP}]
52 +"
53 +DEPEND="
54 + ${RDEPEND}
55 + doc? (
56 + >=dev-python/alabaster-0.6.2[${PYTHON_USEDEP}]
57 + dev-python/sphinx[${PYTHON_USEDEP}]
58 + )
59 + test? ( >=dev-python/pytest-aiohttp-0.3.0[${PYTHON_USEDEP}] )
60 +"
61 +
62 +DOCS=( README.rst )
63 +
64 +distutils_enable_tests pytest
65 +
66 +src_prepare() {
67 + default
68 +
69 + sed -i \
70 + -e 's:--cov=aiohttp_jinja2 --cov-report xml --cov-report html --cov-report term::' \
71 + setup.cfg || die
72 +
73 + distutils-r1_src_prepare
74 +}
75 +
76 +python_compile_all() {
77 + use doc && emake -C docs html
78 +}
79 +
80 +python_install_all() {
81 + use doc && local HTML_DOCS=( docs/_build/html/. )
82 +
83 + distutils-r1_python_install_all
84 +}