From: CameronNemo <CameronNemo@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] quodlibet: patch for python 3.10
Date: Sat, 16 Oct 2021 01:47:55 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-33580@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1583 bytes --]
There is a new pull request by CameronNemo against master on the void-packages repository
https://github.com/CameronNemo/void-packages quodlibet-3.10
https://github.com/void-linux/void-packages/pull/33580
quodlibet: patch for python 3.10
<!-- Mark items with [x] where applicable -->
#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
- [ ] aarch64-musl
- [ ] armv7l
- [ ] armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/33580.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-quodlibet-3.10-33580.patch --]
[-- Type: text/x-diff, Size: 4730 bytes --]
From 3ef047dea6f61463ecd8c0c0d0631568fbb1eccd Mon Sep 17 00:00:00 2001
From: Cameron Nemo <cnemo@tutanota.com>
Date: Fri, 15 Oct 2021 16:47:02 -0700
Subject: [PATCH] quodlibet: patch for python 3.10
---
.../quodlibet/patches/collections_abc.patch | 103 ++++++++++++++++++
srcpkgs/quodlibet/template | 3 +-
2 files changed, 105 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/quodlibet/patches/collections_abc.patch
diff --git a/srcpkgs/quodlibet/patches/collections_abc.patch b/srcpkgs/quodlibet/patches/collections_abc.patch
new file mode 100644
index 000000000000..60cf01bb04b4
--- /dev/null
+++ b/srcpkgs/quodlibet/patches/collections_abc.patch
@@ -0,0 +1,103 @@
+Upstream: yes
+
+commit d4e05aef03fe9775de9c00f2730d89815450022e
+Author: LuK1337 <priv.luk@gmail.com>
+Date: Sat Sep 11 11:46:46 2021 +0200
+
+ Finish up collections -> collections.abc migration
+
+ This lets us start QuodLibet on Python 3.10 ^.^
+
+diff --git a/quodlibet/packages/raven/context.py b/quodlibet/packages/raven/context.py
+index 272259a3b..2a3eab4a7 100644
+--- a/quodlibet/packages/raven/context.py
++++ b/quodlibet/packages/raven/context.py
+@@ -7,7 +7,10 @@ raven.context
+ """
+ from __future__ import absolute_import
+
+-from collections import Mapping, Iterable
++try:
++ from collections import abc
++except ImportError:
++ import collections as abc # type: ignore
+ from threading import local
+ from weakref import ref as weakref
+
+@@ -30,7 +33,7 @@ def get_active_contexts():
+ return []
+
+
+-class Context(local, Mapping, Iterable):
++class Context(local, abc.Mapping, abc.Iterable):
+ """
+ Stores context until cleared.
+
+diff --git a/quodlibet/player/gstbe/util.py b/quodlibet/player/gstbe/util.py
+index 2611f8120..7439b716a 100644
+--- a/quodlibet/player/gstbe/util.py
++++ b/quodlibet/player/gstbe/util.py
+@@ -6,7 +6,10 @@
+ # the Free Software Foundation; either version 2 of the License, or
+ # (at your option) any later version.
+
+-import collections
++try:
++ from collections import abc
++except ImportError:
++ import collections as abc # type: ignore
+ import subprocess
+ from enum import Enum
+ from typing import Iterable, Tuple
+@@ -183,7 +186,7 @@ def GStreamerSink(pipeline_desc):
+ return pipe, pipeline_desc
+
+
+-class TagListWrapper(collections.Mapping):
++class TagListWrapper(abc.Mapping):
+ def __init__(self, taglist, merge=False):
+ self._list = taglist
+ self._merge = merge
+diff --git a/quodlibet/util/collection.py b/quodlibet/util/collection.py
+index b726f98e9..83646b8af 100644
+--- a/quodlibet/util/collection.py
++++ b/quodlibet/util/collection.py
+@@ -24,7 +24,10 @@ from quodlibet.formats._audio import (TAG_TO_SORT, NUMERIC_ZERO_DEFAULT,
+ AudioFile)
+ from quodlibet.formats._audio import PEOPLE as _PEOPLE
+ from quodlibet.pattern import Pattern
+-from collections import Iterable
++try:
++ from collections import abc
++except ImportError:
++ import collections as abc # type: ignore
+
+ from quodlibet.util import is_windows
+ from quodlibet.util.path import escape_filename, unescape_filename, limit_path
+@@ -332,7 +335,7 @@ class Album(Collection):
+
+ @hashable
+ @total_ordering
+-class Playlist(Collection, Iterable):
++class Playlist(Collection, abc.Iterable):
+ """A Playlist is a `Collection` that has list-like features
+ Songs can appear more than once.
+ """
+diff --git a/quodlibet/util/collections.py b/quodlibet/util/collections.py
+index ba9d5c1a4..f0b83b5e9 100644
+--- a/quodlibet/util/collections.py
++++ b/quodlibet/util/collections.py
+@@ -9,7 +9,12 @@
+
+ from __future__ import absolute_import
+
+-from collections import MutableSequence, defaultdict
++try:
++ from collections.abc import MutableSequence
++except ImportError:
++ from collections import MutableSequence
++from collections import defaultdict
++from typing import Any
+
+ from .misc import total_ordering
+
diff --git a/srcpkgs/quodlibet/template b/srcpkgs/quodlibet/template
index 0253eb320bfe..9d08f9952a59 100644
--- a/srcpkgs/quodlibet/template
+++ b/srcpkgs/quodlibet/template
@@ -1,7 +1,7 @@
# Template file for 'quodlibet'
pkgname=quodlibet
version=4.4.0
-revision=2
+revision=3
build_style=python3-module
pycompile_module="quodlibet"
hostmakedepends="intltool python3-devel"
@@ -14,3 +14,4 @@ license="GPL-2.0-or-later"
homepage="https://quodlibet.readthedocs.io/en/latest/"
distfiles="https://github.com/quodlibet/quodlibet/releases/download/release-${version}/quodlibet-${version}.tar.gz"
checksum=a03318d2767e4959551763d0a87fad977387af712608fe572714176a24bbf367
+make_check=no # requires X server
next reply other threads:[~2021-10-15 23:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-15 23:47 CameronNemo [this message]
2021-10-15 23:48 ` [PR PATCH] [Updated] " CameronNemo
2021-10-15 23:52 ` [PR PATCH] [Merged]: " ahesford
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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-33580@inbox.vuxu.org \
--to=cameronnemo@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).