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/python-xlib/
Date: Wed, 01 Jun 2022 10:55:52
Message-Id: 1654080928.ef98582ae411cc42c9933d0e6add3bc8564a38ff.andrewammerlaan@gentoo
1 commit: ef98582ae411cc42c9933d0e6add3bc8564a38ff
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 1 09:45:02 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 1 10:55:28 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef98582a
7
8 dev-python/python-xlib: update EAPI 7 -> 8, pep517, enable py3.11
9
10 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
11
12 dev-python/python-xlib/python-xlib-0.31-r1.ebuild | 39 +++++++++++++++++++++++
13 1 file changed, 39 insertions(+)
14
15 diff --git a/dev-python/python-xlib/python-xlib-0.31-r1.ebuild b/dev-python/python-xlib/python-xlib-0.31-r1.ebuild
16 new file mode 100644
17 index 000000000000..b9715050ed58
18 --- /dev/null
19 +++ b/dev-python/python-xlib/python-xlib-0.31-r1.ebuild
20 @@ -0,0 +1,39 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +PYTHON_COMPAT=( python3_{8..11} )
27 +DISTUTILS_USE_PEP517=setuptools
28 +inherit distutils-r1 virtualx
29 +
30 +DESCRIPTION="A fully functional X client library for Python, written in Python"
31 +HOMEPAGE="https://github.com/python-xlib/python-xlib"
32 +SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.bz2"
33 +
34 +LICENSE="LGPL-2+"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
37 +IUSE="doc"
38 +
39 +RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
40 +BDEPEND="${RDEPEND}
41 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
42 + doc? ( sys-apps/texinfo )
43 + test? ( dev-python/mock[${PYTHON_USEDEP}] )
44 +"
45 +
46 +distutils_enable_tests unittest
47 +
48 +python_compile_all() {
49 + use doc && emake -C doc/info
50 +}
51 +
52 +src_test() {
53 + virtx distutils-r1_src_test
54 +}
55 +
56 +python_install_all() {
57 + use doc && doinfo doc/info/*.info
58 + distutils-r1_python_install_all
59 +}