aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Polański <michal@polanski.me>2020-03-02 18:20:09 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-03-03 04:45:20 -0300
commitb897ea6a4a8a88722b3a2fb162e0eb156e7859b4 (patch)
tree6f0bbb7ce7f3b46222723535915705d33afdc6ad
parent24c1641729ffe3a8bad3d0c3fbfdd1b9d9714f03 (diff)
downloadaports-b897ea6a4a8a88722b3a2fb162e0eb156e7859b4.tar.bz2
aports-b897ea6a4a8a88722b3a2fb162e0eb156e7859b4.tar.xz
main/py3-click: upgrade to 7.0
- add tests - update url
-rw-r--r--main/py3-click/APKBUILD19
1 files changed, 11 insertions, 8 deletions
diff --git a/main/py3-click/APKBUILD b/main/py3-click/APKBUILD
index 6d155f93e3..4069d1fcac 100644
--- a/main/py3-click/APKBUILD
+++ b/main/py3-click/APKBUILD
@@ -1,29 +1,32 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-click
-_pkgname=click
-pkgver=6.7
-pkgrel=5
+_pkgname=Click
+pkgver=7.0
+pkgrel=0
pkgdesc="A simple wrapper around optparse for powerful command line utilities"
-url="http://click.pocoo.org/"
+url="https://click.palletsprojects.com"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools"
-source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+checkdepends="py3-pytest"
+source="https://files.pythonhosted.org/packages/source/c/click/Click-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
replaces="py-click" # Backwards compatibility
provides="py-click=$pkgver-r$pkgrel" # Backwards compatibility
build() {
- cd "$builddir"
python3 setup.py build
}
+check() {
+ PYTHONPATH="$PWD"/build/lib pytest -v tests
+}
+
package() {
- cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-sha512sums="d454369fe1acb01c2210a61e15f45ac9cc77102c93345257f4ef3090bd8f31f1ccc49d9fd6ea670cddca9f715ad5db29368b4eecd95abff50d1033c4f7a967d6 click-6.7.tar.gz"
+sha512sums="a7632989cde7c7eb2f535915a7a8220cb48d1ab8dd3527c4103518d4ac86287fea3488a5e0ce9f2968a4b6c52fe6ca4bc2480d0bf10f7084a4b17d31e803a92b Click-7.0.tar.gz"