From fa8041d533157ee00802b52a61ca8dfa25171a35 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 28 Nov 2023 23:19:18 -0500 Subject: x11-wm/qtile: drop outdated dependency on six MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed upstream in 0.14.0 https://github.com/qtile/qtile/commit/0130653a60ebb5acbc8d91289e52ad4778de35a5 Signed-off-by: Eli Schwartz Signed-off-by: Michał Górny --- x11-wm/qtile/qtile-0.22.1-r2.ebuild | 113 ------------------------------------ x11-wm/qtile/qtile-0.22.1-r3.ebuild | 112 +++++++++++++++++++++++++++++++++++ x11-wm/qtile/qtile-0.23.0-r1.ebuild | 112 +++++++++++++++++++++++++++++++++++ x11-wm/qtile/qtile-0.23.0.ebuild | 113 ------------------------------------ 4 files changed, 224 insertions(+), 226 deletions(-) delete mode 100644 x11-wm/qtile/qtile-0.22.1-r2.ebuild create mode 100644 x11-wm/qtile/qtile-0.22.1-r3.ebuild create mode 100644 x11-wm/qtile/qtile-0.23.0-r1.ebuild delete mode 100644 x11-wm/qtile/qtile-0.23.0.ebuild (limited to 'x11-wm/qtile') diff --git a/x11-wm/qtile/qtile-0.22.1-r2.ebuild b/x11-wm/qtile/qtile-0.22.1-r2.ebuild deleted file mode 100644 index 6f48d2f1e8b6..000000000000 --- a/x11-wm/qtile/qtile-0.22.1-r2.ebuild +++ /dev/null @@ -1,113 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) - -inherit distutils-r1 virtualx - -DESCRIPTION="A full-featured, hackable tiling window manager written in Python" -HOMEPAGE="http://qtile.org/" - -if [[ ${PV} == 9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/qtile/qtile.git" -else - inherit pypi - KEYWORDS="amd64 ~riscv ~x86" -fi - -LICENSE="MIT" -SLOT="0" -IUSE="pulseaudio wayland" - -# See bug #895722 and https://github.com/qtile/qtile/pull/3985 regarding -# pywlroots-0.15 dep. -# xcffib v1.4.0 breaks its ffi export (https://github.com/qtile/qtile/pull/4289) -RDEPEND=" - =dev-python/cffi-1.1.0[${PYTHON_USEDEP}] - dev-python/dbus-next[${PYTHON_USEDEP}] - dev-python/pygobject[${PYTHON_USEDEP}] - >=dev-python/six-1.4.1[${PYTHON_USEDEP}] - > 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.23.0.ebuild b/x11-wm/qtile/qtile-0.23.0.ebuild deleted file mode 100644 index 363086be9131..000000000000 --- a/x11-wm/qtile/qtile-0.23.0.ebuild +++ /dev/null @@ -1,113 +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" -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/six-1.4.1[${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] - ) - 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} -} -- cgit v1.2.3-65-gdbad