[arch-commits] Commit in qtile/trunk (PKGBUILD)

David Runge dvzrv at archlinux.org
Wed Aug 12 20:06:01 UTC 2020


    Date: Wednesday, August 12, 2020 @ 20:06:01
  Author: dvzrv
Revision: 676682

upgpkg: qtile 0.16.1-1: Upgrade to 0.16.1.

Add most tests back, as pytest now returns properly \o/.
Add python-setuptools_scm as makedepends and remove python-six from depends.

Modified:
  qtile/trunk/PKGBUILD

----------+
 PKGBUILD |   49 +++++++++++++++++++++++++++----------------------
 1 file changed, 27 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-08-12 20:05:51 UTC (rev 676681)
+++ PKGBUILD	2020-08-12 20:06:01 UTC (rev 676682)
@@ -1,7 +1,7 @@
 # Maintainer: David Runge <dvzrv at archlinux.org>
 
 pkgname=qtile
-pkgver=0.15.1
+pkgver=0.16.1
 pkgrel=1
 pkgdesc="A full-featured, pure-Python tiling window manager"
 arch=('x86_64')
@@ -8,9 +8,9 @@
 url="http://www.qtile.org"
 license=('MIT')
 depends=('gdk-pixbuf2' 'pango' 'python-cffi' 'python-xcffib' 'python-cairocffi'
-'python-dbus' 'python-gobject' 'python-setuptools' 'python-six')
+'python-dbus' 'python-gobject' 'python-setuptools')
 makedepends=('jupyter_console' 'libpulse' 'python-ipykernel' 'python-iwlib'
-'python-keyring' 'python-psutil' 'python-pytest' 'python-xdg')
+'python-keyring' 'python-psutil' 'python-pytest' 'python-setuptools-scm' 'python-xdg')
 optdepends=('alsa-utils: volume widget'
             'canto-daemon: canto widget'
             'cmus: cmus widget'
@@ -26,8 +26,9 @@
             'python-xdg: launchbar widget')
 checkdepends=('imagemagick' 'python-pytest' 'python-xvfbwrapper' 'xorg-xcalc'
 'xorg-xclock' 'xorg-xeyes' 'xorg-server-xephyr' 'xorg-xrandr' 'xterm')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/v${pkgver}.tar.gz")
-sha512sums=('57dfeeea212346c14b922303b5d2fd950292383a1da3be6bf5ca0880bedaa3adb7ffc121df617cf763fcd1208c44e34a7ba128a1f2a6e8d3042dd6906ece7e20')
+source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('aea42f7f6799a88b586167a57f5b5ab6f1c5bb663dec352d15eb47ce0d37fb23c31d1631cab8178c71be5ae714ec12c35a350377383dba1749a98cd45c22515b')
+b2sums=('1f75f5dbcab6180dcf778e28108e70b6dd01105fa275aadf4a53d96ab84f3b759cb8553bcf3de2011b0990d61adc9269663afa32b83d1aa9c052b00ef9e89358')
 
 build() {
   cd "${pkgname}-${pkgver}"
@@ -34,23 +35,27 @@
   python setup.py build
 }
 
-# # tests disabled for now, as the test suite won't return:
-# # https://github.com/qtile/qtile/issues/1130
-# # some tests are failing:
-# # https://github.com/qtile/qtile/issues/1352
-# check() {
-#   cd "${pkgname}-${pkgver}"
-#   export PYTTHONPATH="build/lib/:${PYTHONPATH}"
-#   export LC_TYPE=en_US.UTF-8
-#   ./scripts/ffibuild
-#   pytest -vv -k 'not test_images_good \
-#                  and not test_svg_scaling \
-#                  and not test_pattern_rotate \
-#                  and not test_pattern \
-#                  and not test_from_path \
-#                  and not test_init \
-#                  and not test_get_cairo_surface'
-# }
+check() {
+  cd "${pkgname}-${pkgver}"
+  export PYTTHONPATH="build/lib/:${PYTHONPATH}"
+  export LC_TYPE=en_US.UTF-8
+  echo "building pango"
+  python3 ./libqtile/pango_ffi_build.py
+  echo "building xcursors"
+  python3 ./libqtile/backend/x11/xcursors_ffi_build.py
+  echo "building pulseaudio volume control"
+  python3 ./libqtile/widget/pulseaudio_ffi.py
+  # some tests are failing:
+  # https://github.com/qtile/qtile/issues/1352
+  pytest -v -k "not test_images_good \
+                and not test_qtile_cmd \
+                and not test_svg_scaling \
+                and not test_pattern_rotate \
+                and not test_pattern \
+                and not test_from_path \
+                and not test_init \
+                and not test_get_cairo_surface"
+}
 
 package() {
   cd "${pkgname}-${pkgver}"



More information about the arch-commits mailing list