aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-ruamel.yaml/APKBUILD
blob: 774c2af647dd99b54af9595a7a07c10ef77405ee (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=py3-ruamel.yaml
_pyname=ruamel.yaml
pkgver=0.16.7
pkgrel=0
pkgdesc="A YAML parser/emitter"
options="!check" # tests are not included in the latest artifact on PyPI
url="https://sourceforge.net/projects/ruamel-yaml/"
arch="noarch"
license="MIT"
replaces="py-ruamel py3-ruamel"
provides="py-ruamel=$pkgver-r$pkgrel py3-ruamel=$pkgver-r$pkgrel"
depends="py3-ruamel.yaml.clib"
makedepends="python3-dev py3-setuptools"
checkdepends="py3-pytest py3-ruamel.std.pathlib"
source="https://files.pythonhosted.org/packages/source/r/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir" \
		--single-version-externally-managed
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest-3 \
		--deselect=_test/test_issues.py::TestIssues::test_issue_82 \
		--deselect=_test/test_issues.py::TestIssues::test_issue_220 \
		--deselect=_test/test_issues.py::TestIssues::test_issue_238 \
		--deselect=_test/test_yamlobject.py::test_monster \
		--deselect=_test/test_yamlobject.py::test_qualified_name00 \
		_test/test_*.py
}

sha512sums="49ceee329017bb32f9d9de1b1951e95dd561480a7506b3783f6a7a59ae30af83d6ac363654c66b39a532f22d1cb31bcd034e94c9ddcd8381ec4eb76687923c87  ruamel.yaml-0.16.7.tar.gz"