* [gentoo-commits] repo/gentoo:master commit in: dev-python/python-varlink/, dev-python/python-varlink/files/
@ 2021-08-20 7:44 Arthur Zamarin
0 siblings, 0 replies; 2+ messages in thread
From: Arthur Zamarin @ 2021-08-20 7:44 UTC (permalink / raw
To: gentoo-commits
commit: 67554cc3b5fc0871a642283d701fe3c1a0b66f6d
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 20 07:40:22 2021 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Aug 20 07:43:27 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67554cc3
dev-python/python-varlink: add 30.3.1, EAPI=8, enable py3.{9,10}
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
dev-python/python-varlink/Manifest | 1 +
.../files/python-varlink-30.3.1-fix.py3.10.patch | 30 +++++++++++++++++++
.../python-varlink/python-varlink-30.3.1.ebuild | 34 ++++++++++++++++++++++
3 files changed, 65 insertions(+)
diff --git a/dev-python/python-varlink/Manifest b/dev-python/python-varlink/Manifest
index dc585c6ac0e..1623ce2efe1 100644
--- a/dev-python/python-varlink/Manifest
+++ b/dev-python/python-varlink/Manifest
@@ -1 +1,2 @@
DIST python-varlink-30.3.0.tar.gz 40124 BLAKE2B a93fe2fad156dfd8f74841846dbe9da127d01e837ad0ae750658b0391da006c913eef663e4777ad2fc6c9c2d19746e52d7e66c49cdd43f0417db9d558d4b5dee SHA512 1aac105d62452144525d8b4c59dbd7a70a9cf82589cce0b98ac56e457d985d2c370f8ce99d209294b4a4cfe1683ae2bc1a280ea5a8878ecd4bcf2951ff0b802d
+DIST python-varlink-30.3.1.gh.tar.gz 39921 BLAKE2B d717eb662cd14fffd7620fb8f3eee5ae8431b77a437a783ba090802a26d0225439eb9305050863c85a6c33dbdd28709262858bf407a08333b177057304695c93 SHA512 13a0176694ee31121998a2dd88bf57d840ec20b0ccac63b574c4f12ef5c9bfbfbd67bdc7a8d362cd1c256e393d8c3691d1efc58aabaf8f5ec26067a55157a6cd
diff --git a/dev-python/python-varlink/files/python-varlink-30.3.1-fix.py3.10.patch b/dev-python/python-varlink/files/python-varlink-30.3.1-fix.py3.10.patch
new file mode 100644
index 00000000000..e85826f6bc0
--- /dev/null
+++ b/dev-python/python-varlink/files/python-varlink-30.3.1-fix.py3.10.patch
@@ -0,0 +1,30 @@
+From 0a9014ad564131ee98dc8c4c1f9cc0c5e29d5dac Mon Sep 17 00:00:00 2001
+From: Arthur Zamarin <arthurzam@gentoo.org>
+Date: Fri, 20 Aug 2021 10:37:42 +0300
+Subject: [PATCH] Python3.10: fix import collections
+
+Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
+---
+ varlink/scanner.py | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/varlink/scanner.py b/varlink/scanner.py
+index d5a0e7b..58ced74 100644
+--- a/varlink/scanner.py
++++ b/varlink/scanner.py
+@@ -21,7 +21,11 @@ try:
+ except: # Python 2
+ from argparse import Namespace as SimpleNamespace
+
+-from collections import (Set, OrderedDict, Mapping)
++try:
++ from collections.abc import (Set, Mapping)
++ from collections import OrderedDict
++except ImportError:
++ from collections import (Set, OrderedDict, Mapping)
+
+ from .error import (MethodNotFound, InvalidParameter)
+
+--
+2.33.0
+
diff --git a/dev-python/python-varlink/python-varlink-30.3.1.ebuild b/dev-python/python-varlink/python-varlink-30.3.1.ebuild
new file mode 100644
index 00000000000..9a04cf6dc26
--- /dev/null
+++ b/dev-python/python-varlink/python-varlink-30.3.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+inherit distutils-r1
+
+DESCRIPTION="Python implementation of the Varlink protocol"
+HOMEPAGE="https://github.com/varlink/python"
+SRC_URI="
+ https://github.com/varlink/python/archive/${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+S="${WORKDIR}/python-${PV}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="dev-python/future[${PYTHON_USEDEP}]"
+
+PATCHES=(
+ "${FILESDIR}/${P}-fix.py3.10.patch"
+)
+
+distutils_enable_tests unittest
+
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+
+ sed -e '/setuptools_scm/d' -i setup.cfg || die
+ sed -e "s/use_scm_version=True/version='${PV}'/" -i setup.py || die
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/python-varlink/, dev-python/python-varlink/files/
@ 2023-01-27 20:10 Michał Górny
0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2023-01-27 20:10 UTC (permalink / raw
To: gentoo-commits
commit: 6f01c62ccb9cf8ded7ceb2a11d71d4891db84da1
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 27 20:06:05 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jan 27 20:09:48 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f01c62c
dev-python/python-varlink: Remove old
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/python-varlink/Manifest | 1 -
.../files/python-varlink-30.3.1-fix.py3.10.patch | 30 --------------------
.../python-varlink/python-varlink-30.3.1-r1.ebuild | 32 ----------------------
3 files changed, 63 deletions(-)
diff --git a/dev-python/python-varlink/Manifest b/dev-python/python-varlink/Manifest
index f1b7f36c3397..1b7a34c31b1b 100644
--- a/dev-python/python-varlink/Manifest
+++ b/dev-python/python-varlink/Manifest
@@ -1,2 +1 @@
-DIST python-varlink-30.3.1.gh.tar.gz 39921 BLAKE2B d717eb662cd14fffd7620fb8f3eee5ae8431b77a437a783ba090802a26d0225439eb9305050863c85a6c33dbdd28709262858bf407a08333b177057304695c93 SHA512 13a0176694ee31121998a2dd88bf57d840ec20b0ccac63b574c4f12ef5c9bfbfbd67bdc7a8d362cd1c256e393d8c3691d1efc58aabaf8f5ec26067a55157a6cd
DIST python-varlink-31.0.0.gh.tar.gz 41003 BLAKE2B 3ffe5808ed130d09beabe545ff3437b6f91d74a35a7bf2a72eca854c77c7f8992f6d59c9f73428356cbb98f95b0af2950afd3bf3c6f9955b4f2b12524903d2c6 SHA512 3b8a9479c78a73793d56854b008fca7d041044314b6cf424326f9429c480b0b8561075ce6fa282c92b79ce75c2ec941249a65e9fb6a995510ede9dc064d6dcab
diff --git a/dev-python/python-varlink/files/python-varlink-30.3.1-fix.py3.10.patch b/dev-python/python-varlink/files/python-varlink-30.3.1-fix.py3.10.patch
deleted file mode 100644
index e85826f6bc0e..000000000000
--- a/dev-python/python-varlink/files/python-varlink-30.3.1-fix.py3.10.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From 0a9014ad564131ee98dc8c4c1f9cc0c5e29d5dac Mon Sep 17 00:00:00 2001
-From: Arthur Zamarin <arthurzam@gentoo.org>
-Date: Fri, 20 Aug 2021 10:37:42 +0300
-Subject: [PATCH] Python3.10: fix import collections
-
-Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
----
- varlink/scanner.py | 6 +++++-
- 1 file changed, 5 insertions(+), 1 deletion(-)
-
-diff --git a/varlink/scanner.py b/varlink/scanner.py
-index d5a0e7b..58ced74 100644
---- a/varlink/scanner.py
-+++ b/varlink/scanner.py
-@@ -21,7 +21,11 @@ try:
- except: # Python 2
- from argparse import Namespace as SimpleNamespace
-
--from collections import (Set, OrderedDict, Mapping)
-+try:
-+ from collections.abc import (Set, Mapping)
-+ from collections import OrderedDict
-+except ImportError:
-+ from collections import (Set, OrderedDict, Mapping)
-
- from .error import (MethodNotFound, InvalidParameter)
-
---
-2.33.0
-
diff --git a/dev-python/python-varlink/python-varlink-30.3.1-r1.ebuild b/dev-python/python-varlink/python-varlink-30.3.1-r1.ebuild
deleted file mode 100644
index 1887e6264582..000000000000
--- a/dev-python/python-varlink/python-varlink-30.3.1-r1.ebuild
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{9..10} )
-inherit distutils-r1
-
-DESCRIPTION="Python implementation of the Varlink protocol"
-HOMEPAGE="https://github.com/varlink/python"
-SRC_URI="
- https://github.com/varlink/python/archive/${PV}.tar.gz
- -> ${P}.gh.tar.gz
-"
-S="${WORKDIR}/python-${PV}"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-PATCHES=(
- "${FILESDIR}/${P}-fix.py3.10.patch"
-)
-
-distutils_enable_tests unittest
-
-python_prepare_all() {
- distutils-r1_python_prepare_all
-
- sed -e '/setuptools_scm/d' -i setup.cfg || die
- sed -e "s/use_scm_version=True/version='${PV}'/" -i setup.py || die
-}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-01-27 20:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-20 7:44 [gentoo-commits] repo/gentoo:master commit in: dev-python/python-varlink/, dev-python/python-varlink/files/ Arthur Zamarin
-- strict thread matches above, loose matches on Subject: below --
2023-01-27 20:10 Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox