1 |
commit: a7a79b82d38c779754a945e63f1b032c120a7d87 |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 7 11:30:19 2021 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 22 23:00:10 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7a79b82 |
7 |
|
8 |
app-emulation/docker-compose: enable py3.10, use epytest |
9 |
|
10 |
Also rely on distutils_enable_tests to set RESTRICT and IUSE. |
11 |
|
12 |
Closes: https://github.com/gentoo/gentoo/pull/21905 |
13 |
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> |
14 |
|
15 |
app-emulation/docker-compose/docker-compose-1.29.2.ebuild | 10 +++++----- |
16 |
1 file changed, 5 insertions(+), 5 deletions(-) |
17 |
|
18 |
diff --git a/app-emulation/docker-compose/docker-compose-1.29.2.ebuild b/app-emulation/docker-compose/docker-compose-1.29.2.ebuild |
19 |
index cec99a23828..f61fc3f500a 100644 |
20 |
--- a/app-emulation/docker-compose/docker-compose-1.29.2.ebuild |
21 |
+++ b/app-emulation/docker-compose/docker-compose-1.29.2.ebuild |
22 |
@@ -3,7 +3,7 @@ |
23 |
|
24 |
EAPI=7 |
25 |
|
26 |
-PYTHON_COMPAT=( python3_{7,8,9} ) |
27 |
+PYTHON_COMPAT=( python3_{8..10} ) |
28 |
DISTUTILS_USE_SETUPTOOLS=rdepend |
29 |
|
30 |
inherit bash-completion-r1 distutils-r1 |
31 |
@@ -16,10 +16,8 @@ SRC_URI="https://github.com/docker/compose/archive/${MY_PV}.tar.gz -> ${P}.tar.g |
32 |
LICENSE="Apache-2.0" |
33 |
SLOT="0" |
34 |
KEYWORDS="amd64 arm64" |
35 |
-IUSE="test" |
36 |
-RESTRICT="!test? ( test )" |
37 |
|
38 |
-RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
39 |
+RDEPEND=" |
40 |
>=dev-python/cached-property-1.2.0[${PYTHON_USEDEP}] |
41 |
>=dev-python/distro-1.5.0[${PYTHON_USEDEP}] |
42 |
>=dev-python/docker-py-5[${PYTHON_USEDEP}] |
43 |
@@ -43,6 +41,8 @@ DEPEND="${RDEPEND} |
44 |
|
45 |
S="${WORKDIR}/compose-${MY_PV}" |
46 |
|
47 |
+distutils_enable_tests pytest |
48 |
+ |
49 |
PATCHES=( |
50 |
# Bug #679968 -- https://bugs.gentoo.org/679968 |
51 |
# Bug #681002 -- https://bugs.gentoo.org/681002 |
52 |
@@ -60,7 +60,7 @@ src_prepare() { |
53 |
|
54 |
python_test() { |
55 |
distutils_install_for_testing |
56 |
- ${PYTHON} -m pytest tests/unit/ || die "tests failed under ${EPYTHON}" |
57 |
+ epytest tests/unit/ |
58 |
} |
59 |
|
60 |
python_install_all() { |