* [gentoo-commits] repo/gentoo:master commit in: dev-python/pretty-yaml/files/, dev-python/pretty-yaml/
@ 2021-08-08 12:02 Louis Sautier
0 siblings, 0 replies; 2+ messages in thread
From: Louis Sautier @ 2021-08-08 12:02 UTC (permalink / raw
To: gentoo-commits
commit: dae248ff819cd6f6a36633ed1844335475fb5b91
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 8 11:54:46 2021 +0000
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
CommitDate: Sun Aug 8 12:02:02 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dae248ff
dev-python/pretty-yaml: enable py3.10 and disable py3.7
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
.../files/pretty-yaml-20.4.0-fix-py3.10.patch | 28 ++++++++++++++++++++++
dev-python/pretty-yaml/pretty-yaml-20.4.0.ebuild | 9 +++++--
2 files changed, 35 insertions(+), 2 deletions(-)
diff --git a/dev-python/pretty-yaml/files/pretty-yaml-20.4.0-fix-py3.10.patch b/dev-python/pretty-yaml/files/pretty-yaml-20.4.0-fix-py3.10.patch
new file mode 100644
index 00000000000..c2cd44152d1
--- /dev/null
+++ b/dev-python/pretty-yaml/files/pretty-yaml-20.4.0-fix-py3.10.patch
@@ -0,0 +1,28 @@
+From 707e14bd714e91dc53295393e2c8eea257aced5a Mon Sep 17 00:00:00 2001
+From: Louis Sautier <sautier.louis@gmail.com>
+Date: Sun, 8 Aug 2021 13:44:52 +0200
+Subject: [PATCH] Fix tests for Python 3.10: abstract base classes have moved
+
+As mentioned in the documentation:
+"Deprecated since version 3.3, will be removed in version 3.10: Moved
+Collections Abstract Base Classes to the collections.abc module. For
+backwards compatibility, they continue to be visible in this module through
+Python 3.9."
+---
+ pyaml/tests/dump.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/pyaml/tests/dump.py b/pyaml/tests/dump.py
+index 882a8e8..e1a93ba 100644
+--- a/pyaml/tests/dump.py
++++ b/pyaml/tests/dump.py
+@@ -2,7 +2,8 @@
+ from __future__ import unicode_literals, print_function
+
+ import itertools as it, operator as op, functools as ft
+-from collections import Mapping, OrderedDict, namedtuple
++from collections import OrderedDict, namedtuple
++from collections.abc import Mapping
+ import os, sys, io, yaml, unittest
+
+ if sys.version_info.major > 2: unicode = str
diff --git a/dev-python/pretty-yaml/pretty-yaml-20.4.0.ebuild b/dev-python/pretty-yaml/pretty-yaml-20.4.0.ebuild
index 13be942b018..f592bf0fbda 100644
--- a/dev-python/pretty-yaml/pretty-yaml-20.4.0.ebuild
+++ b/dev-python/pretty-yaml/pretty-yaml-20.4.0.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-PYTHON_COMPAT=( python3_{7..9} )
+PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
@@ -25,6 +25,11 @@ BDEPEND="
dev-python/unidecode[${PYTHON_USEDEP}]
)"
+PATCHES=(
+ # https://github.com/mk-fg/pretty-yaml/pull/38
+ "${FILESDIR}/${P}-fix-py3.10.patch"
+)
+
python_test() {
"${EPYTHON}" pyaml/tests/dump.py -v ||
die "tests failed under ${EPYTHON}"
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/pretty-yaml/files/, dev-python/pretty-yaml/
@ 2021-09-12 7:39 Michał Górny
0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2021-09-12 7:39 UTC (permalink / raw
To: gentoo-commits
commit: d7bb3b71aa143159008af5f5f55aa2e84e4606ee
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 12 07:38:41 2021 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Sep 12 07:39:34 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7bb3b71
dev-python/pretty-yaml: Remove old
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pretty-yaml/Manifest | 1 -
.../files/pretty-yaml-20.4.0-fix-py3.10.patch | 28 -----------------
dev-python/pretty-yaml/pretty-yaml-20.4.0.ebuild | 36 ----------------------
3 files changed, 65 deletions(-)
diff --git a/dev-python/pretty-yaml/Manifest b/dev-python/pretty-yaml/Manifest
index 8b03cf8cce4..bf4fe7454e9 100644
--- a/dev-python/pretty-yaml/Manifest
+++ b/dev-python/pretty-yaml/Manifest
@@ -1,2 +1 @@
-DIST pyaml-20.4.0.tar.gz 21176 BLAKE2B 0aac0250d610d7b2ef042e251142de4520e7db96073d46bde0dcb37ad43d9c278cbdfc7ab247b4d41c7c30e893306aa47b25a584a2aa4c157d66203b8e140895 SHA512 432fd215e034beafc07270a6aa8b726d5a16ef8946a95c1db9a34b4f492bbe2089dffbb1ce856d3e8153ec18ac943973a23e3aa9283d53ee0b2e7ba5dcd3d317
DIST pyaml-21.8.3.tar.gz 20269 BLAKE2B 8b829ce374efe13007bb924393a8cde26914cc443999906b7bb4db610b614964170a80b8dd381eeaa9137026c60d98140b3b0d601a6af816c32d1ce9708e33be SHA512 69b1181511f7d3ac1263b710fa49b18a162e096e28414d83300bc2e9038222363cef995a0d3248387560e7066973736f9cee06b67042ee957427b4790c269653
diff --git a/dev-python/pretty-yaml/files/pretty-yaml-20.4.0-fix-py3.10.patch b/dev-python/pretty-yaml/files/pretty-yaml-20.4.0-fix-py3.10.patch
deleted file mode 100644
index c2cd44152d1..00000000000
--- a/dev-python/pretty-yaml/files/pretty-yaml-20.4.0-fix-py3.10.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From 707e14bd714e91dc53295393e2c8eea257aced5a Mon Sep 17 00:00:00 2001
-From: Louis Sautier <sautier.louis@gmail.com>
-Date: Sun, 8 Aug 2021 13:44:52 +0200
-Subject: [PATCH] Fix tests for Python 3.10: abstract base classes have moved
-
-As mentioned in the documentation:
-"Deprecated since version 3.3, will be removed in version 3.10: Moved
-Collections Abstract Base Classes to the collections.abc module. For
-backwards compatibility, they continue to be visible in this module through
-Python 3.9."
----
- pyaml/tests/dump.py | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/pyaml/tests/dump.py b/pyaml/tests/dump.py
-index 882a8e8..e1a93ba 100644
---- a/pyaml/tests/dump.py
-+++ b/pyaml/tests/dump.py
-@@ -2,7 +2,8 @@
- from __future__ import unicode_literals, print_function
-
- import itertools as it, operator as op, functools as ft
--from collections import Mapping, OrderedDict, namedtuple
-+from collections import OrderedDict, namedtuple
-+from collections.abc import Mapping
- import os, sys, io, yaml, unittest
-
- if sys.version_info.major > 2: unicode = str
diff --git a/dev-python/pretty-yaml/pretty-yaml-20.4.0.ebuild b/dev-python/pretty-yaml/pretty-yaml-20.4.0.ebuild
deleted file mode 100644
index f592bf0fbda..00000000000
--- a/dev-python/pretty-yaml/pretty-yaml-20.4.0.ebuild
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-PYTHON_COMPAT=( python3_{8..10} )
-
-inherit distutils-r1
-
-MY_P=pyaml-${PV}
-DESCRIPTION="PyYAML-based module to produce pretty and readable YAML-serialized data"
-HOMEPAGE="https://github.com/mk-fg/pretty-yaml"
-SRC_URI="mirror://pypi/${PN:0:1}/${MY_P%-*}/${MY_P}.tar.gz"
-S="${WORKDIR}/${MY_P}"
-
-LICENSE="WTFPL-2"
-SLOT="0"
-KEYWORDS="amd64 arm ~arm64 x86"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="dev-python/pyyaml[${PYTHON_USEDEP}]"
-BDEPEND="
- test? (
- ${RDEPEND}
- dev-python/unidecode[${PYTHON_USEDEP}]
- )"
-
-PATCHES=(
- # https://github.com/mk-fg/pretty-yaml/pull/38
- "${FILESDIR}/${P}-fix-py3.10.patch"
-)
-
-python_test() {
- "${EPYTHON}" pyaml/tests/dump.py -v ||
- die "tests failed under ${EPYTHON}"
-}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-12 7:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-12 7:39 [gentoo-commits] repo/gentoo:master commit in: dev-python/pretty-yaml/files/, dev-python/pretty-yaml/ Michał Górny
-- strict thread matches above, loose matches on Subject: below --
2021-08-08 12:02 Louis Sautier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox