summaryrefslogtreecommitdiff
path: root/x11-wm
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-09-17 18:10:31 +0200
committerMichał Górny <mgorny@gentoo.org>2024-09-18 16:03:02 +0200
commit6c676ee3980172bf1bbf81dbabc193c3d70595c0 (patch)
tree5a406893a87ac39083cf4b92e7058869c47a339a /x11-wm
parentdev-scheme/skribilo: quote ${ED} (diff)
downloadgentoo-6c676ee3980172bf1bbf81dbabc193c3d70595c0.tar.gz
gentoo-6c676ee3980172bf1bbf81dbabc193c3d70595c0.tar.bz2
gentoo-6c676ee3980172bf1bbf81dbabc193c3d70595c0.zip
x11-wm/qtile: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/qtile/Manifest5
-rw-r--r--x11-wm/qtile/files/qtile-0.23.0-keyring.patch52
-rw-r--r--x11-wm/qtile/qtile-0.23.0-r1.ebuild112
-rw-r--r--x11-wm/qtile/qtile-0.25.0.ebuild112
-rw-r--r--x11-wm/qtile/qtile-0.26.0.ebuild114
-rw-r--r--x11-wm/qtile/qtile-0.27.0.ebuild114
-rw-r--r--x11-wm/qtile/qtile-0.28.0.ebuild114
7 files changed, 0 insertions, 623 deletions
diff --git a/x11-wm/qtile/Manifest b/x11-wm/qtile/Manifest
index adbcb24c266c..6bfbd9494a2e 100644
--- a/x11-wm/qtile/Manifest
+++ b/x11-wm/qtile/Manifest
@@ -1,6 +1 @@
-DIST qtile-0.23.0.tar.gz 524536 BLAKE2B 9cf5b0cdffd7bc95ab7649827c221b20718f9dcc19b8ae2a50ceac5df3d71b117eef493a40523d81e60c8bc54b2103bc2a93775fcb20c025ec1dd84f9d809a19 SHA512 d6886df8efefacf90b1a5ec487c9a5a90414593900159213a218d638ef4f018b69284fe2cea707da12655a9736aad3df74a338a60344536e4d7eebcc9fc1090b
-DIST qtile-0.25.0.tar.gz 569312 BLAKE2B 3841ca41755f37191c659c039da45279393b5bbe94b3d532651548ba51d6dc62f3ac94cc5f3b02aa2b6c806e6bf97c9651756579b77938d133bdb1a697150626 SHA512 afd3267c70681d3656569f8ea88d02f35ab5d6baaa28b3d90f1b7552b5ed32c7d2f1f4f17272458ff2c39d0ca8f4fdb87748c9d7b4eb41031f3079126096c7d0
-DIST qtile-0.26.0.tar.gz 593712 BLAKE2B c7f43813b42d1009f0f542ef0964e07cbb3286af6af058e168d62d1e32c7dfaf51fe537568b77d5b21a1701c1ce159b63f86b6ba4ae3bf5482125562c91c5d3a SHA512 0b28125e3111493a90c5ae993a516dccf984f794ba9c0424c9366a3b04073fdf06deba42e59e8b1e33b60e5686730e0ed010161943a4a77ab4b36e4c7c710a61
-DIST qtile-0.27.0.tar.gz 598603 BLAKE2B 79f876d290398839e83b14304956f7bbe5a5bb70faccae6e090dd37477728c9067fc9d6797b498b5a8cd1a35f08fb4bc85ee3609a244f955d2b15b79f30d96c4 SHA512 62daa4ec51239506e2a860b9d021e2838edba887c7ff45bbede36428a399343470b9357f4aab373d13279c933ae19c3bd2b03bb520862386298a1258fe505127
-DIST qtile-0.28.0.tar.gz 601157 BLAKE2B c2ec5ac92484ad8124a2eeb0aa57050ff529f0223cb889a6da81291a2c52002e989d94667cc3b34449284ca52ca50186379619c05bf83adeb6dc5dfa8c4a6dc1 SHA512 aad0f260ab8f8e974e12f385324e7eadab6a314c9eb1b3114bbfc928819f7a764eb8243e7ed6545ca87f38b223e00d525cba5e8b2430c35aa93370c9fecd0947
DIST qtile-0.28.1.tar.gz 601217 BLAKE2B 04f24c5b628e1c3d0eca395135ef0d0093af5a57d23aea751e76197da4f148ae679a9fb650e2589e5f2e253673cab86642e3f0695ac219641c65192eb9a37274 SHA512 95b4d95206aeac4bb59d47c94eb93b55ac413681050345a0d61cdb19b71dd785bb6c13c0161757b9bfa5e8d0ce345fcf64eea04fc44b2f596a65b70f5da5d32e
diff --git a/x11-wm/qtile/files/qtile-0.23.0-keyring.patch b/x11-wm/qtile/files/qtile-0.23.0-keyring.patch
deleted file mode 100644
index c4a44efd8791..000000000000
--- a/x11-wm/qtile/files/qtile-0.23.0-keyring.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-From 84eaf6b70f9569c88534dc8054e19f05fa3137e2 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
-Date: Sat, 2 Dec 2023 17:40:50 +0100
-Subject: [PATCH] imapwidget: Do not pass None as username to
- keyring.get_password()
-
-Ensure not to pass `None` as the username to `keyring.get_password()`,
-as the API requires it to always be a `str` and some backends
-(particularly `keyrings-alt`) crash on `None`.
-
-Fixes #4609
----
- libqtile/widget/imapwidget.py | 3 +++
- test/widgets/test_widget_init_configure.py | 1 +
- 2 files changed, 4 insertions(+)
-
-diff --git a/libqtile/widget/imapwidget.py b/libqtile/widget/imapwidget.py
-index 3f84d9e7..c8a6ec0e 100644
---- a/libqtile/widget/imapwidget.py
-+++ b/libqtile/widget/imapwidget.py
-@@ -24,6 +24,7 @@ import re
-
- import keyring
-
-+from libqtile.confreader import ConfigError
- from libqtile.log_utils import logger
- from libqtile.widget import base
-
-@@ -75,6 +76,8 @@ class ImapWidget(base.ThreadPoolText):
- def __init__(self, **config):
- base.ThreadPoolText.__init__(self, "", **config)
- self.add_defaults(ImapWidget.defaults)
-+ if self.user is None:
-+ raise ConfigError("You must set the 'user' parameter for the IMAP widget.")
- password = keyring.get_password("imapwidget", self.user)
- if password is not None:
- self.password = password
-diff --git a/test/widgets/test_widget_init_configure.py b/test/widgets/test_widget_init_configure.py
-index 83a9cb9a..aa7a1f9b 100644
---- a/test/widgets/test_widget_init_configure.py
-+++ b/test/widgets/test_widget_init_configure.py
-@@ -58,6 +58,7 @@ extras = [
-
- # To skip a test entirely, list the widget class here
- no_test = [widgets.Mirror, widgets.PulseVolume] # Mirror requires a reflection object
-+no_test += [widgets.ImapWidget] # Requires a configured username
-
- # To test a widget only under one backend, list the widget class here
- exclusive_backend = {
---
-2.43.0
-
diff --git a/x11-wm/qtile/qtile-0.23.0-r1.ebuild b/x11-wm/qtile/qtile-0.23.0-r1.ebuild
deleted file mode 100644
index 3c59d06e2004..000000000000
--- a/x11-wm/qtile/qtile-0.23.0-r1.ebuild
+++ /dev/null
@@ -1,112 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..11} )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="A full-featured, hackable tiling window manager written in Python"
-HOMEPAGE="
- https://qtile.org/
- https://github.com/qtile/qtile/
- https://pypi.org/project/qtile/
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="amd64 ~riscv ~x86"
-IUSE="pulseaudio wayland"
-
-RDEPEND="
- >=dev-python/cairocffi-1.6.0[${PYTHON_USEDEP}]
- >=dev-python/cffi-1.1.0:=[${PYTHON_USEDEP}]
- dev-python/dbus-next[${PYTHON_USEDEP}]
- dev-python/pygobject[${PYTHON_USEDEP}]
- >=dev-python/xcffib-1.4.0[${PYTHON_USEDEP}]
- x11-libs/cairo[X,xcb(+)]
- x11-libs/libnotify[introspection]
- x11-libs/pango
- pulseaudio? (
- dev-python/pulsectl-asyncio[${PYTHON_USEDEP}]
- media-sound/pulseaudio
- )
- wayland? (
- >=dev-python/pywlroots-0.16[${PYTHON_USEDEP}]
- )
-"
-BDEPEND="
- dev-python/cffi[${PYTHON_USEDEP}]
- dev-python/setuptools-scm[${PYTHON_USEDEP}]
- test? (
- media-gfx/imagemagick[X]
- x11-base/xorg-server[xephyr,xvfb]
- )
- wayland? (
- >=dev-python/pywlroots-0.16[${PYTHON_USEDEP}]
- )
-"
-
-distutils_enable_tests pytest
-
-python_prepare_all() {
- local PATCHES=(
- # https://github.com/qtile/qtile/pull/4610
- "${FILESDIR}/${P}-keyring.patch"
- )
-
- sed -e "s/can_import(\"wlroots.ffi_build\")/$(usex wayland True False)/" \
- -i setup.py || die
-
- # some tests expect bin/qtile
- mkdir bin || die
- cat >> bin/qtile <<-EOF || die
- #!/bin/sh
- exec qtile "\${@}"
- EOF
- chmod +x bin/qtile || die
-
- distutils-r1_python_prepare_all
-}
-
-src_compile() {
- local -x CFFI_TMPDIR=${T}
- distutils-r1_src_compile
-}
-
-python_test() {
- local EPYTEST_DESELECT=(
- # mocking doesn't seem to work
- test/widgets/test_mpd2widget.py
- # checks fail with mypy errors
- test/test_check.py
- # migration tests require intact source tree
- test/test_migrate.py
- # no clue ("ExistingWMException")
- test/test_restart.py::test_restart_hook_and_state
- )
-
- # force usage of built module
- rm -rf libqtile || die
-
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- nonfatal epytest --backend=x11 $(usev wayland '--backend=wayland') ||
- die -n "Tests failed with ${EPYTHON}"
-}
-
-python_install_all() {
- local DOCS=( CHANGELOG README.rst )
- distutils-r1_python_install_all
-
- insinto /usr/share/xsessions
- doins resources/qtile.desktop
-
- insinto /usr/share/wayland-sessions
- doins resources/qtile-wayland.desktop
-
- exeinto /etc/X11/Sessions
- newexe "${FILESDIR}"/${PN}-session-r1 ${PN}
-}
diff --git a/x11-wm/qtile/qtile-0.25.0.ebuild b/x11-wm/qtile/qtile-0.25.0.ebuild
deleted file mode 100644
index 3fe2733dd15e..000000000000
--- a/x11-wm/qtile/qtile-0.25.0.ebuild
+++ /dev/null
@@ -1,112 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=standalone
-PYTHON_COMPAT=( python3_{10..12} )
-
-inherit distutils-r1 pypi virtualx
-
-DESCRIPTION="A full-featured, hackable tiling window manager written in Python"
-HOMEPAGE="
- https://qtile.org/
- https://github.com/qtile/qtile/
- https://pypi.org/project/qtile/
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="pulseaudio wayland"
-
-RDEPEND="
- >=dev-python/cairocffi-1.6.0[${PYTHON_USEDEP}]
- >=dev-python/cffi-1.1.0:=[${PYTHON_USEDEP}]
- dev-python/dbus-next[${PYTHON_USEDEP}]
- dev-python/pygobject[${PYTHON_USEDEP}]
- >=dev-python/xcffib-1.4.0[${PYTHON_USEDEP}]
- x11-libs/cairo[X,xcb(+)]
- x11-libs/libnotify[introspection]
- x11-libs/pango
- pulseaudio? (
- dev-python/pulsectl-asyncio[${PYTHON_USEDEP}]
- media-sound/pulseaudio
- )
- wayland? (
- >=dev-python/pywlroots-0.16[${PYTHON_USEDEP}]
- )
-"
-BDEPEND="
- dev-python/cffi[${PYTHON_USEDEP}]
- dev-python/setuptools[${PYTHON_USEDEP}]
- dev-python/setuptools-scm[${PYTHON_USEDEP}]
- test? (
- dev-python/libcst[${PYTHON_USEDEP}]
- media-gfx/imagemagick[X]
- x11-base/xorg-server[xephyr,xvfb]
- )
- wayland? (
- >=dev-python/pywlroots-0.16[${PYTHON_USEDEP}]
- )
-"
-
-distutils_enable_tests pytest
-
-python_prepare_all() {
- sed -e "s/can_import(\"wlroots.ffi_build\")/$(usex wayland True False)/" \
- -i setup.py || die
-
- # some tests expect bin/qtile
- mkdir bin || die
- cat >> bin/qtile <<-EOF || die
- #!/bin/sh
- exec qtile "\${@}"
- EOF
- chmod +x bin/qtile || die
-
- distutils-r1_python_prepare_all
-}
-
-src_compile() {
- local -x CFFI_TMPDIR=${T}
- distutils-r1_src_compile
-}
-
-src_test() {
- virtx distutils-r1_src_test
-}
-
-python_test() {
- local EPYTEST_DESELECT=(
- # mypy stuff
- test/test_check.py
- test/migrate/test_check_migrations.py
- # TODO: this test clearly requires x11 — so why is wayland
- # variant being run?
- 'test/backend/x11/test_window.py::test_urgent_hook_fire[wayland-2]'
- )
-
- # force usage of built module
- rm -rf libqtile || die
-
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- local -x TZ=UTC
- nonfatal epytest --backend=x11 $(usev wayland '--backend=wayland') ||
- die -n "Tests failed with ${EPYTHON}"
-}
-
-python_install_all() {
- local DOCS=( CHANGELOG README.rst )
- distutils-r1_python_install_all
-
- insinto /usr/share/xsessions
- doins resources/qtile.desktop
-
- insinto /usr/share/wayland-sessions
- doins resources/qtile-wayland.desktop
-
- exeinto /etc/X11/Sessions
- newexe "${FILESDIR}"/${PN}-session-r1 ${PN}
-}
diff --git a/x11-wm/qtile/qtile-0.26.0.ebuild b/x11-wm/qtile/qtile-0.26.0.ebuild
deleted file mode 100644
index e8473373841c..000000000000
--- a/x11-wm/qtile/qtile-0.26.0.ebuild
+++ /dev/null
@@ -1,114 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=standalone
-PYTHON_COMPAT=( python3_{10..12} )
-
-inherit distutils-r1 pypi virtualx
-
-DESCRIPTION="A full-featured, hackable tiling window manager written in Python"
-HOMEPAGE="
- https://qtile.org/
- https://github.com/qtile/qtile/
- https://pypi.org/project/qtile/
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~riscv"
-IUSE="pulseaudio wayland"
-
-RDEPEND="
- >=dev-python/cairocffi-1.6.0[${PYTHON_USEDEP}]
- >=dev-python/cffi-1.1.0:=[${PYTHON_USEDEP}]
- dev-python/dbus-next[${PYTHON_USEDEP}]
- dev-python/pygobject[${PYTHON_USEDEP}]
- >=dev-python/xcffib-1.4.0[${PYTHON_USEDEP}]
- x11-libs/cairo[X,xcb(+)]
- x11-libs/libnotify[introspection]
- x11-libs/pango
- pulseaudio? (
- dev-python/pulsectl-asyncio[${PYTHON_USEDEP}]
- media-sound/pulseaudio
- )
- wayland? (
- >=dev-python/pywayland-0.4.17[${PYTHON_USEDEP}]
- >=dev-python/pywlroots-0.17[${PYTHON_USEDEP}]
- )
-"
-BDEPEND="
- dev-python/cffi[${PYTHON_USEDEP}]
- dev-python/setuptools[${PYTHON_USEDEP}]
- dev-python/setuptools-scm[${PYTHON_USEDEP}]
- test? (
- dev-python/libcst[${PYTHON_USEDEP}]
- media-gfx/imagemagick[X]
- x11-base/xorg-server[xephyr,xvfb]
- )
- wayland? (
- >=dev-python/pywayland-0.4.17[${PYTHON_USEDEP}]
- >=dev-python/pywlroots-0.17[${PYTHON_USEDEP}]
- )
-"
-
-distutils_enable_tests pytest
-
-python_prepare_all() {
- sed -e "s/can_import(\"wlroots.ffi_build\")/$(usex wayland True False)/" \
- -i setup.py || die
-
- # some tests expect bin/qtile
- mkdir bin || die
- cat >> bin/qtile <<-EOF || die
- #!/bin/sh
- exec qtile "\${@}"
- EOF
- chmod +x bin/qtile || die
-
- distutils-r1_python_prepare_all
-}
-
-src_compile() {
- local -x CFFI_TMPDIR=${T}
- distutils-r1_src_compile
-}
-
-src_test() {
- virtx distutils-r1_src_test
-}
-
-python_test() {
- local EPYTEST_DESELECT=(
- # mypy stuff
- test/test_check.py
- test/migrate/test_check_migrations.py
- # TODO: this test clearly requires x11 — so why is wayland
- # variant being run?
- 'test/backend/x11/test_window.py::test_urgent_hook_fire[wayland-2]'
- )
-
- # force usage of built module
- rm -rf libqtile || die
-
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- local -x TZ=UTC
- nonfatal epytest --backend=x11 $(usev wayland '--backend=wayland') ||
- die -n "Tests failed with ${EPYTHON}"
-}
-
-python_install_all() {
- local DOCS=( CHANGELOG README.rst )
- distutils-r1_python_install_all
-
- insinto /usr/share/xsessions
- doins resources/qtile.desktop
-
- insinto /usr/share/wayland-sessions
- doins resources/qtile-wayland.desktop
-
- exeinto /etc/X11/Sessions
- newexe "${FILESDIR}"/${PN}-session-r1 ${PN}
-}
diff --git a/x11-wm/qtile/qtile-0.27.0.ebuild b/x11-wm/qtile/qtile-0.27.0.ebuild
deleted file mode 100644
index e8473373841c..000000000000
--- a/x11-wm/qtile/qtile-0.27.0.ebuild
+++ /dev/null
@@ -1,114 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=standalone
-PYTHON_COMPAT=( python3_{10..12} )
-
-inherit distutils-r1 pypi virtualx
-
-DESCRIPTION="A full-featured, hackable tiling window manager written in Python"
-HOMEPAGE="
- https://qtile.org/
- https://github.com/qtile/qtile/
- https://pypi.org/project/qtile/
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~riscv"
-IUSE="pulseaudio wayland"
-
-RDEPEND="
- >=dev-python/cairocffi-1.6.0[${PYTHON_USEDEP}]
- >=dev-python/cffi-1.1.0:=[${PYTHON_USEDEP}]
- dev-python/dbus-next[${PYTHON_USEDEP}]
- dev-python/pygobject[${PYTHON_USEDEP}]
- >=dev-python/xcffib-1.4.0[${PYTHON_USEDEP}]
- x11-libs/cairo[X,xcb(+)]
- x11-libs/libnotify[introspection]
- x11-libs/pango
- pulseaudio? (
- dev-python/pulsectl-asyncio[${PYTHON_USEDEP}]
- media-sound/pulseaudio
- )
- wayland? (
- >=dev-python/pywayland-0.4.17[${PYTHON_USEDEP}]
- >=dev-python/pywlroots-0.17[${PYTHON_USEDEP}]
- )
-"
-BDEPEND="
- dev-python/cffi[${PYTHON_USEDEP}]
- dev-python/setuptools[${PYTHON_USEDEP}]
- dev-python/setuptools-scm[${PYTHON_USEDEP}]
- test? (
- dev-python/libcst[${PYTHON_USEDEP}]
- media-gfx/imagemagick[X]
- x11-base/xorg-server[xephyr,xvfb]
- )
- wayland? (
- >=dev-python/pywayland-0.4.17[${PYTHON_USEDEP}]
- >=dev-python/pywlroots-0.17[${PYTHON_USEDEP}]
- )
-"
-
-distutils_enable_tests pytest
-
-python_prepare_all() {
- sed -e "s/can_import(\"wlroots.ffi_build\")/$(usex wayland True False)/" \
- -i setup.py || die
-
- # some tests expect bin/qtile
- mkdir bin || die
- cat >> bin/qtile <<-EOF || die
- #!/bin/sh
- exec qtile "\${@}"
- EOF
- chmod +x bin/qtile || die
-
- distutils-r1_python_prepare_all
-}
-
-src_compile() {
- local -x CFFI_TMPDIR=${T}
- distutils-r1_src_compile
-}
-
-src_test() {
- virtx distutils-r1_src_test
-}
-
-python_test() {
- local EPYTEST_DESELECT=(
- # mypy stuff
- test/test_check.py
- test/migrate/test_check_migrations.py
- # TODO: this test clearly requires x11 — so why is wayland
- # variant being run?
- 'test/backend/x11/test_window.py::test_urgent_hook_fire[wayland-2]'
- )
-
- # force usage of built module
- rm -rf libqtile || die
-
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- local -x TZ=UTC
- nonfatal epytest --backend=x11 $(usev wayland '--backend=wayland') ||
- die -n "Tests failed with ${EPYTHON}"
-}
-
-python_install_all() {
- local DOCS=( CHANGELOG README.rst )
- distutils-r1_python_install_all
-
- insinto /usr/share/xsessions
- doins resources/qtile.desktop
-
- insinto /usr/share/wayland-sessions
- doins resources/qtile-wayland.desktop
-
- exeinto /etc/X11/Sessions
- newexe "${FILESDIR}"/${PN}-session-r1 ${PN}
-}
diff --git a/x11-wm/qtile/qtile-0.28.0.ebuild b/x11-wm/qtile/qtile-0.28.0.ebuild
deleted file mode 100644
index e8473373841c..000000000000
--- a/x11-wm/qtile/qtile-0.28.0.ebuild
+++ /dev/null
@@ -1,114 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=standalone
-PYTHON_COMPAT=( python3_{10..12} )
-
-inherit distutils-r1 pypi virtualx
-
-DESCRIPTION="A full-featured, hackable tiling window manager written in Python"
-HOMEPAGE="
- https://qtile.org/
- https://github.com/qtile/qtile/
- https://pypi.org/project/qtile/
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~riscv"
-IUSE="pulseaudio wayland"
-
-RDEPEND="
- >=dev-python/cairocffi-1.6.0[${PYTHON_USEDEP}]
- >=dev-python/cffi-1.1.0:=[${PYTHON_USEDEP}]
- dev-python/dbus-next[${PYTHON_USEDEP}]
- dev-python/pygobject[${PYTHON_USEDEP}]
- >=dev-python/xcffib-1.4.0[${PYTHON_USEDEP}]
- x11-libs/cairo[X,xcb(+)]
- x11-libs/libnotify[introspection]
- x11-libs/pango
- pulseaudio? (
- dev-python/pulsectl-asyncio[${PYTHON_USEDEP}]
- media-sound/pulseaudio
- )
- wayland? (
- >=dev-python/pywayland-0.4.17[${PYTHON_USEDEP}]
- >=dev-python/pywlroots-0.17[${PYTHON_USEDEP}]
- )
-"
-BDEPEND="
- dev-python/cffi[${PYTHON_USEDEP}]
- dev-python/setuptools[${PYTHON_USEDEP}]
- dev-python/setuptools-scm[${PYTHON_USEDEP}]
- test? (
- dev-python/libcst[${PYTHON_USEDEP}]
- media-gfx/imagemagick[X]
- x11-base/xorg-server[xephyr,xvfb]
- )
- wayland? (
- >=dev-python/pywayland-0.4.17[${PYTHON_USEDEP}]
- >=dev-python/pywlroots-0.17[${PYTHON_USEDEP}]
- )
-"
-
-distutils_enable_tests pytest
-
-python_prepare_all() {
- sed -e "s/can_import(\"wlroots.ffi_build\")/$(usex wayland True False)/" \
- -i setup.py || die
-
- # some tests expect bin/qtile
- mkdir bin || die
- cat >> bin/qtile <<-EOF || die
- #!/bin/sh
- exec qtile "\${@}"
- EOF
- chmod +x bin/qtile || die
-
- distutils-r1_python_prepare_all
-}
-
-src_compile() {
- local -x CFFI_TMPDIR=${T}
- distutils-r1_src_compile
-}
-
-src_test() {
- virtx distutils-r1_src_test
-}
-
-python_test() {
- local EPYTEST_DESELECT=(
- # mypy stuff
- test/test_check.py
- test/migrate/test_check_migrations.py
- # TODO: this test clearly requires x11 — so why is wayland
- # variant being run?
- 'test/backend/x11/test_window.py::test_urgent_hook_fire[wayland-2]'
- )
-
- # force usage of built module
- rm -rf libqtile || die
-
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- local -x TZ=UTC
- nonfatal epytest --backend=x11 $(usev wayland '--backend=wayland') ||
- die -n "Tests failed with ${EPYTHON}"
-}
-
-python_install_all() {
- local DOCS=( CHANGELOG README.rst )
- distutils-r1_python_install_all
-
- insinto /usr/share/xsessions
- doins resources/qtile.desktop
-
- insinto /usr/share/wayland-sessions
- doins resources/qtile-wayland.desktop
-
- exeinto /etc/X11/Sessions
- newexe "${FILESDIR}"/${PN}-session-r1 ${PN}
-}