* [PR PATCH] safeeyes: update to 2.1.6.
@ 2023-11-06 14:52 reedts
2023-11-06 15:22 ` [PR PATCH] [Updated] " reedts
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: reedts @ 2023-11-06 14:52 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 718 bytes --]
There is a new 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: 3206 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] 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PR PATCH] [Updated] safeeyes: update to 2.1.6.
2023-11-06 14:52 [PR PATCH] safeeyes: update to 2.1.6 reedts
@ 2023-11-06 15:22 ` reedts
2023-11-06 15:27 ` reedts
2023-12-03 20:14 ` [PR PATCH] [Merged]: " Duncaen
2 siblings, 0 replies; 4+ messages in thread
From: reedts @ 2023-11-06 15:22 UTC (permalink / raw)
To: ml
[-- 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"
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PR PATCH] [Updated] safeeyes: update to 2.1.6.
2023-11-06 14:52 [PR PATCH] safeeyes: update to 2.1.6 reedts
2023-11-06 15:22 ` [PR PATCH] [Updated] " reedts
@ 2023-11-06 15:27 ` reedts
2023-12-03 20:14 ` [PR PATCH] [Merged]: " Duncaen
2 siblings, 0 replies; 4+ messages in thread
From: reedts @ 2023-11-06 15:27 UTC (permalink / raw)
To: ml
[-- 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: 3446 bytes --]
From abcca1b3f3adcd6d571c719a12b64f9e3fb00fe7 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] safeeyes: update to 2.1.6.
---
srcpkgs/safeeyes/patches/fix-getargspec.patch | 13 ---------
.../patches/fix-python3.12-importlib.patch | 28 +++++++++++++++++++
srcpkgs/safeeyes/template | 8 +++---
3 files changed, 32 insertions(+), 17 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..fcdfc63d67aa4 100644
--- a/srcpkgs/safeeyes/template
+++ b/srcpkgs/safeeyes/template
@@ -1,16 +1,16 @@
# 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"
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"
homepage="https://slgobinath.github.io/SafeEyes/"
distfiles="${PYPI_SITE}/s/safeeyes/safeeyes-${version}.tar.gz"
-checksum=4ac651c8e0de611424da956ca4acdf25b4915ffce30fe33e69a2be6173eee821
+checksum=b6fb014dfebecca07307968bf8b51c12f1388e65479e7a18d0be31a0a309d2f3
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PR PATCH] [Merged]: safeeyes: update to 2.1.6.
2023-11-06 14:52 [PR PATCH] safeeyes: update to 2.1.6 reedts
2023-11-06 15:22 ` [PR PATCH] [Updated] " reedts
2023-11-06 15:27 ` reedts
@ 2023-12-03 20:14 ` Duncaen
2 siblings, 0 replies; 4+ messages in thread
From: Duncaen @ 2023-12-03 20:14 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 561 bytes --]
There's a merged pull request on the void-packages repository
safeeyes: update to 2.1.6.
https://github.com/void-linux/void-packages/pull/47090
Description:
<!-- 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-12-03 20:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-06 14:52 [PR PATCH] safeeyes: update to 2.1.6 reedts
2023-11-06 15:22 ` [PR PATCH] [Updated] " reedts
2023-11-06 15:27 ` reedts
2023-12-03 20:14 ` [PR PATCH] [Merged]: " Duncaen
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).