Mail archive
alpine-aports

[alpine-aports] [PATCH v3 09/10] main/py-six: adopt

From: Drew DeVault <sir_at_cmpwn.com>
Date: Wed, 3 Apr 2019 16:16:41 -0400

---
 main/py-six/APKBUILD | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/main/py-six/APKBUILD b/main/py-six/APKBUILD
index 1c9b5d097d..d154f0182b 100644
--- a/main/py-six/APKBUILD
+++ b/main/py-six/APKBUILD
_at_@ -1,19 +1,22 @@
-# Contributor: 
-# Maintainer: 
+# Maintainer: Drew DeVault <sir_at_cmpwn.com>
 pkgname=py-six
 _pkgname=six
 pkgver=1.12.0
-pkgrel=0
+pkgrel=1
 pkgdesc="Python 2 and 3 compatibility library"
 url="https://pypi.python.org/pypi/six"
 arch="noarch"
 license="MIT"
-depends=""
-checkdepends="pytest"
-makedepends="python2-dev python3-dev py-setuptools"
+checkdepends="pytest py3-pytest"
+makedepends="python2-dev python3-dev py2-setuptools py3-setuptools"
 subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2"
 source="$pkgname-$pkgver.tar.gz::https://github.com/benjaminp/$_pkgname/archive/$pkgver.tar.gz"
 builddir="$srcdir/$_pkgname-$pkgver"
+if [ -n "$BOOTSTRAP" ]
+then
+	# circular dependency with pytest
+	options="!check"
+fi
 
 build() {
 	python2 setup.py build
_at_@ -21,8 +24,8 @@ build() {
 }
 
 check() {
-        python2 -m pytest -rfsxX
-        python3 -m pytest -rfsxX
+	python2 -m pytest -rfsxX
+	python3 -m pytest -rfsxX
 }
 
 package() {
_at_@ -41,6 +44,7 @@ _py() {
 
 _py2() {
 	replaces="$pkgname"
+	depends="$depends py-enum34"
 	_py python2
 }
 
-- 
2.21.0
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Wed Apr 03 2019 - 16:16:41 UTC