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/files/, app-emulation/docker-compose/
Date: Fri, 10 May 2019 22:27:15
Message-Id: 1557527187.da5c9b70bf178b68f852270718ef67dcbbfcb0c7.sping@gentoo
1 commit: da5c9b70bf178b68f852270718ef67dcbbfcb0c7
2 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 10 22:08:44 2019 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Fri May 10 22:26:27 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da5c9b70
7
8 app-emulation/docker-compose: Fix dependencies
9
10 This unblocks system-wide updates of e.g.
11 - dev-python/jsonschema-3.0.1
12 - dev-python/pyyaml-5.1
13 - dev-python/texttable-1.6.1
14 Closes: https://bugs.gentoo.org/681002
15 Bug: https://bugs.gentoo.org/679968
16
17 Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
18 Package-Manager: Portage-2.3.65, Repoman-2.3.12
19
20 .../docker-compose/docker-compose-1.23.2-r1.ebuild | 66 ++++++++++++++++++++++
21 .../files/docker-compose-1.23.2-setup-py.patch | 58 +++++++++++++++++++
22 2 files changed, 124 insertions(+)
23
24 diff --git a/app-emulation/docker-compose/docker-compose-1.23.2-r1.ebuild b/app-emulation/docker-compose/docker-compose-1.23.2-r1.ebuild
25 new file mode 100644
26 index 00000000000..df1a0e87a65
27 --- /dev/null
28 +++ b/app-emulation/docker-compose/docker-compose-1.23.2-r1.ebuild
29 @@ -0,0 +1,66 @@
30 +# Copyright 2018-2019 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python{2_7,3_6} )
36 +
37 +inherit bash-completion-r1 distutils-r1
38 +
39 +DESCRIPTION="Multi-container orchestration for Docker"
40 +HOMEPAGE="https://github.com/docker/compose"
41 +SRC_URI="https://github.com/docker/compose/archive/${PV}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="Apache-2.0"
44 +SLOT="0"
45 +KEYWORDS="~amd64"
46 +IUSE="test"
47 +
48 +RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
49 + >=dev-python/cached-property-1.2.0[${PYTHON_USEDEP}]
50 + >=dev-python/docker-py-3.6.0[${PYTHON_USEDEP}]
51 + >=dev-python/dockerpty-0.4.1[${PYTHON_USEDEP}]
52 + >=dev-python/docopt-0.6.1[${PYTHON_USEDEP}]
53 + >=dev-python/jsonschema-2.5.1[${PYTHON_USEDEP}]
54 + >=dev-python/PySocks-1.6.0[${PYTHON_USEDEP}]
55 + >=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
56 + >=dev-python/requests-2.18.1[${PYTHON_USEDEP}]
57 + >=dev-python/six-1.3.0[${PYTHON_USEDEP}]
58 + >=dev-python/texttable-0.9.0[${PYTHON_USEDEP}]
59 + >=dev-python/websocket-client-0.32.0[${PYTHON_USEDEP}]
60 + $(python_gen_cond_dep '>=dev-python/enum34-1.0.4[${PYTHON_USEDEP}]' 'python2_7' )
61 + $(python_gen_cond_dep '>=dev-python/ipaddress-1.0.16[${PYTHON_USEDEP}]' 'python2_7' )
62 + $(python_gen_cond_dep '>=dev-python/backports-ssl-match-hostname-3.5[${PYTHON_USEDEP}]' 'python2_7' )"
63 +
64 +DEPEND="${RDEPEND}
65 + test? ( dev-python/pytest[${PYTHON_USEDEP}]
66 + $(python_gen_cond_dep '>=dev-python/mock-1.0.1[${PYTHON_USEDEP}]' 'python2_7' ) )"
67 +
68 +S="${WORKDIR}/compose-${PV}"
69 +
70 +PATCHES=(
71 + # Bug #679968 -- https://bugs.gentoo.org/679968
72 + # Bug #681002 -- https://bugs.gentoo.org/681002
73 + "${FILESDIR}"/${PN}-1.23.2-setup-py.patch
74 +)
75 +
76 +src_prepare() {
77 + # Address QA issue "docker-compose.exe: missing alias (symlink) for completed command."
78 + sed 's,^\(complete.*\) docker-compose\.exe\(.*\),\1\2,' -i contrib/completion/bash/docker-compose || die
79 +
80 + default
81 +}
82 +
83 +python_test() {
84 + distutils_install_for_testing
85 + ${PYTHON} -m pytest tests/unit/ || die "tests failed under ${EPYTHON}"
86 +}
87 +
88 +python_install_all() {
89 + newbashcomp contrib/completion/bash/docker-compose ${PN}
90 +
91 + insinto /usr/share/zsh/site-functions
92 + doins contrib/completion/zsh/*
93 +
94 + distutils-r1_python_install_all
95 +}
96
97 diff --git a/app-emulation/docker-compose/files/docker-compose-1.23.2-setup-py.patch b/app-emulation/docker-compose/files/docker-compose-1.23.2-setup-py.patch
98 new file mode 100644
99 index 00000000000..193ece1c09f
100 --- /dev/null
101 +++ b/app-emulation/docker-compose/files/docker-compose-1.23.2-setup-py.patch
102 @@ -0,0 +1,58 @@
103 +From 15b1ac5bfeb0ca2a8524dae10db7573b4efacba9 Mon Sep 17 00:00:00 2001
104 +From: Sebastian Pipping <sebastian@×××××××.org>
105 +Date: Fri, 10 May 2019 23:54:14 +0200
106 +Subject: [PATCH] setup.py: Drop generic upper version boundaries
107 +
108 +---
109 + setup.py | 26 +++++++++++++-------------
110 + 1 file changed, 13 insertions(+), 13 deletions(-)
111 +
112 +diff --git a/setup.py b/setup.py
113 +index 22dafdb..00167ce 100644
114 +--- a/setup.py
115 ++++ b/setup.py
116 +@@ -30,16 +30,16 @@ def find_version(*file_paths):
117 +
118 +
119 + install_requires = [
120 +- 'cached-property >= 1.2.0, < 2',
121 +- 'docopt >= 0.6.1, < 0.7',
122 +- 'PyYAML >= 3.10, < 4',
123 +- 'requests >= 2.6.1, != 2.11.0, != 2.12.2, != 2.18.0, < 2.21',
124 +- 'texttable >= 0.9.0, < 0.10',
125 +- 'websocket-client >= 0.32.0, < 1.0',
126 +- 'docker >= 3.6.0, < 4.0',
127 +- 'dockerpty >= 0.4.1, < 0.5',
128 +- 'six >= 1.3.0, < 2',
129 +- 'jsonschema >= 2.5.1, < 3',
130 ++ 'cached-property >= 1.2.0',
131 ++ 'docopt >= 0.6.1',
132 ++ 'PyYAML >= 3.10',
133 ++ 'requests >= 2.6.1, != 2.11.0, != 2.12.2, != 2.18.0',
134 ++ 'texttable >= 0.9.0',
135 ++ 'websocket-client >= 0.32.0',
136 ++ 'docker >= 3.6.0',
137 ++ 'dockerpty >= 0.4.1',
138 ++ 'six >= 1.3.0',
139 ++ 'jsonschema >= 2.5.1',
140 + ]
141 +
142 +
143 +@@ -52,11 +52,11 @@ if sys.version_info[:2] < (3, 4):
144 + tests_require.append('mock >= 1.0.1')
145 +
146 + extras_require = {
147 +- ':python_version < "3.4"': ['enum34 >= 1.0.4, < 2'],
148 ++ ':python_version < "3.4"': ['enum34 >= 1.0.4'],
149 + ':python_version < "3.5"': ['backports.ssl_match_hostname >= 3.5'],
150 + ':python_version < "3.3"': ['ipaddress >= 1.0.16'],
151 +- ':sys_platform == "win32"': ['colorama >= 0.4, < 0.5'],
152 +- 'socks': ['PySocks >= 1.5.6, != 1.5.7, < 2'],
153 ++ ':sys_platform == "win32"': ['colorama >= 0.4'],
154 ++ 'socks': ['PySocks >= 1.5.6, != 1.5.7'],
155 + }
156 +
157 +
158 +--
159 +2.21.0
160 +