Gentoo Archives: gentoo-commits

From: Louis Sautier <sbraz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/irc/
Date: Wed, 09 Sep 2020 09:36:03
Message-Id: 1599644154.cb1b5f86d7a4843cd952455bbad0b07d7f3e4221.sbraz@gentoo
1 commit: cb1b5f86d7a4843cd952455bbad0b07d7f3e4221
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 9 08:39:28 2020 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 9 09:35:54 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb1b5f86
7
8 dev-python/irc: bump to 19.0.1, add Python 3.9 support
9
10 Package-Manager: Portage-3.0.3, Repoman-2.3.23
11 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
12
13 dev-python/irc/Manifest | 1 +
14 dev-python/irc/irc-19.0.1.ebuild | 59 ++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 60 insertions(+)
16
17 diff --git a/dev-python/irc/Manifest b/dev-python/irc/Manifest
18 index 55803bbf7c3..4951ea01d1f 100644
19 --- a/dev-python/irc/Manifest
20 +++ b/dev-python/irc/Manifest
21 @@ -1 +1,2 @@
22 DIST irc-18.0.0.tar.gz 91529 BLAKE2B 91e7f9fe38b46f836eb902c8ce4ca04706e673a8a9372c743e9b6be3b400e4d84a0d841b72e2b8444e055a69d37b22d48fcf33c7bd51375dbf0dd4a06b3ed5dd SHA512 a424f1261a09246dd2cfd0b717d4fd9bbeab9754d1f480c870c2e131354db85268bd010ec6b7cf2c59a0c32057bb290ef3ffdcb30cca8c0d833e1497bc89f58e
23 +DIST irc-19.0.1.tar.gz 118227 BLAKE2B 7cafeaee39545ea2fb2257ca2ea89ccb90ed6d6607be27dac6d72cd9fc2e308a7980cc89ff4e1a491e52b071f3b91f6a56f56c9956d35f10a3bac95f214fee10 SHA512 f472c47c3fb54fd012fe16774cf19d43e07cfbc314347b02a280b6bf1d08eda9cbc13d4e3adf3af5f22b31d41e7160c44dbde9479abed01e0b5224f23ec9a0d7
24
25 diff --git a/dev-python/irc/irc-19.0.1.ebuild b/dev-python/irc/irc-19.0.1.ebuild
26 new file mode 100644
27 index 00000000000..2d780f0ed7a
28 --- /dev/null
29 +++ b/dev-python/irc/irc-19.0.1.ebuild
30 @@ -0,0 +1,59 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{6,7,8,9} )
37 +# [options.entry_points] is present in setup.cfg but it is empty
38 +DISTUTILS_USE_SETUPTOOLS=manual
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="IRC client framework written in Python"
43 +HOMEPAGE="https://github.com/jaraco/irc"
44 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
45 +
46 +LICENSE="MIT"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="examples test"
50 +RESTRICT="!test? ( test )"
51 +
52 +RDEPEND="
53 + $(python_gen_cond_dep 'dev-python/importlib_metadata[${PYTHON_USEDEP}]' python3_{6,7})
54 + dev-python/jaraco-collections[${PYTHON_USEDEP}]
55 + >=dev-python/jaraco-functools-1.20[${PYTHON_USEDEP}]
56 + >=dev-python/jaraco-itertools-1.8[${PYTHON_USEDEP}]
57 + dev-python/jaraco-logging[${PYTHON_USEDEP}]
58 + dev-python/jaraco-stream[${PYTHON_USEDEP}]
59 + dev-python/jaraco-text[${PYTHON_USEDEP}]
60 + dev-python/more-itertools[${PYTHON_USEDEP}]
61 + dev-python/pytz[${PYTHON_USEDEP}]
62 + >=dev-python/tempora-1.6[${PYTHON_USEDEP}]
63 +"
64 +BDEPEND="
65 + dev-python/setuptools[${PYTHON_USEDEP}]
66 + >=dev-python/setuptools_scm-3.4.1[${PYTHON_USEDEP}]
67 + dev-python/toml[${PYTHON_USEDEP}]
68 + test? (
69 + ${RDEPEND}
70 + >=dev-python/pytest-2.8[${PYTHON_USEDEP}]
71 + )
72 +"
73 +
74 +distutils_enable_sphinx docs '>=dev-python/jaraco-packaging-3.2' \
75 + '>=dev-python/rst-linker-1.9'
76 +
77 +python_test() {
78 + # Override pytest options to skip flake8
79 + pytest -vv --override-ini="addopts=--doctest-modules" \
80 + || die "Tests failed with ${EPYTHON}"
81 +}
82 +
83 +python_install_all() {
84 + if use examples; then
85 + docompress -x "/usr/share/doc/${PF}/scripts"
86 + dodoc -r scripts
87 + fi
88 + distutils-r1_python_install_all
89 +}