aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/py3-ruamel.yaml/APKBUILD39
1 files changed, 27 insertions, 12 deletions
diff --git a/testing/py3-ruamel.yaml/APKBUILD b/testing/py3-ruamel.yaml/APKBUILD
index 30279a9264..2093132d72 100644
--- a/testing/py3-ruamel.yaml/APKBUILD
+++ b/testing/py3-ruamel.yaml/APKBUILD
@@ -1,22 +1,19 @@
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
-# Maintainer:
+# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=py3-ruamel.yaml
-_pkgname=ruamel.yaml
-pkgver=0.15.90
+pkgver=0.15.91
pkgrel=0
pkgdesc="A YAML parser/emitter"
url="https://bitbucket.org/ruamel/yaml"
arch="all"
license="MIT"
-replaces="py-ruamel py2-ruamel py3-ruamel"
-provides="py-ruamel=$pkgver-r$pkgrel py2-ruamel=$pkgver-r$pkgrel
- py3-ruamel=$pkgver-r$pkgrel"
-depends="python3"
+replaces="py-ruamel py3-ruamel"
+provides="py-ruamel=$pkgver-r$pkgrel py3-ruamel=$pkgver-r$pkgrel"
makedepends="python3-dev py3-setuptools"
-checkdepends=""
-options="!check" # no test suite
-source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
-builddir="$srcdir"/$_pkgname-$pkgver
+checkdepends="py3-pytest py3-ruamel.std.pathlib"
+source="$pkgname-$pkgver.tar.gz::https://bitbucket.org/ruamel/yaml/get/$pkgver.tar.gz"
+# 22286ce99d6552c658cb11d0a8a3c9b962ebe510 0.15.91
+builddir="$srcdir/ruamel-yaml-22286ce99d65"
build() {
cd "$builddir"
@@ -29,4 +26,22 @@ package() {
--single-version-externally-managed
}
-sha512sums="6651ce45927cd70ecc1e5b1b3ccf71b60e0a1cd505a06a2523d89c1c969fc7ba7b115753c365d8aa9550decc67f2d77a58a522c868f1de4a5b4e509c2868481c ruamel.yaml-0.15.90.tar.gz"
+check(){
+ cd "$builddir"
+ _plat_specifier="$(python3 <<-EOF
+ from distutils.util import get_platform
+ from sys import version_info
+
+ print("{}-{}.{}".format(get_platform(), *version_info))
+ EOF
+ )"
+ PYTHONPATH="build/lib.$_plat_specifier" python3 -m pytest \
+ --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="c9c9de649a40cb55953005a2fa991112c34a699409379c3c04d33f9f42efa7d0e43fb4c7e7f5caea1b6a86af4e0785925c541632bca88ab6b9c52969260b705a py3-ruamel.yaml-0.15.91.tar.gz"