aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorKeith Maxwell <keith.maxwell@gmail.com>2019-04-11 12:15:21 +0100
committerLeonardo Arena <rnalrd@alpinelinux.org>2019-04-12 10:01:03 +0000
commitb4382e8a2fa26e14f3b46f4fcf9d0acbefd19ce4 (patch)
tree9ab7b5c1307318ccaa2bff9fe37ca6980da1e326 /testing
parent95ef6e3c0d47b7f6ba32d6d75769737c40aeaf7f (diff)
downloadaports-b4382e8a2fa26e14f3b46f4fcf9d0acbefd19ce4.tar.bz2
aports-b4382e8a2fa26e14f3b46f4fcf9d0acbefd19ce4.tar.xz
testing/py3-ruamel.yaml: upgrade to 0.15.91
- Switch to auto generated BitBucket source archive as the author doesn't want to include the test suite in release artifacts [1] - Run test suite in check() with 6 of c. 350 disabled because they are run in a temporary folder and fail without the package installed - Allow abuild to autodetect python3 - Python 3 only package so doesn't provide or replace Python 2 packages [1] https://bitbucket.org/ruamel/yaml/issues/17/test-roundtrippy-absent-from-release#comment-24925407
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"