aboutsummaryrefslogtreecommitdiffstats
path: root/community/docker-compose/APKBUILD
blob: 924bf8d39b150eda6cdef229f1b7d3f1f52397c9 (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=docker-compose
pkgver=1.27.4
pkgrel=0
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 --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
}

sha512sums="b41b7cf88b1380021a30f9becb7567d1e154ef875c42b37483673b5107f1a26dae6868b92c6a61f695001eb63759b25f3729e6783272eb784047717cafea3b80  docker-compose-1.27.4.tar.gz"