Subject: [alpine-aports] [PATCH 1/3] testing/py3-dill: new APKBUILD

From: Drew DeVault <[email-masked]>
Date: Wed, 5 Jun 2019 19:44:38 -0400

---
 testing/py3-dill/APKBUILD | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 testing/py3-dill/APKBUILD

diff --git a/testing/py3-dill/APKBUILD b/testing/py3-dill/APKBUILD
new file mode 100644
index 0000000000..160253471e
--- /dev/null
+++ b/testing/py3-dill/APKBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Drew DeVault <[email-masked]>
+pkgname=py3-dill
+_pyname=dill
+pkgver=0.2.9
+pkgrel=0
+pkgdesc="Python serializer supporting a broader range of types than pickle"
+url="https://pypi.org/projects/dill/"
+arch="noarch"
+license="BSD-3-Clause"
+makedepends="python3 py3-setuptools"
+_pypiprefix="${_pyname%${_pyname#?}}"
+source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
+builddir=$srcdir/$_pyname-$pkgver
+
+build() {
+	python3 setup.py build
+}
+
+check() {
+	export PYTHONPATH="$(pwd):$PYTHONPATH"
+	for t in tests/*.py
+	do
+		echo "$t"
+		python3 "$t"
+	done
+}
+
+package() {
+	python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="b395f59a4f45cda0eb82a4ea4da03232a645daeba988b4578f8d62ef3de2b755d04cee53caa19a17ca35b64802312ec92b7d64066b494c4f954a28edcdd7742c  dill-0.2.9.tar.gz"
-- 
2.21.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: Kevin Daudt <[email-masked]>
Date: Mon, 10 Jun 2019 09:41:38 +0200

This has been pushed by Leo

---

---

From: Drew DeVault <[email-masked]>
Date: Wed, 5 Jun 2019 19:44:39 -0400

---
 testing/py3-cloudpickle/APKBUILD | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 testing/py3-cloudpickle/APKBUILD

diff --git a/testing/py3-cloudpickle/APKBUILD b/testing/py3-cloudpickle/APKBUILD
new file mode 100644
index 0000000000..2351542c8c
--- /dev/null
+++ b/testing/py3-cloudpickle/APKBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Drew DeVault <[email-masked]>
+pkgname=py3-cloudpickle
+_pyname=cloudpickle
+pkgver=1.1.1
+pkgrel=0
+pkgdesc="Extended pickling support for Python objects"
+url="https://pypi.org/project/cloudpickle/"
+arch="noarch"
+license="BSD-3-Clause"
+makedepends="python3 py3-setuptools"
+checkdepends="py3-pytest py3-psutil"
+_pypiprefix="${_pyname%${_pyname#?}}"
+source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
+builddir=$srcdir/$_pyname-$pkgver
+options="!check" # upstream test suite is badly broken
+
+build() {
+	python3 setup.py build
+}
+
+check() {
+	python3 setup.py test
+}
+
+package() {
+	python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="db9075552c6ec654bf55a75c1b82278f65c68a1070a39e5a938f526aac9a9979f652a3c46424d2eb4b280015e0f6f1fd09becedb9b2e68fbbaf1d01f71543570  cloudpickle-1.1.1.tar.gz"
-- 
2.21.0

---

---

From: Drew DeVault <[email-masked]>
Date: Wed, 5 Jun 2019 19:44:40 -0400

---
 testing/py-pyro4/APKBUILD  | 60 --------------------------------------
 testing/py3-pyro4/APKBUILD | 30 +++++++++++++++++++
 2 files changed, 30 insertions(+), 60 deletions(-)
 delete mode 100644 testing/py-pyro4/APKBUILD
 create mode 100644 testing/py3-pyro4/APKBUILD

diff --git a/testing/py-pyro4/APKBUILD b/testing/py-pyro4/APKBUILD
deleted file mode 100644
index 569b102d9d..0000000000
--- a/testing/py-pyro4/APKBUILD
+++ /dev/null
@@ -1,60 +0,0 @@
-# Maintainer: Drew DeVault <[email-masked]>
-pkgname=py-pyro4
-_pyname=Pyro4
-pkgver=4.75
-pkgrel=1
-pkgdesc="Python remote objects"
-url="http://pyro4.readthedocs.io/"
-arch="noarch"
-license="MIT"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
-_py2_deps="py2-serpent"
-_py3_deps="py3-serpent"
-makedepends="$_py2_deps $_py3_deps python2 python3 py2-setuptools py3-setuptools"
-_pypiprefix="${_pyname%${_pyname#?}}"
-source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
-builddir=$srcdir/$_pyname-$pkgver
-
-prepare() {
-	cp -r "$builddir" "$builddir"-py2
-}
-
-build() {
-	cd "$builddir"
-	python3 setup.py build
-	cd "$builddir"-py2
-	python2 setup.py build
-}
-
-check() {
-	cd "$builddir"
-	python3 setup.py test
-	cd "$builddir"-py2
-	python2 setup.py test
-}
-
-package() {
-	mkdir -p "$pkgdir"
-}
-
-_py2() {
-	depends="$_py2_deps"
-	cd "$builddir"-py2
-	_py python2
-}
-
-_py3() {
-	depends="$_py3_deps"
-	cd "$builddir"
-	_py python3
-}
-
-_py() {
-	_python="$1"
-	pkgdesc="$pkgdesc (for $_python)"
-	depends="$depends $_python"
-	install_if="$pkgname=$pkgver-r$pkgrel $_python"
-	$_python setup.py install --prefix=/usr --root="$subpkgdir"
-}
-
-sha512sums="ecbf514ad6c877eb3166cad2ec70e16b148995a93562d737e17a8f0e222c647dd352271c383c7ba3cdf41e4678f81af34a761e9e3a74ba2dc4984dc86c158b0f  Pyro4-4.75.tar.gz"
diff --git a/testing/py3-pyro4/APKBUILD b/testing/py3-pyro4/APKBUILD
new file mode 100644
index 0000000000..616639d7e6
--- /dev/null
+++ b/testing/py3-pyro4/APKBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Drew DeVault <[email-masked]>
+pkgname=py3-pyro4
+_pyname=Pyro4
+pkgver=4.76
+pkgrel=0
+pkgdesc="Python remote objects"
+url="http://pyro4.readthedocs.io/"
+arch="noarch"
+license="MIT"
+depends="py3-serpent"
+makedepends="python3 py3-setuptools"
+checkdepends="py3-msgpack py3-dill py3-cloudpickle"
+_pypiprefix="${_pyname%${_pyname#?}}"
+source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
+builddir=$srcdir/$_pyname-$pkgver
+replaces="py-pyro4 py2-pyro4"
+
+build() {
+	python3 setup.py build
+}
+
+check() {
+	python3 setup.py test
+}
+
+package() {
+	python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="48cc63bc74d483fff1b4bac2dd9ecf7576503bfd91e721512a5cea2b5a115ad6480ad0524218aee31e412a867261a9e838d85650dd0f7a87593a4a03cfc5cdc3  Pyro4-4.76.tar.gz"
-- 
2.21.0

---