GNU bug report logs - #47730
[PATCH 0/4] gnu: add watson

Previous Next

Package: guix-patches;

Reported by: Sebastian Gibb <mail <at> sebastiangibb.de>

Date: Mon, 12 Apr 2021 15:48:02 UTC

Severity: normal

Tags: patch

Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 47730 in the body.
You can then email your comments to 47730 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#47730; Package guix-patches. (Mon, 12 Apr 2021 15:48:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sebastian Gibb <mail <at> sebastiangibb.de>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Mon, 12 Apr 2021 15:48:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sebastian Gibb <mail <at> sebastiangibb.de>
To: guix-patches <at> gnu.org
Cc: Sebastian Gibb <mail <at> sebastiangibb.de>
Subject: [PATCH 0/4] gnu: add watson
Date: Mon, 12 Apr 2021 17:45:56 +0200
Hi,

these commits add watson, a CLI time tracker to guix.

Best wishes,

Sebastian

Sebastian Gibb (4):
  gnu: python-arrow: Update to 1.0.3.
  gnu: Add python-click-didyoumean
  gnu: Add python-pytest-datafiles.
  gnu: Add watson.

 gnu/packages/python-check.scm | 20 ++++++++++++++++
 gnu/packages/python-xyz.scm   | 20 ++++++++++++++++
 gnu/packages/time.scm         | 45 +++++++++++++++++++++++++++++++++--
 3 files changed, 83 insertions(+), 2 deletions(-)

-- 
2.31.1





Information forwarded to guix-patches <at> gnu.org:
bug#47730; Package guix-patches. (Mon, 12 Apr 2021 15:50:02 GMT) Full text and rfc822 format available.

Message #8 received at 47730 <at> debbugs.gnu.org (full text, mbox):

From: Sebastian Gibb <mail <at> sebastiangibb.de>
To: 47730 <at> debbugs.gnu.org
Cc: Sebastian Gibb <mail <at> sebastiangibb.de>
Subject: [PATCH 1/4] gnu: python-arrow: Update to 1.0.3.
Date: Mon, 12 Apr 2021 17:48:49 +0200
* gnu/packages/time.scm (python-arrow): Update to 1.0.3.
---
 gnu/packages/time.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm
index d6ebb59a1e..dfade604a3 100644
--- a/gnu/packages/time.scm
+++ b/gnu/packages/time.scm
@@ -414,13 +414,13 @@ timestamps.")
 (define-public python-arrow
   (package
     (name "python-arrow")
-    (version "0.17.0")
+    (version "1.0.3")
     (source (origin
               (method url-fetch)
               (uri (pypi-uri "arrow" version))
               (sha256
                (base32
-                "1m3fpz96w3g08i9x9cpqh3cr795y9zbj1bfnay3ccdhxv86d227z"))))
+                "0793badh4hgbk2c5g70hmbl7n3d4g5d87bcflld0w9rjwy59r71r"))))
     (build-system python-build-system)
     (arguments
      `(#:phases
-- 
2.31.1





Information forwarded to guix-patches <at> gnu.org:
bug#47730; Package guix-patches. (Mon, 12 Apr 2021 15:50:02 GMT) Full text and rfc822 format available.

Message #11 received at 47730 <at> debbugs.gnu.org (full text, mbox):

From: Sebastian Gibb <mail <at> sebastiangibb.de>
To: 47730 <at> debbugs.gnu.org
Cc: Sebastian Gibb <mail <at> sebastiangibb.de>
Subject: [PATCH 2/4] gnu: Add python-click-didyoumean
Date: Mon, 12 Apr 2021 17:48:50 +0200
* gnu/packages/python-xyz.scm (python-click-didyoumean): New variable.
---
 gnu/packages/python-xyz.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index bdb127935a..cbb0a38fff 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24484,3 +24484,23 @@ apply various transformations to plain text in order to yield
 typographically-improved HTML.  While often used in conjunction with Jinja and
 Django template systems, the filters can be used in any environment.")
     (license license:bsd-3)))
+
+(define-public python-click-didyoumean
+  (package
+    (name "python-click-didyoumean")
+    (version "0.0.3")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "click-didyoumean" version))
+              (sha256
+               (base32
+                "1svaza5lpvdbmyrx5xi0riqzq4hb9wnlpqrg6r8zy14pbi42j8hi"))))
+    (build-system python-build-system)
+    (inputs
+     `(("python-click" ,python-click)))
+    (home-page "https://github.com/click-contrib/click-didyoumean")
+    (synopsis "Git-like did-you-mean feature in click")
+    (description
+     "This package provides a Python library for a git-like did-you-mean
+feature in click.")
+    (license license:expat)))
-- 
2.31.1





Information forwarded to guix-patches <at> gnu.org:
bug#47730; Package guix-patches. (Mon, 12 Apr 2021 15:50:03 GMT) Full text and rfc822 format available.

Message #14 received at 47730 <at> debbugs.gnu.org (full text, mbox):

From: Sebastian Gibb <mail <at> sebastiangibb.de>
To: 47730 <at> debbugs.gnu.org
Cc: Sebastian Gibb <mail <at> sebastiangibb.de>
Subject: [PATCH 3/4] gnu: Add python-pytest-datafiles.
Date: Mon, 12 Apr 2021 17:48:51 +0200
* gnu/packages/python-check.scm (python-pytest-datafiles): New variable.
---
 gnu/packages/python-check.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 961d245630..b086218313 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -1310,3 +1310,23 @@ help in debugging failures and optimizing the scheduler to improve speed.")
     (description "A pytest plugin for Sanic.  It helps you to test your
 code asynchronously.")
     (license license:expat)))
+
+(define-public python-pytest-datafiles
+  (package
+    (name "python-pytest-datafiles")
+    (version "2.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "pytest-datafiles" version))
+              (sha256
+               (base32
+                "1yfvaqbqvjfikz215kwn6qiwwn9girka93zq4jphgfyvn75jjcql"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-pytest" ,python-pytest)))
+    (home-page "https://github.com/omarkohl/pytest-datafiles")
+    (synopsis "Pytest plugin to create a tmpdir")
+    (description
+     "A pytest plugin to create a tmpdir containing a preconfigured set of
+files and/or directories.")
+    (license license:expat)))
-- 
2.31.1





Information forwarded to guix-patches <at> gnu.org:
bug#47730; Package guix-patches. (Mon, 12 Apr 2021 15:50:03 GMT) Full text and rfc822 format available.

Message #17 received at 47730 <at> debbugs.gnu.org (full text, mbox):

From: Sebastian Gibb <mail <at> sebastiangibb.de>
To: 47730 <at> debbugs.gnu.org
Cc: Sebastian Gibb <mail <at> sebastiangibb.de>
Subject: [PATCH 4/4] gnu: Add watson.
Date: Mon, 12 Apr 2021 17:48:52 +0200
* gnu/packages/time.scm (watson): New variable.
---
 gnu/packages/time.scm | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm
index dfade604a3..057c72b125 100644
--- a/gnu/packages/time.scm
+++ b/gnu/packages/time.scm
@@ -41,6 +41,8 @@
   #:use-module (gnu packages golang)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages python)
+  #:use-module (gnu packages python-check)
+  #:use-module (gnu packages python-web)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages terminals)
   #:use-module (gnu packages textutils)
@@ -540,3 +542,42 @@ calls.")
 from a starting point you provide.  The user can pause and resume the
 countdown from the text user interface.")
     (license expat)))
+
+(define-public watson
+  (package
+    (name "watson")
+    (version "2.0.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/tailordev/watson")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "1yxqjirv7cpg4hqj4l3a53p3p3kl82bcx6drgvl9v849vcc3l7s0"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda _
+                      (invoke "pytest")
+                      #t)))))
+    (native-inputs
+     `(("python-pytest" ,python-pytest)
+       ("python-pytest-datafiles" ,python-pytest-datafiles)
+       ("python-pytest-mock" ,python-pytest-mock)))
+    (inputs
+     `(("python-arrow" ,python-arrow)
+       ("python-click" ,python-click)
+       ("python-click-didyoumean" ,python-click-didyoumean)
+       ("python-colorama" ,python-colorama)
+       ("python-requests" ,python-requests)))
+    (home-page "https://tailordev.github.io/watson/")
+    (synopsis
+     "Command-line time tracker")
+    (description
+     "Watson is command-line interface to manage your time.  It supports
+     projects, tagging and reports.")
+    (license expat)))
-- 
2.31.1





Information forwarded to guix-patches <at> gnu.org:
bug#47730; Package guix-patches. (Mon, 12 Apr 2021 19:43:02 GMT) Full text and rfc822 format available.

Message #20 received at 47730 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Sebastian Gibb <mail <at> sebastiangibb.de>, 47730 <at> debbugs.gnu.org
Subject: Re: [bug#47730] [PATCH 4/4] gnu: Add watson.
Date: Mon, 12 Apr 2021 21:42:08 +0200
[Message part 1 (text/plain, inline)]
On Mon, 2021-04-12 at 17:48 +0200, Sebastian Gibb via Guix-patches via wrote:
> [...]
> +     `(#:phases (modify-phases %standard-phases
> +                  (replace 'check
> +                    (lambda _
> +                      (invoke "pytest")
> +                      #t)))))

Phases do not need to return #t anymore.  The warning that results
if a phase doesn't return #t has been removed on the core-updates
branch, which will at some point in time be merged in master.

From a cursory look, I don't see any other problems, except perhaps ...

> +    (synopsis
> +     "Command-line time tracker")

I don't see a reason for a newline afer 'synopsis' here.

Thanks,
Maxime.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#47730; Package guix-patches. (Thu, 15 Apr 2021 13:59:02 GMT) Full text and rfc822 format available.

Message #23 received at 47730 <at> debbugs.gnu.org (full text, mbox):

From: Sebastian Gibb <mail <at> sebastiangibb.de>
To: 47730 <at> debbugs.gnu.org
Cc: Sebastian Gibb <mail <at> sebastiangibb.de>
Subject: [PATCH 4/4] gnu: Add watson.
Date: Thu, 15 Apr 2021 15:57:57 +0200
* gnu/packages/time.scm (watson): New variable.
---
Dear Maxime,

thanks for your review.

I removed the #t and the newline in the snyopsis as you suggested.

 gnu/packages/time.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm
index dfade604a3..ab9e66285f 100644
--- a/gnu/packages/time.scm
+++ b/gnu/packages/time.scm
@@ -41,6 +41,8 @@
   #:use-module (gnu packages golang)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages python)
+  #:use-module (gnu packages python-check)
+  #:use-module (gnu packages python-web)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages terminals)
   #:use-module (gnu packages textutils)
@@ -540,3 +542,40 @@ calls.")
 from a starting point you provide.  The user can pause and resume the
 countdown from the text user interface.")
     (license expat)))
+
+(define-public watson
+  (package
+    (name "watson")
+    (version "2.0.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/tailordev/watson")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "1yxqjirv7cpg4hqj4l3a53p3p3kl82bcx6drgvl9v849vcc3l7s0"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda _
+                      (invoke "pytest"))))))
+    (native-inputs
+     `(("python-pytest" ,python-pytest)
+       ("python-pytest-datafiles" ,python-pytest-datafiles)
+       ("python-pytest-mock" ,python-pytest-mock)))
+    (inputs
+     `(("python-arrow" ,python-arrow)
+       ("python-click" ,python-click)
+       ("python-click-didyoumean" ,python-click-didyoumean)
+       ("python-colorama" ,python-colorama)
+       ("python-requests" ,python-requests)))
+    (home-page "https://tailordev.github.io/Watson/")
+    (synopsis "Command-line time tracker")
+    (description
+     "Watson is command-line interface to manage your time.  It supports
+     projects, tagging and reports.")
+    (license expat)))
-- 
2.31.1





Reply sent to Sharlatan Hellseher <sharlatanus <at> gmail.com>:
You have taken responsibility. (Mon, 26 Aug 2024 23:40:02 GMT) Full text and rfc822 format available.

Notification sent to Sebastian Gibb <mail <at> sebastiangibb.de>:
bug acknowledged by developer. (Mon, 26 Aug 2024 23:40:02 GMT) Full text and rfc822 format available.

Message #28 received at 47730-done <at> debbugs.gnu.org (full text, mbox):

From: Sharlatan Hellseher <sharlatanus <at> gmail.com>
To: 47730-done <at> debbugs.gnu.org
Subject: [PATCH 0/4] gnu: add watson
Date: Tue, 27 Aug 2024 00:37:57 +0100
[Message part 1 (text/plain, inline)]
Hi,

Thank you for the ptaches.

Pushed as dfaf06e9a9..dd81dcecde to master 

- accepeted [2/2]
  - [X] [PATCH 3/4] gnu: Add python-pytest-datafiles.
    - Update to 3.0.0
    - Swap to Git checkout containing tests
  - [X] [PATCH 4/4] gnu: Add watson.
    - Update to 2.1.0
    - Place to task-management

- skipped [2/2]
  - [X] [PATCH 1/4] gnu: python-arrow: Update to 1.0.3.
    - 375a1a0558 gnu: python-canvasapi: Update to 3.2.0.
  - [X] [PATCH 2/4] gnu: Add python-click-didyoumean
    - c89a690d0b gnu: Add python-click-didyoumean.

--
Oleg
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 24 Sep 2024 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 55 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.