Package Details: watson 2.1.0-1

Git Clone URL: https://aur.archlinux.org/watson.git (read-only, click to copy)
Package Base: watson
Description: A wonderful CLI to track your time!
Upstream URL: https://tailordev.github.io/Watson/
Keywords: monitoring report time time-tracking tracking watson
Licenses: MIT
Submitter: loonies
Maintainer: loonies
Last Packager: loonies
Votes: 17
Popularity: 0.82
First Submitted: 2016-02-09 11:50 (UTC)
Last Updated: 2022-05-24 18:39 (UTC)

Pinned Comments

loonies commented on 2019-12-08 22:14 (UTC) (edited on 2019-12-10 07:36 (UTC) by loonies)

Prior to flagging the package out-of-date or reporting build errors please:

  • Make sure that your system is up-to-date (pacman -Syu)
  • Rebuild and reinstall dependencies (especially ones from AUR)
  • Rebuild and reinstall the package

Do not expect AUR packages to trigger rebuild or suggest bumping "pkgrel" number. This is expected behaviour and the way Arch packing is designed to work.

For more information read the official documentation and man pages.

Latest Comments

1 2 3 Next › Last »

Reylak commented on 2024-04-09 13:28 (UTC)

Should the proposed patch be included in this package? It applies and fixes things fine for me, with theses changes to the PKGBUILD:

diff --git a/PKGBUILD b/PKGBUILD
index a955bfe..4f3944a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@

 pkgname=watson
 pkgver=2.1.0
-pkgrel=1
+pkgrel=2
 pkgdesc='A wonderful CLI to track your time!'
 arch=('any')
 url='https://tailordev.github.io/Watson/'
@@ -17,8 +17,15 @@ depends=(
 makedepends=('python-setuptools')
 options=(!emptydirs)

-source=("$pkgname-$pkgver.tar.gz::https://github.com/TailorDev/Watson/archive/$pkgver.tar.gz")
-sha256sums=('ba0d23a1437e022f7d331c5a5923e24b3996099a4e140edeb5785f992e0b705b')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/TailorDev/Watson/archive/$pkgver.tar.gz"
+    "fix-completions.patch")
+sha256sums=('ba0d23a1437e022f7d331c5a5923e24b3996099a4e140edeb5785f992e0b705b'
+            '344a305cd2934aa5481d2da5cdb36b059bef62ce5368c0083493b7525889094a')
+
+prepare() {
+    cd "$srcdir/Watson-$pkgver"
+    patch --strip=1 --input=../fix-completions.patch
+}

 build() {
     cd "$srcdir/Watson-$pkgver"

Moxon commented on 2022-12-07 08:19 (UTC)

@j.r: great idea! I wasn't aware of that option...

j.r commented on 2022-12-07 08:11 (UTC)

@Moxon I would rather suggest only applying https://github.com/voidus/Watson/commit/9040eeb2c509bd52121c1e5de815127d62533461.patch as patch. Instead of changing the whole source to a third party fork.

Moxon commented on 2022-12-07 07:39 (UTC) (edited on 2022-12-07 07:40 (UTC) by Moxon)

Completion stopped working a while ago, but there is a fix available on https://github.com/voidus/Watson/tree/fix-completions which works for me. I uses python-click 8.1.3-1 and I needed to change PKGBUILD to this:

diff --git a/PKGBUILD b/PKGBUILD
index a955bfe..f20f979 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@

 pkgname=watson
 pkgver=2.1.0
-pkgrel=1
+pkgrel=2
 pkgdesc='A wonderful CLI to track your time!'
 arch=('any')
 url='https://tailordev.github.io/Watson/'
@@ -17,16 +17,16 @@ depends=(
 makedepends=('python-setuptools')
 options=(!emptydirs)

-source=("$pkgname-$pkgver.tar.gz::https://github.com/TailorDev/Watson/archive/$pkgver.tar.gz")
-sha256sums=('ba0d23a1437e022f7d331c5a5923e24b3996099a4e140edeb5785f992e0b705b')
+source=("git+https://github.com/voidus/Watson.git#branch=fix-completions")
+sha256sums=('SKIP')

 build() {
-    cd "$srcdir/Watson-$pkgver"
+    cd "$srcdir/Watson"
     python setup.py build
 }

 package() {
-    cd "$srcdir/Watson-$pkgver"
+    cd "$srcdir/Watson"

     install -D -m 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
     install -D -m 644 watson.completion "$pkgdir/usr/share/bash-completion/completions/$pkgname"

ab2422 commented on 2022-01-10 23:32 (UTC) (edited on 2022-01-10 23:33 (UTC) by ab2422)

@fabean here's what I did to get watson to work after the python update:

  1. Used pip to install click version 7.1.2, via pip install --user click==7.1.2 (before doing this, running pip list didn't list any version of click, since I ignore click updates to avoid the click 8.0 issue, and so updating to python3.10 did not automatically reinstall click for me)
  2. Reinstalled watson (in my case on Manjaro, using pacaur)

Perhaps this will work for you?

fabean commented on 2022-01-05 18:23 (UTC)

@drScience for me as of today, moving all python-click on my system, building it from PKGBUILD then installing watson still isn't working for me. This is really sad, been using watson for years to track all my work time, really need to get this working.

drScience commented on 2022-01-02 12:12 (UTC)

@somini since the Python 3.10 update, at least on my system, I can only get python-click working when building through makepkg (see the PKGBUILD in @loonies pinned comment). Relying on pacman will only install python-click 7.2.1 as a Python 3.9 package, and then watson complains it doesn't find click although the package dependency is satisfied.

loonies commented on 2021-12-28 16:20 (UTC)

@somini, please read the pinned comment.

somini commented on 2021-12-27 18:57 (UTC)

There was a major Python update to v3.10, this needs to be rebuild.

Please bump the package version.

loonies commented on 2021-08-08 13:30 (UTC) (edited on 2021-08-09 08:17 (UTC) by loonies)

As already mentioned in the comments, the 2.0.1 version of watson is not compatible with python-click version 8.0+.

I've tried to apply patch from PR #432, but then auto-completion didn't work. Therefore, as long as watson compatibility with python-click is broken, the best option is to pin python-click to version <8.0. This is also how watson developers did it, as well as other distributions, such as NixOS for example.

Unless there is a patch that is fully compatible with python-click 8+, an interim solution is to:

  1. downgrade python-click to version 7 (from Pacman cache i.e. /var/cache/pacman/pkg/, archive.archlinux.org, build from PKGBUILD, or use some other source)
  2. Add python-click to IgnorePkg in /etc/pacman.conf