aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGalen Abell <galen@galenabell.com>2020-04-04 16:13:46 +0000
committerRasmus Thomsen <oss@cogitri.dev>2020-04-04 16:13:46 +0000
commitf792f7135f9f17d164323239e5b9eab4df8efd58 (patch)
treefa6421cb3bbbfbc050c7d0f17d1776dea1cf42c2
parent901c1eb1775031335f6961b06de94d699b54cff1 (diff)
downloadaports-f792f7135f9f17d164323239e5b9eab4df8efd58.tar.bz2
aports-f792f7135f9f17d164323239e5b9eab4df8efd58.tar.xz
testing/toot: new aport
https://github.com/ihabunek/toot mastodon cli & tui testing/
-rw-r--r--testing/toot/01-skip-version-test.patch15
-rw-r--r--testing/toot/APKBUILD32
2 files changed, 47 insertions, 0 deletions
diff --git a/testing/toot/01-skip-version-test.patch b/testing/toot/01-skip-version-test.patch
new file mode 100644
index 0000000000..d97d13ada3
--- /dev/null
+++ b/testing/toot/01-skip-version-test.patch
@@ -0,0 +1,15 @@
+Skip the version test, since it breaks even with proper PYTHONPATH
+diff --git a/tests/test_version.py b/tests/test_version.py
+deleted file mode 100644
+index 375c431..0000000
+--- a/tests/test_version.py
++++ /dev/null
+@@ -1,8 +0,0 @@
+-import toot
+-from pkg_resources import get_distribution
+-
+-
+-def test_version():
+- """Version specified in __version__ should be the same as the one
+- specified in setup.py."""
+- assert toot.__version__ == get_distribution('toot').version
diff --git a/testing/toot/APKBUILD b/testing/toot/APKBUILD
new file mode 100644
index 0000000000..2673c79a62
--- /dev/null
+++ b/testing/toot/APKBUILD
@@ -0,0 +1,32 @@
+# Contributor: Galen Abell <galen@galenabell.com>
+# Maintainer: Galen Abell <galen@galenabell.com>
+pkgname=toot
+_pyname=toot
+pkgver=0.25.2
+pkgrel=0
+pkgdesc="mastodon cli & tui"
+url="https://github.com/ihabunek/toot"
+arch="noarch"
+license="GPL-3.0-only"
+depends="python3 py3-setuptools py3-requests py3-beautifulsoup4 py3-wcwidth py3-urwid"
+makedepends="python3-dev"
+checkdepends="py3-pytest"
+source="
+ https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz
+ 01-skip-version-test.patch
+ "
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ pytest -v
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="b57bfbbed55a877a4e8635b2c3ec67b804a0e43d5ea7deb8682e511088f5a29f6f112ca2f40f969a1197e93d1116d4cb2f7d23df478e696f5f5e4452131b78f9 toot-0.25.2.tar.gz
+6f32961f322abbb31ed577c13df1532bcd5da6df4aca841128bcfa3b3f7a1199de5971e2cacba0f6f3edb647d1dfe89593213c1df44e58684845c45231f63e19 01-skip-version-test.patch"