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/deprecated/
Date: Fri, 13 May 2022 06:15:40
Message-Id: 1652422525.986e7caf2a0e515529afa4740167291dd0a04eac.mgorny@gentoo
1 commit: 986e7caf2a0e515529afa4740167291dd0a04eac
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 13 05:49:29 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri May 13 06:15:25 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=986e7caf
7
8 dev-python/deprecated: Use PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/deprecated/deprecated-1.2.13-r1.ebuild | 40 +++++++++++++++++++++++
13 1 file changed, 40 insertions(+)
14
15 diff --git a/dev-python/deprecated/deprecated-1.2.13-r1.ebuild b/dev-python/deprecated/deprecated-1.2.13-r1.ebuild
16 new file mode 100644
17 index 000000000000..760bc6cccf9f
18 --- /dev/null
19 +++ b/dev-python/deprecated/deprecated-1.2.13-r1.ebuild
20 @@ -0,0 +1,40 @@
21 +# Copyright 2019-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 @deprecated decorator to deprecate old API"
32 +HOMEPAGE="
33 + https://github.com/tantale/deprecated/
34 + https://pypi.org/project/deprecated/
35 +"
36 +SRC_URI="
37 + https://github.com/tantale/deprecated/archive/v${PV}.tar.gz
38 + -> ${P}.gh.tar.gz
39 +"
40 +
41 +LICENSE="MIT"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
44 +
45 +RDEPEND="
46 + dev-python/wrapt[${PYTHON_USEDEP}]
47 +"
48 +
49 +distutils_enable_tests pytest
50 +
51 +python_test() {
52 + local EPYTEST_DESELECT=()
53 +
54 + [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=(
55 + tests/test_deprecated.py::test_respect_global_filter
56 + tests/test_deprecated_class.py::test_class_respect_global_filter
57 + )
58 +
59 + epytest
60 +}