1 |
commit: fe3e64db0c2ad140ead9fe8f1c4781fed1c7adbc |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 29 22:35:10 2020 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 29 22:35:10 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe3e64db |
7 |
|
8 |
app-emulation/docker-compose: py37 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/711092 |
11 |
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
13 |
|
14 |
.../docker-compose/docker-compose-1.25.4-r1.ebuild | 68 ++++++++++++++++++++++ |
15 |
1 file changed, 68 insertions(+) |
16 |
|
17 |
diff --git a/app-emulation/docker-compose/docker-compose-1.25.4-r1.ebuild b/app-emulation/docker-compose/docker-compose-1.25.4-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..b1caca0fcb1 |
20 |
--- /dev/null |
21 |
+++ b/app-emulation/docker-compose/docker-compose-1.25.4-r1.ebuild |
22 |
@@ -0,0 +1,68 @@ |
23 |
+# Copyright 2018-2020 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+PYTHON_COMPAT=( python3_{6,7} ) |
29 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
30 |
+ |
31 |
+inherit bash-completion-r1 distutils-r1 |
32 |
+ |
33 |
+DESCRIPTION="Multi-container orchestration for Docker" |
34 |
+HOMEPAGE="https://github.com/docker/compose" |
35 |
+SRC_URI="https://github.com/docker/compose/archive/${PV}.tar.gz -> ${P}.tar.gz" |
36 |
+ |
37 |
+LICENSE="Apache-2.0" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64" |
40 |
+IUSE="test" |
41 |
+RESTRICT="!test? ( test )" |
42 |
+ |
43 |
+RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
44 |
+ >=dev-python/cached-property-1.2.0[${PYTHON_USEDEP}] |
45 |
+ >=dev-python/docker-py-3.7.0[${PYTHON_USEDEP}] |
46 |
+ >=dev-python/dockerpty-0.4.1[${PYTHON_USEDEP}] |
47 |
+ >=dev-python/docopt-0.6.1[${PYTHON_USEDEP}] |
48 |
+ >=dev-python/jsonschema-2.5.1[${PYTHON_USEDEP}] |
49 |
+ dev-python/paramiko[${PYTHON_USEDEP}] |
50 |
+ >=dev-python/PySocks-1.6.0[${PYTHON_USEDEP}] |
51 |
+ >=dev-python/pyyaml-3.10[${PYTHON_USEDEP}] |
52 |
+ >=dev-python/requests-2.20.0[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/six-1.3.0[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/texttable-0.9.0[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/websocket-client-0.32.0[${PYTHON_USEDEP}]" |
56 |
+ |
57 |
+DEPEND="${RDEPEND} |
58 |
+ test? ( |
59 |
+ <dev-python/pytest-4[${PYTHON_USEDEP}] |
60 |
+ dev-python/ddt[${PYTHON_USEDEP}] |
61 |
+ )" |
62 |
+ |
63 |
+S="${WORKDIR}/compose-${PV}" |
64 |
+ |
65 |
+PATCHES=( |
66 |
+ # Bug #679968 -- https://bugs.gentoo.org/679968 |
67 |
+ # Bug #681002 -- https://bugs.gentoo.org/681002 |
68 |
+ "${FILESDIR}"/${PN}-1.25.2-setup-py.patch |
69 |
+) |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ # Address QA issue "docker-compose.exe: missing alias (symlink) for completed command." |
73 |
+ sed 's,^\(complete.*\) docker-compose\.exe\(.*\),\1\2,' -i contrib/completion/bash/docker-compose || die |
74 |
+ |
75 |
+ default |
76 |
+} |
77 |
+ |
78 |
+python_test() { |
79 |
+ distutils_install_for_testing |
80 |
+ ${PYTHON} -m pytest tests/unit/ || die "tests failed under ${EPYTHON}" |
81 |
+} |
82 |
+ |
83 |
+python_install_all() { |
84 |
+ newbashcomp contrib/completion/bash/docker-compose ${PN} |
85 |
+ |
86 |
+ insinto /usr/share/zsh/site-functions |
87 |
+ doins contrib/completion/zsh/* |
88 |
+ |
89 |
+ distutils-r1_python_install_all |
90 |
+} |