summaryrefslogtreecommitdiff
path: root/community/docker-compose/APKBUILD
blob: 8b878dfd3e2ab3e844d6ef36df9b69cb27733c74 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=docker-compose
pkgver=1.29.2
pkgrel=3
pkgdesc="Define and run multi-container applications with Docker"
url="https://docs.docker.com/compose/"
arch="noarch"
license="Apache-2.0"
options="!check" # requires a running docker engine

# dependencies are sorted like in requirements.txt
depends="python3
	py3-setuptools
	py3-cached-property>=1.5.1
	py3-certifi>=2020.4.5.1
	py3-chardet>=3.0.4
	py3-distro>=1.5.0
	docker-py>=4.2.2
	dockerpy-creds>=0.4.0
	py3-dockerpty>=0.4.1
	py3-docopt>=0.6.2
	py3-idna>=2.8
	py3-ipaddress>=1.0.23
	py3-jsonschema>=3.2.0
	py3-paramiko>=2.7.1
	py3-pysocks>=1.7.1
	py3-dotenv>=0.13.0
	py3-yaml>=5.3
	py3-requests>=2.22.0
	py3-texttable>=1.6.2
	py3-websocket-client>=0.57.0
	"
checkdepends="bash docker py3-pytest py3-nose py3-mock py3-flake8 py3-coverage"
subpackages="$pkgname-bash-completion $pkgname-zsh-completion $pkgname-fish-completion"
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() {
	script/test/default
}

package() {
	python3 setup.py install --skip-build --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
}

sha512sums="
09f2ae2ae7a17ab5fb3e22580f7a80f1a8253f7ad9fc8f29aca432911bcde46ed22030ff3073cdd7eff3d55aaba17f56e628a178ec05c3a9b4f28495d6045111  docker-compose-1.29.2.tar.gz
"