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/yapf/
Date: Tue, 28 Dec 2021 22:45:56
Message-Id: 1640731275.acbdf31364695f6bf5f742e08afb6986cbca980a.mgorny@gentoo
1 commit: acbdf31364695f6bf5f742e08afb6986cbca980a
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 28 22:41:15 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 28 22:41:15 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=acbdf313
7
8 dev-python/yapf: Bump to 0.32.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/yapf/Manifest | 1 +
13 dev-python/yapf/yapf-0.32.0.ebuild | 25 +++++++++++++++++++++++++
14 2 files changed, 26 insertions(+)
15
16 diff --git a/dev-python/yapf/Manifest b/dev-python/yapf/Manifest
17 index ca4e15ddca9b..ef9dc5172a8c 100644
18 --- a/dev-python/yapf/Manifest
19 +++ b/dev-python/yapf/Manifest
20 @@ -1 +1,2 @@
21 DIST yapf-0.31.0.tar.gz 176856 BLAKE2B 080867363df59615d1df77ef51645cd68d931251807da83c5b9d8737a89b01e8dee7457a2b524a76ad2eb21b859ad78168a30f706ef70c3b07bcb94a98990752 SHA512 5f376e985e182aab289c41e4071fd98c0784e5292974e2efcc4beaaca68cb83068b297e228a46f51f0d9370634dbd32948bdbd03e6b65c76b43efba0fe0d3454
22 +DIST yapf-0.32.0.tar.gz 178621 BLAKE2B b2132e3fffb96113700e322bba3f49ded0fe417de901522793564d5830951e9f2017c576fb89c5e423f4f547c95659040c2a4fc923887d9fb941e219b21f0cf6 SHA512 c1a05a04f7558a5b51899c29010bedc105c4a4bad4b5358a903a22a39f451e03369d2b4e670ecb44a857a8fef2bf438d9da0afcbdd3a336cf037bbf480d19878
23
24 diff --git a/dev-python/yapf/yapf-0.32.0.ebuild b/dev-python/yapf/yapf-0.32.0.ebuild
25 new file mode 100644
26 index 000000000000..93675f93d2f4
27 --- /dev/null
28 +++ b/dev-python/yapf/yapf-0.32.0.ebuild
29 @@ -0,0 +1,25 @@
30 +# Copyright 2018-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_{8..10} )
36 +inherit distutils-r1
37 +
38 +DESCRIPTION="A formatter for Python files"
39 +HOMEPAGE="https://github.com/google/yapf"
40 +SRC_URI="https://github.com/google/yapf/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="Apache-2.0"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~arm64 ~x86"
45 +IUSE="test"
46 +RESTRICT="!test? ( test )"
47 +
48 +BDEPEND="
49 + test? ( dev-python/toml[${PYTHON_USEDEP}] )"
50 +
51 +python_test() {
52 + "${EPYTHON}" -m unittest discover -v -p '*_test.py' ||
53 + die "Tests failed with ${EPYTHON}"
54 +}