summaryrefslogtreecommitdiffstats
path: root/desktop/todoman
diff options
context:
space:
mode:
author Tonus <tonus1@gmail.com>2023-11-11 16:05:55 +0100
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2023-11-11 22:30:04 +0700
commitf199d022d384d783fdad400c96354aeb429dc2fb (patch)
treeb3bfc192b9cf9363a93f937bb546705d0d5b47ec /desktop/todoman
parent328d606edc96e62d2777dafd95393e9ef8e075b0 (diff)
downloadslackbuilds-f199d022d384d783fdad400c96354aeb429dc2fb.tar.gz
slackbuilds-f199d022d384d783fdad400c96354aeb429dc2fb.tar.xz
desktop/todoman: Updated for version 4.4.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/todoman')
-rw-r--r--desktop/todoman/cli.py.patch11
-rw-r--r--desktop/todoman/todoman.SlackBuild10
-rw-r--r--desktop/todoman/todoman.info6
-rw-r--r--desktop/todoman/widgets.py.patch124
4 files changed, 5 insertions, 146 deletions
diff --git a/desktop/todoman/cli.py.patch b/desktop/todoman/cli.py.patch
deleted file mode 100644
index 316410b671..0000000000
--- a/desktop/todoman/cli.py.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- cli.py 2023-10-25 16:23:07.432517853 +0200
-+++ cli.py 2023-10-25 16:16:22.702505847 +0200
-@@ -97,7 +97,7 @@
- raise click.BadParameter(e) from None
-
-
--def _validate_start_date_param(ctx, param, val) -> Tuple[bool, datetime] | None:
-+def _validate_start_date_param(ctx, param, val):
- ctx = ctx.find_object(AppContext)
- if not val:
- return None
diff --git a/desktop/todoman/todoman.SlackBuild b/desktop/todoman/todoman.SlackBuild
index 6344f4d60e..9b5530319f 100644
--- a/desktop/todoman/todoman.SlackBuild
+++ b/desktop/todoman/todoman.SlackBuild
@@ -25,8 +25,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=todoman
-VERSION=${VERSION:-4.3.2}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-4.4.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +38,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -83,9 +80,6 @@ find -L . \
# Requires python/python3-setuptools-opt build-time dependency
export PYTHONPATH=/opt/python3.9/site-packages/
-patch -i $CWD/cli.py.patch $PRGNAM/cli.py
-patch -i $CWD/widgets.py.patch $PRGNAM/widgets.py
-
python3 -m build --no-isolation
python3 -m installer -d "$PKG" dist/*.whl
diff --git a/desktop/todoman/todoman.info b/desktop/todoman/todoman.info
index 6cf4cff8d6..a09097c9cb 100644
--- a/desktop/todoman/todoman.info
+++ b/desktop/todoman/todoman.info
@@ -1,8 +1,8 @@
PRGNAM="todoman"
-VERSION="4.3.2"
+VERSION="4.4.0"
HOMEPAGE="https://github.com/pimutils/todoman"
-DOWNLOAD="https://files.pythonhosted.org/packages/98/3d/db9427c5612c2ba2313b7782ee1f1e28a9c4995d54727d7e9ea23ab131ae/todoman-4.3.2.tar.gz"
-MD5SUM="5a0755b381f8d668e5a1f435a1effcf6"
+DOWNLOAD="https://files.pythonhosted.org/packages/fd/60/dbd18038cfe5a795d2e427b3ae4112c340966ed2d3a70303a4d59d7313eb/todoman-4.4.0.tar.gz"
+MD5SUM="248638b878dd39483c381c324b4edfeb"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="python3-atomicwrites click click-log icalendar python3-dateutil parsedatetime humanize python3-tabulate python-urwid python3-setuptools-opt pytz"
diff --git a/desktop/todoman/widgets.py.patch b/desktop/todoman/widgets.py.patch
deleted file mode 100644
index 35dd65b486..0000000000
--- a/desktop/todoman/widgets.py.patch
+++ /dev/null
@@ -1,124 +0,0 @@
---- widgets.py 2023-10-25 16:23:17.886518163 +0200
-+++ widgets.py 2023-10-25 16:17:16.178507433 +0200
-@@ -39,15 +39,11 @@
- ("Ctrl-O", "Edit in $EDITOR"),
- )
-
-- def __init__(self, parent: urwid.Widget, *a, **kw) -> None:
-+ def __init__(self, parent, *a, **kw):
- self._parent = parent
- super().__init__(*a, **kw)
-
-- def keypress(
-- self,
-- size: tuple[int, int] | tuple[int] | tuple[()],
-- key: str,
-- ) -> None:
-+ def keypress(self,size,key):
- if key == "ctrl w":
- self._delete_word()
- elif key == "ctrl u":
-@@ -69,13 +65,13 @@
-
- return None
-
-- def _delete_forward_letter(self) -> None:
-+ def _delete_forward_letter(self):
- text = self.get_edit_text()
- pos = self.edit_pos
- text = text[:pos] + text[pos + 1 :]
- self.set_edit_text(text)
-
-- def _delete_word(self) -> None:
-+ def _delete_word(self):
- """delete word before cursor"""
- text = self.get_edit_text()
- t = text[: self.edit_pos].rstrip()
-@@ -86,7 +82,7 @@
- self.set_edit_text(f_text + text[self.edit_pos :])
- self.set_edit_pos(len(f_text))
-
-- def _delete_till_beginning_of_line(self) -> None:
-+ def _delete_till_beginning_of_line(self):
- """delete till start of line before cursor"""
- text = self.get_edit_text()
- sol = text.rfind("\n", 0, self.edit_pos) + 1
-@@ -96,7 +92,7 @@
- self.set_edit_text(before_line + text[self.edit_pos :])
- self.set_edit_pos(sol)
-
-- def _delete_till_end_of_line(self) -> None:
-+ def _delete_till_end_of_line(self):
- """delete till end of line before cursor"""
- text = self.get_edit_text()
- eol = text.find("\n", self.edit_pos)
-@@ -105,19 +101,19 @@
-
- self.set_edit_text(text[: self.edit_pos] + after_eol)
-
-- def _goto_beginning_of_line(self) -> None:
-+ def _goto_beginning_of_line(self):
- text = self.get_edit_text()
- sol = text.rfind("\n", 0, self.edit_pos) + 1
- self.set_edit_pos(sol)
-
-- def _goto_end_of_line(self) -> None:
-+ def _goto_end_of_line(self):
- text = self.get_edit_text()
- eol = text.find("\n", self.edit_pos)
- if eol == -1:
- eol = len(text)
- self.set_edit_pos(eol)
-
-- def _editor(self) -> None:
-+ def _editor(self):
- self._parent._loop.screen.clear()
- new_text = click.edit(self.get_edit_text())
- if new_text is not None:
-@@ -137,12 +133,7 @@
- [1, 2, 3, 4],
- )
-
-- def __init__(
-- self,
-- parent: urwid.Widget,
-- priority: int | None,
-- formatter_function: Callable[[int | None], str],
-- ) -> None:
-+ def __init__(self,parent,priority,formatter_function):
- self._parent = parent
- self._label = urwid.SelectableIcon("", 0)
- urwid.WidgetWrap.__init__(self, self._label)
-@@ -151,10 +142,10 @@
- self._formatter = formatter_function
- self._set_label()
-
-- def _set_label(self) -> None:
-+ def _set_label(self):
- self.set_label(self._formatter(self._priority))
-
-- def _update_label(self, delta: int = 0) -> None:
-+ def _update_label(self, delta: int = 0):
- for i, r in enumerate(PrioritySelector.RANGES):
- if self._priority in r:
- self._priority = PrioritySelector.RANGES[
-@@ -163,11 +154,7 @@
- self._set_label()
- return
-
-- def keypress(
-- self,
-- size: tuple[int, int] | tuple[int] | tuple[()],
-- key: str,
-- ) -> None:
-+ def keypress(self,size,key):
- if key in ["right", "enter"]:
- self._update_label(1)
- return None
-@@ -178,5 +165,5 @@
- return super().keypress(size, key)
-
- @property
-- def priority(self) -> int | None:
-+ def priority(self):
- return self._priority