Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/postorius/
Date: Tue, 28 Sep 2021 08:43:38
Message-Id: 1632818550.8d393c76a9277f3d09e57e0a7aecdf56c64ac469.arthurzam@gentoo
1 commit: 8d393c76a9277f3d09e57e0a7aecdf56c64ac469
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 28 08:42:30 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 28 08:42:30 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d393c76
7
8 net-mail/postorius: add 1.3.5, enable py3.9, enable tests
9
10 Bug: https://bugs.gentoo.org/812853
11 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
12
13 net-mail/postorius/Manifest | 1 +
14 net-mail/postorius/postorius-1.3.5.ebuild | 48 +++++++++++++++++++++++++++++++
15 2 files changed, 49 insertions(+)
16
17 diff --git a/net-mail/postorius/Manifest b/net-mail/postorius/Manifest
18 index fac3606d7c8..d4578faa729 100644
19 --- a/net-mail/postorius/Manifest
20 +++ b/net-mail/postorius/Manifest
21 @@ -1 +1,2 @@
22 DIST postorius-1.3.3.tar.gz 2704738 BLAKE2B 0ae5a7b3ace1ad7f64eae53156592d0c76a09e358d08edfe1b506717e87df67c669bfab356c203e28c03006f46461a67b4c7222e0e305100e15511a93e3e6a59 SHA512 31d6d6d0dbbe8a57251c81cf8f7d8b80d17dd4aab9f31be684fef26637a4ba81a196d4ab63e7389bd4173a60778a00c83ee440c24f83a1f60b094ccab8cf345a
23 +DIST postorius-1.3.5.tar.gz 2775722 BLAKE2B 85f3408b7205ce4f89c36906280ff7ccecca0752ae611f4631e16d43972d0b52321be0f533fdabe6bf7d503120ab7a3794ef25f64a72369dec782b60347e33bb SHA512 f5f90ade87ae028fe665918b0aef69ac6c79f8d45ee4d105825ed9113661f084f3a82db9ac6ee850fa0feb5fd5afe7b66e49040d22c2e0599a95c3aa8ad56a31
24
25 diff --git a/net-mail/postorius/postorius-1.3.5.ebuild b/net-mail/postorius/postorius-1.3.5.ebuild
26 new file mode 100644
27 index 00000000000..18b4965e46d
28 --- /dev/null
29 +++ b/net-mail/postorius/postorius-1.3.5.ebuild
30 @@ -0,0 +1,48 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{8..9} )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="A web user interface for GNU Mailman 3"
41 +HOMEPAGE="https://www.list.org"
42 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
43 +
44 +LICENSE="GPL-3+"
45 +SLOT="0"
46 +KEYWORDS="~amd64"
47 +
48 +RDEPEND="
49 + dev-python/django[${PYTHON_USEDEP}]
50 + dev-python/readme_renderer[${PYTHON_USEDEP}]
51 + net-mail/django-mailman3[${PYTHON_USEDEP}]
52 + net-mail/mailmanclient[${PYTHON_USEDEP}]
53 +"
54 +BDEPEND="
55 + test? (
56 + dev-python/mock[${PYTHON_USEDEP}]
57 + dev-python/vcrpy[${PYTHON_USEDEP}]
58 + dev-python/beautifulsoup4[${PYTHON_USEDEP}]
59 + dev-python/pytest-django[${PYTHON_USEDEP}]
60 + dev-python/isort[${PYTHON_USEDEP}]
61 + net-mail/mailman[${PYTHON_USEDEP}]
62 + )
63 +"
64 +
65 +DOCS=( README.rst )
66 +
67 +distutils_enable_tests pytest
68 +
69 +src_prepare() {
70 + sed -e 's/test_list_info/_&/' -i src/postorius/tests/mailman_api_tests/test_list_summary.py || die
71 + distutils-r1_src_prepare
72 +}
73 +
74 +python_test() {
75 + local -x PYTHONPATH="${S}/src"
76 + cd example_project || die
77 + epytest ../src
78 +}