summaryrefslogtreecommitdiff
path: root/dev-python/ruamel-yaml
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-03-12 21:55:15 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-03-12 21:55:15 +0000
commit7218e1b46bceac05841e90472501742d905fb3fc (patch)
tree56fae051db521b8fce8014cbc8b11484885b14b3 /dev-python/ruamel-yaml
parent6d691ad5b6239929063441bbd14c489e92e7396e (diff)
gentoo resync : 12.03.2021
Diffstat (limited to 'dev-python/ruamel-yaml')
-rw-r--r--dev-python/ruamel-yaml/Manifest5
-rw-r--r--dev-python/ruamel-yaml/files/ruamel-yaml-0.16.13-pypy3_collection_deprecation.patch19
-rw-r--r--dev-python/ruamel-yaml/metadata.xml1
-rw-r--r--dev-python/ruamel-yaml/ruamel-yaml-0.16.13-r1.ebuild46
4 files changed, 70 insertions, 1 deletions
diff --git a/dev-python/ruamel-yaml/Manifest b/dev-python/ruamel-yaml/Manifest
index 0fc640b11048..e06c14f326f5 100644
--- a/dev-python/ruamel-yaml/Manifest
+++ b/dev-python/ruamel-yaml/Manifest
@@ -1,3 +1,6 @@
+AUX ruamel-yaml-0.16.13-pypy3_collection_deprecation.patch 647 BLAKE2B af2f03b775539038b557879a7d01d42ca050ad2abcdfd60db07fa48129fdc90219577fe9f0ba1a51b897057ee36e6abe5fabd61b343956bf6edb3584144d6912 SHA512 55ae9245470076938d1bd5322b3dc6042267914eef30b3a64a278f5bd06c0fd60500463c6c0a33f80d09e326f0dc0f87986a56f1d05e2e7b6fd9c20e83949a9d
+DIST ruamel-yaml-0.16.13.tar.xz 178756 BLAKE2B 19ee4713786a33853f42256e5cd3187e9e19b931ebd83a133365de3f080721c5a6f5fb41ff3079473461df47a0ab149981c5e94d08321da8b3c9eb311c226945 SHA512 1366fc0b3b5ea2699ca324636403576134ccc7c725b13c21a7752d1b16c644c93c7f7d82ddc337087d2c02947f95263d7a3fdd162f552ac3a78fa36f1f17b3f1
DIST ruamel.yaml-0.16.12.tar.gz 147355 BLAKE2B 6e91116029dba57b81580f4ce34a066fc49ec2c6167c2bd6ec2ae940b16bc12ba53cbd4c62f9ae3975664917ce990b050e9f15b434f5ff66f9dece5426049c9d SHA512 21be4d956d01164b84233c3d3945a4e56351a8fc59c35a8e71b1276da84aa43b125e3860f9884e95a1f895bc53e0b85b6d3f0f4b03512d629a892d8664e3ecd6
EBUILD ruamel-yaml-0.16.12-r1.ebuild 738 BLAKE2B 34ad19df9b4725013b1d300374123a7cef0bffa383f544b80be2afe4c38f53855c8aba777c4addfca0835b7de4ebb303a7ac3b54649c04e58bc3b8db3f682acb SHA512 65535c7f50602cc4d32ac24dee681020782468f29a3882c2312f639d39c740c887fa2075c448e1bcaab1d87c57e3d08926a1e7e09fbd09a4da0163283f866411
-MISC metadata.xml 715 BLAKE2B 8adfe458db838b8217c79ae03ba0133fd7aabd143c99f2177debff61e8960bb9b89df4e7bab27eb392127bc95a34ec7ab2a7e2ab96ec87adc28ea7453bcce6b8 SHA512 bb76d173705214d1df3e44032301d078ea0f1abb41ddbbe743d4ae3928ade3fc3622b26bc54d8c66f47ef2e2f445180aad381bccdc18a6e5fc512c9e83826a9f
+EBUILD ruamel-yaml-0.16.13-r1.ebuild 1239 BLAKE2B cb5c19702d96a6d952ef9a53debb09730a3fa865e0acdfa4b09404661694f6b4bef95d42a92a42cfd17ffd7eb5a33b88520a7dc1246029fc49708720de3c2f22 SHA512 62414542ba33ebcd37d3439e53862df7752feed6bc552c1bdcd169ed34163abe6957a803d2aaaf94b46fc6455e89b42e1cc6e0eac6e2c6b13f01047e4b933f1b
+MISC metadata.xml 739 BLAKE2B ff8160bdfda16166cd750467eda32d2040765fb4acde3a640f0b62fddf1eff8890733ff9d2bb30d52977838edfc49d5328dbc756b5a1ce5670a8bbf6a46205bd SHA512 c8bb594dd0fbc94496c5b1b563ae4d2266d97704f116338d1dfd37d4a2bd829bd96e469e499228ffe44330c26b68c6a18d02aeccb20fb39bc8de2d8a3701a083
diff --git a/dev-python/ruamel-yaml/files/ruamel-yaml-0.16.13-pypy3_collection_deprecation.patch b/dev-python/ruamel-yaml/files/ruamel-yaml-0.16.13-pypy3_collection_deprecation.patch
new file mode 100644
index 000000000000..15d00625b68e
--- /dev/null
+++ b/dev-python/ruamel-yaml/files/ruamel-yaml-0.16.13-pypy3_collection_deprecation.patch
@@ -0,0 +1,19 @@
+This does not produce a deprecation warning under PyPy, even pypy3.7
+(last tested on 2021-03-12 using version 7.3.3-beta0).
+
+--- a/_test/test_deprecation.py
++++ b/_test/test_deprecation.py
+@@ -2,11 +2,12 @@
+
+ from __future__ import print_function
+
++import platform
+ import sys
+ import pytest # NOQA
+
+
+-@pytest.mark.skipif(sys.version_info < (3, 7) or sys.version_info >= (3, 9),
++@pytest.mark.skipif(platform.python_implementation() == 'PyPy' or sys.version_info < (3, 7) or sys.version_info >= (3, 9),
+ reason='collections not available?')
+ def test_collections_deprecation():
+ with pytest.warns(DeprecationWarning):
diff --git a/dev-python/ruamel-yaml/metadata.xml b/dev-python/ruamel-yaml/metadata.xml
index d1c93d5b8e28..4a6a33a39d5f 100644
--- a/dev-python/ruamel-yaml/metadata.xml
+++ b/dev-python/ruamel-yaml/metadata.xml
@@ -17,6 +17,7 @@
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
+ <stabilize-allarches/>
<upstream>
<remote-id type="pypi">ruamel.yaml</remote-id>
<remote-id type="sourceforge">ruamel-yaml</remote-id>
diff --git a/dev-python/ruamel-yaml/ruamel-yaml-0.16.13-r1.ebuild b/dev-python/ruamel-yaml/ruamel-yaml-0.16.13-r1.ebuild
new file mode 100644
index 000000000000..41502f6c0260
--- /dev/null
+++ b/dev-python/ruamel-yaml/ruamel-yaml-0.16.13-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( pypy3 python3_{7..9} )
+
+inherit distutils-r1
+
+MY_PN="${PN//-/.}"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="YAML parser/emitter that supports roundtrip comment preservation"
+HOMEPAGE="https://pypi.org/project/ruamel.yaml/ https://sourceforge.net/p/ruamel-yaml"
+# PyPI tarballs do not include tests
+SRC_URI="mirror://sourceforge/ruamel-dl-tagged-releases/${MY_P}.tar.xz -> ${P}.tar.xz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="test"
+
+RDEPEND="dev-python/namespace-ruamel[${PYTHON_USEDEP}]
+ dev-python/ruamel-yaml-clib[${PYTHON_USEDEP}]"
+BDEPEND="test? (
+ dev-python/ruamel-std-pathlib[${PYTHON_USEDEP}]
+)"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.16.13-pypy3_collection_deprecation.patch
+)
+
+S="${WORKDIR}"/${MY_P}
+
+distutils_enable_tests pytest
+
+# Old PyYAML tests from lib/ require special set-up and are invoked indirectly
+# via test_z_olddata, tell pytest itself to leave the subdir alone.
+python_test() {
+ epytest --ignore _test/lib/
+}
+
+python_install() {
+ distutils-r1_python_install --single-version-externally-managed
+ find "${ED}" -name '*.pth' -delete || die
+}