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/pyxdg/
Date: Fri, 20 May 2022 18:01:44
Message-Id: 1653069691.fe754f0c7a625eb01996dd71e303fa1b4b843134.andrewammerlaan@gentoo
1 commit: fe754f0c7a625eb01996dd71e303fa1b4b843134
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 20 17:53:10 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Fri May 20 18:01:31 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe754f0c
7
8 dev-python/pyxdg: update EAPI 7 -> 8, py3.11, PEP517, nose -> pytest
9
10 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
11
12 dev-python/pyxdg/pyxdg-0.27-r1.ebuild | 30 ++++++++++++++++++++++++++++++
13 1 file changed, 30 insertions(+)
14
15 diff --git a/dev-python/pyxdg/pyxdg-0.27-r1.ebuild b/dev-python/pyxdg/pyxdg-0.27-r1.ebuild
16 new file mode 100644
17 index 000000000000..4361e4055cf8
18 --- /dev/null
19 +++ b/dev-python/pyxdg/pyxdg-0.27-r1.ebuild
20 @@ -0,0 +1,30 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +MY_P="${PN}-rel-${PV}"
27 +PYTHON_COMPAT=( python3_{8..11} )
28 +DISTUTILS_USE_PEP517=setuptools
29 +
30 +inherit distutils-r1
31 +
32 +DESCRIPTION="A Python module to deal with freedesktop.org specifications"
33 +HOMEPAGE="https://freedesktop.org/wiki/Software/pyxdg https://cgit.freedesktop.org/xdg/pyxdg/"
34 +SRC_URI="https://github.com/takluyver/${PN}/archive/rel-${PV}.tar.gz -> ${MY_P}.tar.gz"
35 +S="${WORKDIR}/${MY_P}"
36 +
37 +LICENSE="LGPL-2"
38 +SLOT="0"
39 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
40 +
41 +distutils_enable_tests pytest
42 +
43 +python_test() {
44 + # epytest does not work here for some reason:
45 + # No such file or directory: '-vv'
46 + #
47 + # Can't import xdg unless already installed,
48 + # workaround with PYTHONPATH
49 + PYTHONPATH="${S}" pytest test/* -vv || die "Tests failed with ${EPYTHON}"
50 +}