Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyserial/
Date: Tue, 01 Feb 2022 22:48:49
Message-Id: 1643755721.c10130eb6a60d8d753f495c13ce6981456d9500b.mgorny@gentoo
1 commit: c10130eb6a60d8d753f495c13ce6981456d9500b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 1 22:44:54 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 1 22:48:41 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c10130eb
7
8 dev-python/pyserial: Switch to PEP 517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pyserial/pyserial-3.5-r1.ebuild | 34 ++++++++++++++++++++++++++++++
13 1 file changed, 34 insertions(+)
14
15 diff --git a/dev-python/pyserial/pyserial-3.5-r1.ebuild b/dev-python/pyserial/pyserial-3.5-r1.ebuild
16 new file mode 100644
17 index 000000000000..605d44552619
18 --- /dev/null
19 +++ b/dev-python/pyserial/pyserial-3.5-r1.ebuild
20 @@ -0,0 +1,34 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=setuptools
27 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Python Serial Port extension"
32 +HOMEPAGE="https://github.com/pyserial/pyserial https://pypi.org/project/pyserial/"
33 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
34 +
35 +LICENSE="PSF-2"
36 +SLOT="0"
37 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
38 +IUSE="examples"
39 +
40 +DOCS=( CHANGES.rst README.rst )
41 +
42 +distutils_enable_sphinx documentation --no-autodoc
43 +
44 +python_test() {
45 + "${EPYTHON}" test/run_all_tests.py loop:// -v || die "Testing failed with ${EPYTHON}"
46 +}
47 +
48 +python_install_all() {
49 + distutils-r1_python_install_all
50 + if use examples; then
51 + dodoc -r examples
52 + docompress -x /usr/share/doc/${PF}/examples
53 + fi
54 +}