aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2020-07-10 00:29:56 +0300
committerprspkt <prspkt@protonmail.com>2020-07-09 21:57:27 +0000
commit80d36970b354fdadf0932db0f6930e28a819aa6b (patch)
tree425886645539be4eac2912b4db78baa60a4a340b
parentbcb91932e1d97ac7bf982d90654eff7f51132b73 (diff)
downloadaports-80d36970b354fdadf0932db0f6930e28a819aa6b.tar.gz
aports-80d36970b354fdadf0932db0f6930e28a819aa6b.tar.bz2
aports-80d36970b354fdadf0932db0f6930e28a819aa6b.tar.xz
testing/py3-dpath: upgrade to 2.0.1
* Modernize. * Add checkdepends and run test suite.
-rw-r--r--testing/py3-dpath/APKBUILD15
1 files changed, 9 insertions, 6 deletions
diff --git a/testing/py3-dpath/APKBUILD b/testing/py3-dpath/APKBUILD
index b46872ac6f..e4de8c8c67 100644
--- a/testing/py3-dpath/APKBUILD
+++ b/testing/py3-dpath/APKBUILD
@@ -2,8 +2,8 @@
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-dpath
_pkgname=dpath
-pkgver=1.4.2
-pkgrel=3
+pkgver=2.0.1
+pkgrel=0
pkgdesc="Filesystem-like pathing and searching for dictionaries"
url="https://www.github.com/akesterson/dpath-python"
arch="noarch"
@@ -11,19 +11,22 @@ license="MIT"
replaces="py-dpath" # for backwards compatibility
provides="py-dpath=$pkgver-r$pkgrel" # for backwards compatibility
depends="python3"
-makedepends="python3-dev py3-setuptools"
+makedepends="py3-setuptools"
+checkdepends="py3-hypothesis py3-mock py3-nose py3-pytest"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
- cd "$builddir"
python3 setup.py build
}
+check() {
+ PYTHONPATH="$builddir"/build/lib pytest-3
+}
+
package() {
- cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-sha512sums="8b868ba63a810ef18a58a6452cf6f30eeeee44ea4bd27dbc7d0efcce116adcbb3e2793e89bf94a5aa2d8ec893f96c32dd523f102e5a0da5124a88c7d1dff00d2 dpath-1.4.2.tar.gz"
+sha512sums="4f4c2ccb91fe818127505e909c2021fec4ebf730d791ff12de720eddbb5c3f08f158e07f80332f7ab9450961a8eca92c51d9eba17fb3a3df2c34aee2dc655613 dpath-2.0.1.tar.gz"