Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyyaml/
Date: Thu, 14 Oct 2021 07:51:16
Message-Id: 1634197867.3b6e64f437f4e7b7a03609314c62bd6cb5657325.mgorny@gentoo
1 commit: 3b6e64f437f4e7b7a03609314c62bd6cb5657325
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 14 07:37:31 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 14 07:51:07 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b6e64f4
7
8 dev-python/pyyaml: Bump to 6.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pyyaml/Manifest | 1 +
13 dev-python/pyyaml/pyyaml-6.0.ebuild | 49 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 50 insertions(+)
15
16 diff --git a/dev-python/pyyaml/Manifest b/dev-python/pyyaml/Manifest
17 index 3826a56adb8..c1db8ec96f2 100644
18 --- a/dev-python/pyyaml/Manifest
19 +++ b/dev-python/pyyaml/Manifest
20 @@ -1,2 +1,3 @@
21 DIST pyyaml-5.3.1.gh.tar.gz 168044 BLAKE2B 2acc62ecc7448925eb340c2555001c8a74bd883d720b992d6deaea890b4eac435e4ae02eb129db3a6778c0be21a231fa9d96ee8ae59a4a39bc49961e5fb0d6ab SHA512 27d97e8493c7660c7c0c471e20a8aa46c85431e4559a98bcbdafc2bd89a67fd04c6f2090e54ff6b206c868b33635ef8be68070a4c25d17a25c97fd5ad3549556
22 DIST pyyaml-5.4.1.gh.tar.gz 173319 BLAKE2B b81cdec32588a419840dd536a2d8addb41eec3e20897f6c464a00a5badb4d6eed9b34b4f95146695187e7d9bcf2d03b81e884290c6dc47927be6192dfdb21eab SHA512 691e54fd9ca01fdc0dcb7de03ddd1970614d92a716c2437032999f9001f90a2ebbcc195a49bfdbe54da0f7a63178c83b02b05b18b5b1024127013f004d1f5997
23 +DIST pyyaml-6.0.gh.tar.gz 119855 BLAKE2B 286678ac81f2e6c252d285d2f98dab98894787e3aa164a29a697986f56200c7b71b0a768edf6d50e61065efcd054078673270872162a4975409928d7dd67aacc SHA512 cbcacc3560a035e2082867e93a9733f8660ea4c7f60573d07642f33a5453dcdc88d67299c3bcb97c27b843202a45d40de7444eb5e815bd4955129c9fc8ae04ad
24
25 diff --git a/dev-python/pyyaml/pyyaml-6.0.ebuild b/dev-python/pyyaml/pyyaml-6.0.ebuild
26 new file mode 100644
27 index 00000000000..0448b8d0f03
28 --- /dev/null
29 +++ b/dev-python/pyyaml/pyyaml-6.0.ebuild
30 @@ -0,0 +1,49 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
37 +inherit distutils-r1
38 +
39 +DESCRIPTION="YAML parser and emitter for Python"
40 +HOMEPAGE="
41 + https://pyyaml.org/wiki/PyYAML
42 + https://pypi.org/project/PyYAML/
43 + https://github.com/yaml/pyyaml/"
44 +SRC_URI="https://github.com/yaml/pyyaml/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
45 +
46 +LICENSE="MIT"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris"
49 +IUSE="examples"
50 +
51 +RDEPEND="dev-libs/libyaml:="
52 +DEPEND="${RDEPEND}"
53 +# bundled distutils is broken w/ pypy3 in setuptools < 58
54 +BDEPEND="
55 + dev-python/cython[${PYTHON_USEDEP}]
56 + $(python_gen_cond_dep '
57 + >=dev-python/setuptools-58.2.0[${PYTHON_USEDEP}]
58 + ' pypy3)
59 +"
60 +
61 +distutils_enable_tests setup.py
62 +
63 +src_configure() {
64 + export PYYAML_FORCE_CYTHON=1
65 + DISTUTILS_ARGS=(
66 + # --without-libyaml doesn't disable trying to use libyaml
67 + # and results in automagic dep; --with-libyaml guarantees that
68 + # the build fails if the C extension fails to build
69 + --with-libyaml
70 + )
71 +}
72 +
73 +python_install_all() {
74 + distutils-r1_python_install_all
75 + if use examples; then
76 + dodoc -r examples
77 + docompress -x /usr/share/doc/${PF}
78 + fi
79 +}