---
main/py-werkzeug/APKBUILD | 31 ++++++++++++++-----
.../disable-monkeypatched-sleep-test.patch | 10 ++++++
2 files changed, 33 insertions(+), 8 deletions(-)
create mode 100644 main/py-werkzeug/disable-monkeypatched-sleep-test.patch
diff --git a/main/py-werkzeug/APKBUILD b/main/py-werkzeug/APKBUILD
index 5ad869441d..3d5f141340 100644
--- a/main/py-werkzeug/APKBUILD
+++ b/main/py-werkzeug/APKBUILD
_at_@ -3,34 +3,50 @@
pkgname=py-werkzeug
_pkgname=Werkzeug
pkgver=0.14.1
-pkgrel=0
+pkgrel=1
pkgdesc="The WSGI swiss-army knife"
url="http://werkzeug.pocoo.org/"
arch="noarch"
license="MIT"
-depends=""
makedepends="python2-dev python3-dev py-setuptools"
+checkdepends="pytest"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
-source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+source="
+ https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
+ disable-monkeypatched-sleep-test.patch
+"
builddir="$srcdir/$_pkgname-$pkgver"
+prepare() {
+ default_prepare
+ cp -r "$builddir" "$builddir"-py3
+}
+
build() {
cd "$builddir"
-
python2 setup.py build
+ cd "$builddir"-py3
python3 setup.py build
}
+check() {
+ cd "$builddir"
+ pytest-2
+ cd "$builddir"-py3
+ pytest-3
+}
+
package() {
mkdir -p "$pkgdir"
}
_py2() {
- replaces="$pkgname"
+ cd "$builddir"
_py python2
}
_py3() {
+ cd "$builddir"-py3
_py python3
}
_at_@ -39,9 +55,8 @@ _py() {
pkgdesc="$pkgdesc (for $python)"
depends="$depends $python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
-
- cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
-sha512sums="64976cc46c1cee2203112c50aba6f9404d4e48d4a90f8b11837148b5415a28572b7e706095586045a46879e853fc5a80c63e7bf0c13eda29d564a37b4a554c0b Werkzeug-0.14.1.tar.gz"
+sha512sums="64976cc46c1cee2203112c50aba6f9404d4e48d4a90f8b11837148b5415a28572b7e706095586045a46879e853fc5a80c63e7bf0c13eda29d564a37b4a554c0b Werkzeug-0.14.1.tar.gz
+797fadb81cc6eee841eb57c481b0349a41950640be2c796679f3d9c9613098113ccacb9a585a3f9fb79f2db019f5264de6d15b59c556c028240d0d1612e5213c disable-monkeypatched-sleep-test.patch"
diff --git a/main/py-werkzeug/disable-monkeypatched-sleep-test.patch b/main/py-werkzeug/disable-monkeypatched-sleep-test.patch
new file mode 100644
index 0000000000..57e36717e9
--- /dev/null
+++ b/main/py-werkzeug/disable-monkeypatched-sleep-test.patch
_at_@ -0,0 +1,10 @@
+--- Werkzeug-0.14.1-orig/tests/test_serving.py
++++ Werkzeug-0.14.1/tests/test_serving.py
+_at_@ -265,6 +265,7 @@
+
+
+ def test_monkeypached_sleep(tmpdir):
++ return # Broken on Alpine
+ # removing the staticmethod wrapper in the definition of
+ # ReloaderLoop._sleep works most of the time, since `sleep` is a c
+ # function, and unlike python functions which are descriptors, doesn't
--
2.20.1
---
Unsubscribe: alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help: alpine-aports+help_at_lists.alpinelinux.org
---
Received on Thu Feb 07 2019 - 08:26:17 UTC