From c9971fa7cc0608fe4582a390e64bc90b48c14277 Mon Sep 17 00:00:00 2001 From: Pacho Ramos Date: Thu, 14 May 2026 10:54:46 +0200 Subject: [PATCH] app-containers/sen: add 0.8.1 Also fix subpackages finding at build time and fix tests with current urwid versions. Closes: https://bugs.gentoo.org/973730 Signed-off-by: Pacho Ramos --- app-containers/sen/Manifest | 1 + .../files/sen-0.8.1-include-subpackages.patch | 25 ++++++++++++ .../sen/files/sen-0.8.1-urwid-import.patch | 12 ++++++ app-containers/sen/sen-0.8.1.ebuild | 39 +++++++++++++++++++ 4 files changed, 77 insertions(+) create mode 100644 app-containers/sen/files/sen-0.8.1-include-subpackages.patch create mode 100644 app-containers/sen/files/sen-0.8.1-urwid-import.patch create mode 100644 app-containers/sen/sen-0.8.1.ebuild diff --git a/app-containers/sen/Manifest b/app-containers/sen/Manifest index 3d26da03b9602..7c5b759afe953 100644 --- a/app-containers/sen/Manifest +++ b/app-containers/sen/Manifest @@ -1 +1,2 @@ DIST sen-0.8.0.tar.gz 1931211 BLAKE2B a8c6a4fc3343fd90c03ab9d0dfa85ff39639a21bb807a2122d29e000c6df1832b2277553b3d3cf88bbc0ef51a0105a5f9246f1e9b05439dd7f1ea71fcadc49cf SHA512 03fa23c5e5e8e4d556f6b2154db5a4128a8a51c60ea57792a11080ac7870af6bd128e374f682fc7ba1c206148c2a146bc81233b36306a27da77f09f8a508713f +DIST sen-0.8.1.tar.gz 1933646 BLAKE2B cf6944da654c490b7e589a699a9ed4403fd990b71af3fbbd08349309cc4e4ecbbcc9cdb09c13792912b5f3b8134de792c8ea37e311b6a3736662c9ac6cf2790c SHA512 e51042455be25c8b39c070441804be44cc2ec1bfd8ab1732c79b29997197de6180635517db856021fd46ee88364df3e830e68013a1ec81f6230c0c01f36f7cec diff --git a/app-containers/sen/files/sen-0.8.1-include-subpackages.patch b/app-containers/sen/files/sen-0.8.1-include-subpackages.patch new file mode 100644 index 0000000000000..ec1cfae5f4739 --- /dev/null +++ b/app-containers/sen/files/sen-0.8.1-include-subpackages.patch @@ -0,0 +1,25 @@ +From: Colin Watson +Date: Tue, 9 Sep 2025 17:47:21 +0100 +Subject: Include subpackages in wheel + +Otherwise modern installation methods omit everything under `sen.tui` +and so are broken. + +Forwarded: https://github.com/TomasTomecek/sen/pull/190 +Last-Update: 2025-09-09 +--- + pyproject.toml | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 230dc08..94f7ee7 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -36,5 +36,5 @@ Repository = "https://github.com/TomasTomecek/sen/" + [project.scripts] + sen = "sen.cli:main" + +-[tool.setuptools] +-packages = ["sen"] ++[tool.setuptools.packages.find] ++include = ["sen*"] diff --git a/app-containers/sen/files/sen-0.8.1-urwid-import.patch b/app-containers/sen/files/sen-0.8.1-urwid-import.patch new file mode 100644 index 0000000000000..713b4fdb3c9ba --- /dev/null +++ b/app-containers/sen/files/sen-0.8.1-urwid-import.patch @@ -0,0 +1,12 @@ +https://github.com/TomasTomecek/sen/issues/192 +--- a/tests/test_widgets.py~ 2021-11-01 10:02:44.000000000 +0100 ++++ b/tests/test_widgets.py 2026-05-14 10:48:56.201370414 +0200 +@@ -4,7 +4,7 @@ + + import pytest + from flexmock import flexmock +-from urwid.listbox import SimpleListWalker ++from urwid import SimpleListWalker + + from sen.tui.widgets.list.base import WidgetBase + from sen.tui.widgets.list.common import ScrollableListBox, AsyncScrollableListBox diff --git a/app-containers/sen/sen-0.8.1.ebuild b/app-containers/sen/sen-0.8.1.ebuild new file mode 100644 index 0000000000000..a234e4904f586 --- /dev/null +++ b/app-containers/sen/sen-0.8.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..14} ) +inherit distutils-r1 pypi + +DESCRIPTION="Terminal User Interface for docker engine" +HOMEPAGE="https://github.com/TomasTomecek/sen" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + >=dev-python/urwid-2.6.14[${PYTHON_USEDEP}] + dev-python/urwidtrees[${PYTHON_USEDEP}] + >=dev-python/docker-7.1.0[${PYTHON_USEDEP}] + >=dev-python/requests-2.32.4[${PYTHON_USEDEP}] +" +BDEPEND="${RDEPEND} + test? ( + dev-python/flexmock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}/${PN}-0.8.1-include-subpackages.patch" + "${FILESDIR}/${PN}-0.8.1-urwid-import.patch" +) + +python_install_all() { + distutils-r1_python_install_all + dodoc -r docs +}