blob: d7421851915f0ed56d4fbd3335c3d6d8c42f2479 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=docker-compose
pkgver=1.24.1
pkgrel=2
pkgdesc="Define and run multi-container applications with Docker"
url="https://docs.docker.com/compose/"
arch="noarch"
license="Apache-2.0"
options="!check" # test suite does not work
depends="python3
py3-setuptools
docker-py>=3.4.1
dockerpy-creds>=0.3.0
py3-cached-property>=1.3.0
py3-certifi>=2017.4.17
py3-chardet>=3.0.4
py3-dockerpty>=0.4.1
py3-docopt>=0.6.2
py3-idna>=2.5
py3-ipaddress>=1.0.18
py3-jsonschema>=2.6.0
py3-paramiko
py3-pysocks>=1.6.7
py3-requests>=2.19.1
py3-six>=1.10.0
py3-texttable>=0.9.1
py3-urllib3>=1.21.1
py3-websocket-client>=0.32.0
py3-yaml>=3.12
"
checkdepends="py3-pytest py3-nose py3-mock py3-flake8 py3-coverage"
subpackages="
$pkgname-bash-completion:bashcomp:noarch
$pkgname-zsh-completion:zshcomp:noarch
$pkgname-fish-completion:fishcomp:noarch
"
source="docker-compose-$pkgver.tar.gz::https://github.com/docker/compose/archive/$pkgver.tar.gz"
builddir="$srcdir/compose-$pkgver"
build() {
# allow newer version of dependencies
sed -e 's/, < [0-9.]\+//' -i setup.py
python3 setup.py build
}
check() {
# many of the tests fail. need more investigation
python3 setup.py test
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
install -Dm0644 "$builddir"/contrib/completion/bash/docker-compose \
"$pkgdir"/usr/share/bash-completion/completions/docker-compose
install -Dm0644 "$builddir"/contrib/completion/zsh/_docker-compose \
"$pkgdir"/usr/share/zsh/site-functions/_docker-compose
install -Dm0644 "$builddir"/contrib/completion/fish/docker-compose.fish \
"$pkgdir"/usr/share/fish/completions/docker-compose.fish
}
bashcomp() {
depends=""
pkgdesc="Bash completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
install -Dm644 "$pkgdir"/usr/share/bash-completion/completions/docker-compose \
"$subpkgdir"/usr/share/bash-completion/completions/docker-compose
}
zshcomp() {
depends=""
pkgdesc="Zsh compltions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel zsh"
install -Dm644 "$pkgdir"/usr/share/zsh/site-functions/_docker-compose \
"$subpkgdir"/usr/share/zsh/site-functions/_docker-compose
}
fishcomp() {
depends=""
pkgdesc="Fish completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel fish"
install -Dm644 "$pkgdir"/usr/share/fish/completions/docker-compose.fish \
"$subpkgdir"/usr/share/fish/completions/docker-compose.fish
}
sha512sums="9b8632ef263b8dfa678e8b99b46e00441f779716a524280ce25f62fcd2605f400723b7790c466338374c34653946dc2c5d7f09593ddd892fee3409c2a2fd1a5f docker-compose-1.24.1.tar.gz"
|