commit:     acbdf31364695f6bf5f742e08afb6986cbca980a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 28 22:41:15 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Dec 28 22:41:15 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=acbdf313

dev-python/yapf: Bump to 0.32.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/yapf/Manifest           |  1 +
 dev-python/yapf/yapf-0.32.0.ebuild | 25 +++++++++++++++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/dev-python/yapf/Manifest b/dev-python/yapf/Manifest
index ca4e15ddca9b..ef9dc5172a8c 100644
--- a/dev-python/yapf/Manifest
+++ b/dev-python/yapf/Manifest
@@ -1 +1,2 @@
 DIST yapf-0.31.0.tar.gz 176856 BLAKE2B 
080867363df59615d1df77ef51645cd68d931251807da83c5b9d8737a89b01e8dee7457a2b524a76ad2eb21b859ad78168a30f706ef70c3b07bcb94a98990752
 SHA512 
5f376e985e182aab289c41e4071fd98c0784e5292974e2efcc4beaaca68cb83068b297e228a46f51f0d9370634dbd32948bdbd03e6b65c76b43efba0fe0d3454
+DIST yapf-0.32.0.tar.gz 178621 BLAKE2B 
b2132e3fffb96113700e322bba3f49ded0fe417de901522793564d5830951e9f2017c576fb89c5e423f4f547c95659040c2a4fc923887d9fb941e219b21f0cf6
 SHA512 
c1a05a04f7558a5b51899c29010bedc105c4a4bad4b5358a903a22a39f451e03369d2b4e670ecb44a857a8fef2bf438d9da0afcbdd3a336cf037bbf480d19878

diff --git a/dev-python/yapf/yapf-0.32.0.ebuild 
b/dev-python/yapf/yapf-0.32.0.ebuild
new file mode 100644
index 000000000000..93675f93d2f4
--- /dev/null
+++ b/dev-python/yapf/yapf-0.32.0.ebuild
@@ -0,0 +1,25 @@
+# Copyright 2018-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..10} )
+inherit distutils-r1
+
+DESCRIPTION="A formatter for Python files"
+HOMEPAGE="https://github.com/google/yapf";
+SRC_URI="https://github.com/google/yapf/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+       test? ( dev-python/toml[${PYTHON_USEDEP}] )"
+
+python_test() {
+       "${EPYTHON}" -m unittest discover -v -p '*_test.py' ||
+               die "Tests failed with ${EPYTHON}"
+}

Reply via email to