summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2023-06-20 14:55:00 +0200
committerSebastian Pipping <sping@gentoo.org>2023-06-20 14:55:00 +0200
commitac455c0091f470dd5c0fb4aee483e2b6bed7985a (patch)
tree09773ecf66cbdba1f358d090e3bf628ab831c026 /dev-python/yapf
parentx11-misc/i3status: drop 2.13-r1 (diff)
downloadgentoo-ac455c0091f470dd5c0fb4aee483e2b6bed7985a.tar.gz
gentoo-ac455c0091f470dd5c0fb4aee483e2b6bed7985a.tar.bz2
gentoo-ac455c0091f470dd5c0fb4aee483e2b6bed7985a.zip
dev-python/yapf: 0.40.1
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
Diffstat (limited to 'dev-python/yapf')
-rw-r--r--dev-python/yapf/Manifest1
-rw-r--r--dev-python/yapf/yapf-0.40.1.ebuild36
2 files changed, 37 insertions, 0 deletions
diff --git a/dev-python/yapf/Manifest b/dev-python/yapf/Manifest
index 49cab72a8330..b0c90fa0be51 100644
--- a/dev-python/yapf/Manifest
+++ b/dev-python/yapf/Manifest
@@ -1,2 +1,3 @@
DIST yapf-0.33.0.gh.tar.gz 186345 BLAKE2B 0ce1b0ca9e3838eecacf36c8f666ad58c0f35fbee1384ae5e02f3294892dd23003c39af954ed9deb3aac70397ed9924b92233e229362da1907a9cd2c692fb7e6 SHA512 82846900a9aec22ad2519ebb29fcd3d6e5a787e71e93f80c0169cf796201ae5e970ad7307f2b528e6454264cf61ca96ac4f99442ce6a52b7cebf78ceb2c9a395
DIST yapf-0.40.0.gh.tar.gz 226057 BLAKE2B 34d08d952f462e17f6f4388cb8203f49e7a6236f28a673f8d4b532c87bfd9ebe3a9c42fd52e895c0e6f507611de14be87ba51422db6f9a0f42234bc4727fa224 SHA512 5c635618820fd0e4bc8065e240280dd41a533101f6457596b398807a61f8406681cf0555188ccab16222e7b1c41a83871473a4069a0d1594319da9d0a850f999
+DIST yapf-0.40.1.gh.tar.gz 226063 BLAKE2B 57dd62e32d06312a5a8964fb7822cd87321ae1548be67a1824f5d6efd90e86c629452faf71722a1dfc8f70052f63020ab88d55501c140f33660368c56cce2ea4 SHA512 7d44ea8976c93db850f0a139535962e166b4e488e47761720747686061ad7d7d3bbb2771f2e1519b7db8af630f64b7bcf71143faa56d448c9d098c2d151bffeb
diff --git a/dev-python/yapf/yapf-0.40.1.ebuild b/dev-python/yapf/yapf-0.40.1.ebuild
new file mode 100644
index 000000000000..207f1b6e2b11
--- /dev/null
+++ b/dev-python/yapf/yapf-0.40.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 2018-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="A formatter for Python files"
+HOMEPAGE="
+ https://github.com/google/yapf/
+ https://pypi.org/project/yapf/
+"
+SRC_URI="
+ https://github.com/google/yapf/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=dev-python/importlib-metadata-6.6.0[${PYTHON_USEDEP}]
+ >=dev-python/platformdirs-3.5.1[${PYTHON_USEDEP}]
+ >=dev-python/tomli-2.0.1[${PYTHON_USEDEP}]
+"
+
+python_test() {
+ "${EPYTHON}" -m unittest discover -v -p '*_test.py' ||
+ die "Tests failed with ${EPYTHON}"
+}