Github messages for voidlinux
 help / color / mirror / Atom feed
From: reedts <reedts@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] safeeyes: update to 2.1.6.
Date: Mon, 06 Nov 2023 16:22:18 +0100	[thread overview]
Message-ID: <20231106152218.5ETU1KQJB8goqFxmd-G2fzP1y5lUaaLcI5n6AVwhB_U@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-47090@inbox.vuxu.org>

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

There is an updated pull request by reedts against master on the void-packages repository

https://github.com/reedts/void-packages safeeyes_v2.1.6
https://github.com/void-linux/void-packages/pull/47090

safeeyes: update to 2.1.6.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - aarch64
  - armv7l
  - armv7l-musl


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

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

From 9d687a686fa8b62d1b7eb5eb04e41153a098a31c Mon Sep 17 00:00:00 2001
From: Julian Bigge <julian.bigge@uni-muenster.de>
Date: Mon, 6 Nov 2023 14:57:09 +0100
Subject: [PATCH 1/2] safeeyes: update to 2.1.6.

---
 srcpkgs/safeeyes/patches/fix-getargspec.patch | 13 ---------
 .../patches/fix-python3.12-importlib.patch    | 28 +++++++++++++++++++
 srcpkgs/safeeyes/template                     |  6 ++--
 3 files changed, 31 insertions(+), 16 deletions(-)
 delete mode 100644 srcpkgs/safeeyes/patches/fix-getargspec.patch
 create mode 100644 srcpkgs/safeeyes/patches/fix-python3.12-importlib.patch

diff --git a/srcpkgs/safeeyes/patches/fix-getargspec.patch b/srcpkgs/safeeyes/patches/fix-getargspec.patch
deleted file mode 100644
index fcef27fa8b132..0000000000000
--- a/srcpkgs/safeeyes/patches/fix-getargspec.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/safeeyes/utility.py b/safeeyes/utility.py
-index bf2dede..7e08735 100644
---- a/safeeyes/utility.py
-+++ b/safeeyes/utility.py
-@@ -666,7 +666,7 @@ def has_method(module, method_name, no_of_args=0):
-     Check whether the given function is defined in the module or not.
-     """
-     if hasattr(module, method_name):
--        if len(inspect.getargspec(getattr(module, method_name)).args) == no_of_args:
-+        if len(inspect.getfullargspec(getattr(module, method_name)).args) == no_of_args:
-             return True
-     return False
- 
diff --git a/srcpkgs/safeeyes/patches/fix-python3.12-importlib.patch b/srcpkgs/safeeyes/patches/fix-python3.12-importlib.patch
new file mode 100644
index 0000000000000..f633b7513bb12
--- /dev/null
+++ b/srcpkgs/safeeyes/patches/fix-python3.12-importlib.patch
@@ -0,0 +1,28 @@
+diff --git a/safeeyes/utility.py b/safeeyes/utility.py
+index 76803e5..ad35134 100644
+--- a/safeeyes/utility.py
++++ b/safeeyes/utility.py
+@@ -21,9 +21,9 @@ This module contains utility functions for Safe Eyes and its plugins.
+ """
+ 
+ import errno
+-import imp
+ import inspect
+ import importlib
++import importlib.util
+ import json
+ import locale
+ import logging
+@@ -354,11 +354,7 @@ def module_exist(module):
+     """
+     Check wther the given Python module exists or not.
+     """
+-    try:
+-        imp.find_module(module)
+-        return True
+-    except ImportError:
+-        return False
++    return importlib.util.find_spec(module) is not None
+ 
+ 
+ def merge_configs(new_config, old_config):
diff --git a/srcpkgs/safeeyes/template b/srcpkgs/safeeyes/template
index fc127f3690c09..100064064eab5 100644
--- a/srcpkgs/safeeyes/template
+++ b/srcpkgs/safeeyes/template
@@ -1,7 +1,7 @@
 # Template file for 'safeeyes'
 pkgname=safeeyes
-version=2.1.4
-revision=3
+version=2.1.6
+revision=1
 build_style=python3-module
 hostmakedepends="python3-setuptools python3-devel pkg-config"
 makedepends="python3-devel cairo-devel libgirepository-devel"
@@ -13,4 +13,4 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3.0-or-later"
 homepage="https://slgobinath.github.io/SafeEyes/"
 distfiles="${PYPI_SITE}/s/safeeyes/safeeyes-${version}.tar.gz"
-checksum=4ac651c8e0de611424da956ca4acdf25b4915ffce30fe33e69a2be6173eee821
+checksum=b6fb014dfebecca07307968bf8b51c12f1388e65479e7a18d0be31a0a309d2f3

From b438685659c449d601bc8c0254ba1e664a804d98 Mon Sep 17 00:00:00 2001
From: Julian Bigge <julian.bigge@uni-muenster.de>
Date: Mon, 6 Nov 2023 16:21:55 +0100
Subject: [PATCH 2/2] Add python3-pip dependency for tests

---
 srcpkgs/safeeyes/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/safeeyes/template b/srcpkgs/safeeyes/template
index 100064064eab5..fcdfc63d67aa4 100644
--- a/srcpkgs/safeeyes/template
+++ b/srcpkgs/safeeyes/template
@@ -7,7 +7,7 @@ hostmakedepends="python3-setuptools python3-devel pkg-config"
 makedepends="python3-devel cairo-devel libgirepository-devel"
 depends="python3-psutil libayatana-appindicator python3-gobject python3-Babel
  python3-dbus xprop alsa-utils python3-xlib"
-checkdepends="$depends"
+checkdepends="$depends python3-pip"
 short_desc="Tool to reduce and prevent repetitive strain injury"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-3.0-or-later"

  reply	other threads:[~2023-11-06 15:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-06 14:52 [PR PATCH] " reedts
2023-11-06 15:22 ` reedts [this message]
2023-11-06 15:27 ` [PR PATCH] [Updated] " reedts
2023-12-03 20:14 ` [PR PATCH] [Merged]: " Duncaen

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=20231106152218.5ETU1KQJB8goqFxmd-G2fzP1y5lUaaLcI5n6AVwhB_U@z \
    --to=reedts@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).