Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] arandr: replace inspect.getargspec() with inspect.getfullargspec()
@ 2022-11-09  4:45 tsndqst
  2022-11-09  5:06 ` [PR PATCH] [Updated] " tsndqst
  2022-11-09  8:32 ` [PR PATCH] [Merged]: " classabbyamp
  0 siblings, 2 replies; 3+ messages in thread
From: tsndqst @ 2022-11-09  4:45 UTC (permalink / raw)
  To: ml

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

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

https://github.com/tsndqst/void-packages fix_arandr_python3.11
https://github.com/void-linux/void-packages/pull/40404

arandr: replace inspect.getargspec() with inspect.getfullargspec()
#### 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-GLIBC)

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

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

From 8a03222b15ac0ffebb5c290b24cdf4745d8bbb9d Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Tue, 8 Nov 2022 21:32:08 -0600
Subject: [PATCH] arandr: replace inspect.getargspec() with
 inspect.getfullargspec()

---
 srcpkgs/arandr/patches/getfullargspec.patch | 13 +++++++++++++
 srcpkgs/arandr/template                     |  2 +-
 2 files changed, 14 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/arandr/patches/getfullargspec.patch

diff --git a/srcpkgs/arandr/patches/getfullargspec.patch b/srcpkgs/arandr/patches/getfullargspec.patch
new file mode 100644
index 000000000000..4395ec182a18
--- /dev/null
+++ b/srcpkgs/arandr/patches/getfullargspec.patch
@@ -0,0 +1,13 @@
+diff --git a/screenlayout/gui.py b/screenlayout/gui.py
+index 275dbdf..bc598cf 100644
+--- a/screenlayout/gui.py
++++ b/screenlayout/gui.py
+@@ -48,7 +48,7 @@ def actioncallback(function):
+ 
+     A first argument called 'self' is passed through.
+     """
+-    argnames = inspect.getargspec(function)[0]
++    argnames = inspect.getfullargspec(function)[0]
+     if argnames[0] == 'self':
+         has_self = True
+         argnames.pop(0)
diff --git a/srcpkgs/arandr/template b/srcpkgs/arandr/template
index a54ee56be961..247f1652baa0 100644
--- a/srcpkgs/arandr/template
+++ b/srcpkgs/arandr/template
@@ -1,7 +1,7 @@
 # Template file for 'arandr'
 pkgname=arandr
 version=0.1.10
-revision=7
+revision=8
 build_style=python3-module
 hostmakedepends="gettext python3-setuptools python3-docutils"
 depends="python3-gobject gtk+3 xrandr"

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Updated] arandr: replace inspect.getargspec() with inspect.getfullargspec()
  2022-11-09  4:45 [PR PATCH] arandr: replace inspect.getargspec() with inspect.getfullargspec() tsndqst
@ 2022-11-09  5:06 ` tsndqst
  2022-11-09  8:32 ` [PR PATCH] [Merged]: " classabbyamp
  1 sibling, 0 replies; 3+ messages in thread
From: tsndqst @ 2022-11-09  5:06 UTC (permalink / raw)
  To: ml

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

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

https://github.com/tsndqst/void-packages fix_arandr_python3.11
https://github.com/void-linux/void-packages/pull/40404

arandr: replace inspect.getargspec() with inspect.getfullargspec()
#### 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-GLIBC)

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

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

From 815e48e153240cdcbbe827ea492ecef99d850272 Mon Sep 17 00:00:00 2001
From: Tim Sandquist <tim.sandquist@gmail.com>
Date: Tue, 8 Nov 2022 21:32:08 -0600
Subject: [PATCH] arandr: replace inspect.getargspec() with
 inspect.getfullargspec()

---
 srcpkgs/arandr/patches/getfullargspec.patch | 13 +++++++++++++
 srcpkgs/arandr/template                     |  3 ++-
 2 files changed, 15 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/arandr/patches/getfullargspec.patch

diff --git a/srcpkgs/arandr/patches/getfullargspec.patch b/srcpkgs/arandr/patches/getfullargspec.patch
new file mode 100644
index 000000000000..4395ec182a18
--- /dev/null
+++ b/srcpkgs/arandr/patches/getfullargspec.patch
@@ -0,0 +1,13 @@
+diff --git a/screenlayout/gui.py b/screenlayout/gui.py
+index 275dbdf..bc598cf 100644
+--- a/screenlayout/gui.py
++++ b/screenlayout/gui.py
+@@ -48,7 +48,7 @@ def actioncallback(function):
+ 
+     A first argument called 'self' is passed through.
+     """
+-    argnames = inspect.getargspec(function)[0]
++    argnames = inspect.getfullargspec(function)[0]
+     if argnames[0] == 'self':
+         has_self = True
+         argnames.pop(0)
diff --git a/srcpkgs/arandr/template b/srcpkgs/arandr/template
index a54ee56be961..2a9822fb3229 100644
--- a/srcpkgs/arandr/template
+++ b/srcpkgs/arandr/template
@@ -1,10 +1,11 @@
 # Template file for 'arandr'
 pkgname=arandr
 version=0.1.10
-revision=7
+revision=8
 build_style=python3-module
 hostmakedepends="gettext python3-setuptools python3-docutils"
 depends="python3-gobject gtk+3 xrandr"
+checkdepends="${depends}"
 short_desc="Graphical frontend for XRandR"
 maintainer="mid-kid <esteve.varela@gmail.com>"
 license="GPL-3.0-or-later"

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Merged]: arandr: replace inspect.getargspec() with inspect.getfullargspec()
  2022-11-09  4:45 [PR PATCH] arandr: replace inspect.getargspec() with inspect.getfullargspec() tsndqst
  2022-11-09  5:06 ` [PR PATCH] [Updated] " tsndqst
@ 2022-11-09  8:32 ` classabbyamp
  1 sibling, 0 replies; 3+ messages in thread
From: classabbyamp @ 2022-11-09  8:32 UTC (permalink / raw)
  To: ml

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

There's a merged pull request on the void-packages repository

arandr: replace inspect.getargspec() with inspect.getfullargspec()
https://github.com/void-linux/void-packages/pull/40404

Description:
#### 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-GLIBC)

This change should fix this error:
```
Traceback (most recent call last):
  File "/usr/bin/arandr", line 41, in <module>
    from screenlayout.gui import main
  File "/usr/lib/python3.11/site-packages/screenlayout/gui.py", line 76, in <module>
    class Application:
  File "/usr/lib/python3.11/site-packages/screenlayout/gui.py", line 185, in Application
    @actioncallback
     ^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/screenlayout/gui.py", line 48, in actioncallback
    argnames = inspect.getargspec(function)[0]
               ^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?
```

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-11-09  8:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-09  4:45 [PR PATCH] arandr: replace inspect.getargspec() with inspect.getfullargspec() tsndqst
2022-11-09  5:06 ` [PR PATCH] [Updated] " tsndqst
2022-11-09  8:32 ` [PR PATCH] [Merged]: " classabbyamp

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).