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 <pacho@gentoo.org>
This commit is contained in:
Pacho Ramos
2026-05-14 10:54:46 +02:00
parent 72b6d4e231
commit c9971fa7cc
4 changed files with 77 additions and 0 deletions

View File

@@ -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

View File

@@ -0,0 +1,25 @@
From: Colin Watson <cjwatson@debian.org>
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*"]

View File

@@ -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

View File

@@ -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
}