Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/docker-compose/, app-emulation/docker-compose/files/
Date: Wed, 03 Jun 2020 16:46:13
Message-Id: 1591202686.e89a7dfa80be7d529380536e0f9fc86a85e42afd.sping@gentoo
1 commit: e89a7dfa80be7d529380536e0f9fc86a85e42afd
2 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 3 16:44:12 2020 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 3 16:44:46 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e89a7dfa
7
8 app-emulation/docker-compose: 1.26.0
9
10 Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
11 Package-Manager: Portage-2.3.99, Repoman-2.3.22
12
13 app-emulation/docker-compose/Manifest | 1 +
14 .../docker-compose/docker-compose-1.26.0.ebuild | 72 ++++++++++++++++++++
15 .../files/docker-compose-1.26.0-setup-py.patch | 77 ++++++++++++++++++++++
16 3 files changed, 150 insertions(+)
17
18 diff --git a/app-emulation/docker-compose/Manifest b/app-emulation/docker-compose/Manifest
19 index a6c93098496..fdae55e9579 100644
20 --- a/app-emulation/docker-compose/Manifest
21 +++ b/app-emulation/docker-compose/Manifest
22 @@ -1,2 +1,3 @@
23 DIST docker-compose-1.25.4.tar.gz 306513 BLAKE2B 86c779d794deca7ede0adc80041b17a96b21798d2807065e2c9ea804a95fcaf24a8b92fbcad6c7ce4d1b9d1fb3c9ad348b630e3f10bfd032202995a4c34ab019 SHA512 860153fb603d7efcc76535c9997446a2e6fe18f61769d4f05f51b531902a66072be11e3cff012ba80240b0a7802a032495a2a55e053a9784df92b82e5351b72e
24 DIST docker-compose-1.25.5.tar.gz 308569 BLAKE2B 5d5d1fd60f9bcb87f7e9628dbe10b275996f9af38fb8488a547f4cb5427e6f7aaac09a98a421a0c35a7c2c863713e5de9a490ad21adf080f74a7c3bc4336559b SHA512 efe59bd5e82e12e63c82341ccf5ca11eaebd47c8154a50b40d39bc98ec48c37532919335172a5667f036bab4e884df950ebc4b4ccab8174200cc7ea6683bbbd7
25 +DIST docker-compose-1.26.0.tar.gz 313311 BLAKE2B dc70b7557ce0c51beb177a842f11e16b0e1c4f5ab31f03159b1ffb6f712b884f41bce651e673db63bda4908fd9e7d2c497da3c7568bf038471bad81626e28f25 SHA512 b388f8041b921a0d53d15a8fffb9a1f4d79f40e3eaae073fc043ae74189256a5a24eee9a3c63641e3bfbf43d484da806c2a7d732aad38966ba9fb60d8990f512
26
27 diff --git a/app-emulation/docker-compose/docker-compose-1.26.0.ebuild b/app-emulation/docker-compose/docker-compose-1.26.0.ebuild
28 new file mode 100644
29 index 00000000000..15370a280e3
30 --- /dev/null
31 +++ b/app-emulation/docker-compose/docker-compose-1.26.0.ebuild
32 @@ -0,0 +1,72 @@
33 +# Copyright 2018-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python3_{6,7} )
39 +DISTUTILS_USE_SETUPTOOLS=rdepend
40 +
41 +inherit bash-completion-r1 distutils-r1
42 +
43 +DESCRIPTION="Multi-container orchestration for Docker"
44 +HOMEPAGE="https://github.com/docker/compose"
45 +SRC_URI="https://github.com/docker/compose/archive/${PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="Apache-2.0"
48 +SLOT="0"
49 +KEYWORDS="~amd64"
50 +IUSE="test"
51 +RESTRICT="!test? ( test )"
52 +
53 +RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
54 + >=dev-python/cached-property-1.2.0[${PYTHON_USEDEP}]
55 + >=dev-python/distro-1.5.0[${PYTHON_USEDEP}]
56 + >=dev-python/docker-py-3.7.0[${PYTHON_USEDEP}]
57 + >=dev-python/dockerpty-0.4.1[${PYTHON_USEDEP}]
58 + >=dev-python/docopt-0.6.1[${PYTHON_USEDEP}]
59 + >=dev-python/python-dotenv-0.13.0[${PYTHON_USEDEP}]
60 + >=dev-python/jsonschema-2.5.1[${PYTHON_USEDEP}]
61 + dev-python/paramiko[${PYTHON_USEDEP}]
62 + >=dev-python/PySocks-1.6.0[${PYTHON_USEDEP}]
63 + >=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
64 + >=dev-python/requests-2.20.0[${PYTHON_USEDEP}]
65 + >=dev-python/six-1.3.0[${PYTHON_USEDEP}]
66 + >=dev-python/texttable-0.9.0[${PYTHON_USEDEP}]
67 + >=dev-python/websocket-client-0.32.0[${PYTHON_USEDEP}]"
68 +
69 +DEPEND="${RDEPEND}
70 + test? (
71 + >=dev-python/pytest-5[${PYTHON_USEDEP}]
72 + >=dev-python/ddt-1.2.2[${PYTHON_USEDEP}]
73 + )"
74 +
75 +S="${WORKDIR}/compose-${PV}"
76 +
77 +PATCHES=(
78 + # Bug #679968 -- https://bugs.gentoo.org/679968
79 + # Bug #681002 -- https://bugs.gentoo.org/681002
80 + "${FILESDIR}"/${PN}-1.26.0-setup-py.patch
81 +)
82 +
83 +DOCS=( CHANGELOG.md README.md )
84 +
85 +src_prepare() {
86 + # Address QA issue "docker-compose.exe: missing alias (symlink) for completed command."
87 + sed 's,^\(complete.*\) docker-compose\.exe\(.*\),\1\2,' -i contrib/completion/bash/docker-compose || die
88 +
89 + default
90 +}
91 +
92 +python_test() {
93 + distutils_install_for_testing
94 + ${PYTHON} -m pytest tests/unit/ || die "tests failed under ${EPYTHON}"
95 +}
96 +
97 +python_install_all() {
98 + newbashcomp contrib/completion/bash/docker-compose ${PN}
99 +
100 + insinto /usr/share/zsh/site-functions
101 + doins contrib/completion/zsh/*
102 +
103 + distutils-r1_python_install_all
104 +}
105
106 diff --git a/app-emulation/docker-compose/files/docker-compose-1.26.0-setup-py.patch b/app-emulation/docker-compose/files/docker-compose-1.26.0-setup-py.patch
107 new file mode 100644
108 index 00000000000..6ca97583f97
109 --- /dev/null
110 +++ b/app-emulation/docker-compose/files/docker-compose-1.26.0-setup-py.patch
111 @@ -0,0 +1,77 @@
112 +From 7ec7b93f3d2b7daa347d442a525a4cc358b57ed3 Mon Sep 17 00:00:00 2001
113 +From: Sebastian Pipping <sebastian@×××××××.org>
114 +Date: Wed, 3 Jun 2020 17:04:41 +0200
115 +Subject: [PATCH] setup.py: Drop generic upper version boundaries
116 +
117 +---
118 + setup.py | 44 ++++++++++++++++++++++----------------------
119 + 1 file changed, 22 insertions(+), 22 deletions(-)
120 +
121 +diff --git a/setup.py b/setup.py
122 +index efc144b..2f4d1cb 100644
123 +--- a/setup.py
124 ++++ b/setup.py
125 +@@ -30,38 +30,38 @@ def find_version(*file_paths):
126 +
127 +
128 + install_requires = [
129 +- 'cached-property >= 1.2.0, < 2',
130 +- 'docopt >= 0.6.1, < 1',
131 +- 'PyYAML >= 3.10, < 6',
132 +- 'requests >= 2.20.0, < 3',
133 +- 'texttable >= 0.9.0, < 2',
134 +- 'websocket-client >= 0.32.0, < 1',
135 +- 'distro >= 1.5.0, < 2',
136 +- 'docker[ssh] >= 3.7.0, < 5',
137 +- 'dockerpty >= 0.4.1, < 1',
138 +- 'six >= 1.3.0, < 2',
139 +- 'jsonschema >= 2.5.1, < 4',
140 +- 'python-dotenv >= 0.13.0, < 1',
141 ++ 'cached-property >= 1.2.0',
142 ++ 'docopt >= 0.6.1',
143 ++ 'PyYAML >= 3.10',
144 ++ 'requests >= 2.20.0',
145 ++ 'texttable >= 0.9.0',
146 ++ 'websocket-client >= 0.32.0',
147 ++ 'distro >= 1.5.0',
148 ++ 'docker[ssh] >= 3.7.0',
149 ++ 'dockerpty >= 0.4.1',
150 ++ 'six >= 1.3.0',
151 ++ 'jsonschema >= 2.5.1',
152 ++ 'python-dotenv >= 0.13.0',
153 + ]
154 +
155 +
156 + tests_require = [
157 +- 'ddt >= 1.2.2, < 2',
158 +- 'pytest < 6',
159 ++ 'ddt >= 1.2.2',
160 ++ 'pytest',
161 + ]
162 +
163 +
164 + if sys.version_info[:2] < (3, 4):
165 +- tests_require.append('mock >= 1.0.1, < 4')
166 ++ tests_require.append('mock >= 1.0.1')
167 +
168 + extras_require = {
169 +- ':python_version < "3.2"': ['subprocess32 >= 3.5.4, < 4'],
170 +- ':python_version < "3.4"': ['enum34 >= 1.0.4, < 2'],
171 +- ':python_version < "3.5"': ['backports.ssl_match_hostname >= 3.5, < 4'],
172 +- ':python_version < "3.3"': ['backports.shutil_get_terminal_size == 1.0.0',
173 +- 'ipaddress >= 1.0.16, < 2'],
174 +- ':sys_platform == "win32"': ['colorama >= 0.4, < 1'],
175 +- 'socks': ['PySocks >= 1.5.6, != 1.5.7, < 2'],
176 ++ ':python_version < "3.2"': ['subprocess32 >= 3.5.4'],
177 ++ ':python_version < "3.4"': ['enum34 >= 1.0.4'],
178 ++ ':python_version < "3.5"': ['backports.ssl_match_hostname >= 3.5'],
179 ++ ':python_version < "3.3"': ['backports.shutil_get_terminal_size >= 1.0.0',
180 ++ 'ipaddress >= 1.0.16'],
181 ++ ':sys_platform == "win32"': ['colorama >= 0.4'],
182 ++ 'socks': ['PySocks >= 1.5.6, != 1.5.7'],
183 + 'tests': tests_require,
184 + }
185 +
186 +--
187 +2.26.2
188 +