Github messages for voidlinux
 help / color / mirror / Atom feed
From: icp1994 <icp1994@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] todoman: update to 4.2.1.
Date: Thu, 20 Apr 2023 21:04:46 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-43554@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 472 bytes --]

There is a new pull request by icp1994 against master on the void-packages repository

https://github.com/icp1994/void-packages todoman
https://github.com/void-linux/void-packages/pull/43554

todoman: update to 4.2.1.
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture: **x86_64**

A patch file from https://github.com/void-linux/void-packages/pull/43554.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-todoman-43554.patch --]
[-- Type: text/x-diff, Size: 6223 bytes --]

From b61f24f4d7956b4e87e1b5b0ef69d3ab85c4a03a Mon Sep 17 00:00:00 2001
From: icp <pangolin@vivaldi.net>
Date: Thu, 20 Apr 2023 13:17:42 +0530
Subject: [PATCH] todoman: update to 4.2.1.

---
 srcpkgs/todoman/patches/zsh_completion.patch | 86 --------------------
 srcpkgs/todoman/template                     | 12 +--
 2 files changed, 6 insertions(+), 92 deletions(-)
 delete mode 100644 srcpkgs/todoman/patches/zsh_completion.patch

diff --git a/srcpkgs/todoman/patches/zsh_completion.patch b/srcpkgs/todoman/patches/zsh_completion.patch
deleted file mode 100644
index 6b29b03be789..000000000000
--- a/srcpkgs/todoman/patches/zsh_completion.patch
+++ /dev/null
@@ -1,86 +0,0 @@
-A pull request containing this patch has been submitted upstream [1].
-
-[1] https://github.com/pimutils/todoman/pull/495
-
-diff --git a/contrib/completion/zsh/_todo b/contrib/completion/zsh/_todo
-index b9bbe8a..53976e7 100644
---- a/contrib/completion/zsh/_todo
-+++ b/contrib/completion/zsh/_todo
-@@ -5,7 +5,7 @@ local common_options_help=(
- 	'(- :)--help[Show a help message and exit]'
- )
- local common_options_start=(
--	{-s,--start=}'[When the task starts]:DATE:__todo_date'
-+	'--start=[When the task starts]:DATE:__todo_date'
- )
- local common_options_due=(
- 	{-d,--due=}'[When the task is due]:DATE:__todo_date'
-@@ -32,7 +32,7 @@ __color_mode(){
- # }}}
- # {{{ general helper: set variable of path to configuration file
- __todo_set_conf(){
--	todoman_configuration_file=${XDG_CONFIG_DIR:-${HOME}/.config}/todoman/todoman.conf
-+	todoman_configuration_file=${XDG_CONFIG_DIR:-${HOME}/.config}/todoman/config.py
- 	if [[ -f $todoman_configuration_file ]]; then
- 		return 0
- 	else
-@@ -43,7 +43,7 @@ __todo_set_conf(){
- # {{{ general helper: set variable main.path from configuration file
- __todo_set_conf_path(){
- 	if __todo_set_conf; then
--		tasks_lists_path="$(sed -n -e 's/^[^#]\s*path\s*=\s*\(.*\)$/\1/p' $todoman_configuration_file 2>/dev/null)"
-+		tasks_lists_path="$(sed -n -e "s/^\\s*path\\s*=\\s*['\"]\\(.*\\)['\"]$/\\1/p" $todoman_configuration_file 2>/dev/null)"
- 		# the eval echo is needed since the path may contain ~ which should be evalueated to $HOME
- 		tasks_lists_dir="$(eval echo ${tasks_lists_path%/\**})"
- 		if [[ -z "${tasks_lists_path}" || ! -d "${tasks_lists_dir}" ]]; then
-@@ -59,18 +59,18 @@ __todo_set_conf_path(){
- # {{{ general helper: set variables related to date and time formats for __todo_date
- __todo_set_conf_dt(){
- 	if __todo_set_conf; then
--		date_format="$(eval echo $(sed -n -e 's/^[^#]\s*date_format\s*=\s*\(.*\)$/\1/p' $todoman_configuration_file 2>/dev/null))"
--		dt_separator="$(eval echo $(sed -n -e 's/^[^#]\s*dt_separator\s*=\s*\(.*\)$/\1/p' $todoman_configuration_file 2>/dev/null))"
--		time_format="$(eval echo $(sed -n -e 's/^[^#]\s*time_format\s*=\s*\(.*\)$/\1/p' $todoman_configuration_file 2>/dev/null))"
-+		date_format="$(eval echo $(sed -n -e "s/^\\s*date_format\\s*=\\s*['\"]\\(.*\\)['\"]$/\\1/p" $todoman_configuration_file 2>/dev/null))"
-+		dt_separator="$(eval echo $(sed -n -e "s/^\\s*dt_separator\\s*=\\s*['\"]\\(.*\\)['\"]$/\\1/p" $todoman_configuration_file 2>/dev/null))"
-+		time_format="$(eval echo $(sed -n -e "s/^\\s*time_format\\s*=\\s*['\"]\\(.*\\)['\"]$/\\1/p" $todoman_configuration_file 2>/dev/null))"
- 		# default value according to documentation: https://todoman.readthedocs.io/en/stable/configure.html
- 		if [[ -z "${date_format}" ]]; then
- 			date_format="%x"
- 		fi
- 		if [[ -z "${dt_separator}" ]]; then
--			dt_separator=""
-+			dt_separator=" "
- 		fi
- 		if [[ -z "${time_format}" ]]; then
--			time_format="%x"
-+			time_format="%X"
- 		fi
- 		return 0
- 	else
-@@ -150,7 +150,7 @@ __todo_lists(){
- 			zstyle ":completion:${curcontext}:" cache-policy __todo_lists_cache_policy
- 		fi
- 		local -a tasks_lists
--		if _cache_invalid todoman_lists; then
-+		if _cache_invalid todoman_lists || ! _retrieve_cache todoman_lists; then
- 			if [[ ${tasks_lists_path} =~ '/*$' ]]; then
- 				for dir in $(eval echo ${tasks_lists_path}); do
- 					if grep "VTODO" -q -R "${dir}"; then
-@@ -160,8 +160,6 @@ __todo_lists(){
- 				done
- 			fi
- 			_store_cache todoman_lists tasks_lists
--		else
--			_retrieve_cache todoman_lists
- 		fi
- 		if [[ "${#tasks_lists[@]}" == 1 ]]; then
- 			_message "only one list was detected: (\"${tasks_lists[1]}\")"
-@@ -243,7 +241,7 @@ _command_list_options=(
- 	'(--reverse --no-reverse)'{--reverse,--no-reverse}'[sort tasks in reverse order (see --sort)]'
- 	"${common_options_start[@]}"
- 	"${common_options_due[@]}"
--	'--priority[Only show tasks with priority at least as high as TEXT]:TEXT:("low", "medium", "high")'
-+	'--priority=[Only show tasks with priority at least as high as TEXT]:TEXT:("low" "medium" "high")'
- 	'--startable[Show only todos which should can be started today]'
- 	{-s,--status=}'[Show only todos with the provided comma-separated statuses]:STATUS:{_values -s , "status" "NEEDS-ACTION" "CANCELLED" "COMPLETED" "IN-PROCESS" "ANY"}'
- 	"${common_options_help[@]}"
diff --git a/srcpkgs/todoman/template b/srcpkgs/todoman/template
index 2012dfca930f..fd0cb96e963c 100644
--- a/srcpkgs/todoman/template
+++ b/srcpkgs/todoman/template
@@ -1,9 +1,9 @@
 # Template file for 'todoman'
 pkgname=todoman
-version=4.1.0
-revision=3
-build_style=python3-module
-hostmakedepends="python3-setuptools_scm"
+version=4.2.1
+revision=1
+build_style=python3-pep517
+hostmakedepends="python3-setuptools_scm python3-wheel"
 depends="python3-icalendar python3-urwid python3-xdg python3-parsedatetime
  python3-atomicwrites python3-click-repl python3-click-log
  python3-dateutil python3-humanize jq"
@@ -15,11 +15,11 @@ license="ISC"
 homepage="https://github.com/pimutils/todoman"
 changelog="https://raw.githubusercontent.com/pimutils/todoman/main/CHANGELOG.rst"
 distfiles="${PYPI_SITE}/t/todoman/todoman-${version}.tar.gz"
-checksum=ce3caa481d923e91da9b492b46509810a754e2d3ef857f5d20bc5a8e362b50c8
+checksum=b69afe914c8fb0f9387d61c86c9bf2e8ba17717bf3f9cfb1b711e3c87a773b85
 
 post_install() {
 	vlicense LICENCE
 	vcompletion contrib/completion/zsh/_todo zsh todo
 	vcompletion contrib/completion/bash/_todo bash todo
-	vsconf config.py.sample
+	vsconf config.py.sample config.py
 }

             reply	other threads:[~2023-04-20 19:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-20 19:04 icp1994 [this message]
2023-04-21 14:24 ` [PR PATCH] [Merged]: " abenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-43554@inbox.vuxu.org \
    --to=icp1994@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).