summaryrefslogtreecommitdiff
path: root/dev-python/yapf
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-04-19 05:57:02 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-04-19 05:57:02 +0100
commit59f8187afe529efeffdc2f967c451b159da44d5c (patch)
tree48ebf943f1f33c47ca2cc1342af6c52c43686f57 /dev-python/yapf
parent93d0bbd7df69c2081c2b2347ea6c88b8e967d537 (diff)
gentoo auto-resync : 19:04:2023 - 05:57:01
Diffstat (limited to 'dev-python/yapf')
-rw-r--r--dev-python/yapf/Manifest2
-rw-r--r--dev-python/yapf/yapf-0.33.0.ebuild36
2 files changed, 38 insertions, 0 deletions
diff --git a/dev-python/yapf/Manifest b/dev-python/yapf/Manifest
index a4fc47cb378f..89a900e87a02 100644
--- a/dev-python/yapf/Manifest
+++ b/dev-python/yapf/Manifest
@@ -1,4 +1,6 @@
AUX yapf-0.32.0-tomli.patch 6596 BLAKE2B 9693c14cc55bf54c763dab158e488ce4a3013426d9cac62822715071fe424252e096d2d1b78bcb62798b586edcc195fe9241227c8b85d1e3570aff5bdb7fdd12 SHA512 b859f1b487dd0331a9e59c411072ceba719cd7b95bea450b6d8ed8f969d0af552adde77d9d8251bd31416d9715b238e628df5a7516da8eca028dd1a99ca72731
DIST yapf-0.32.0.gh.tar.gz 178621 BLAKE2B b2132e3fffb96113700e322bba3f49ded0fe417de901522793564d5830951e9f2017c576fb89c5e423f4f547c95659040c2a4fc923887d9fb941e219b21f0cf6 SHA512 c1a05a04f7558a5b51899c29010bedc105c4a4bad4b5358a903a22a39f451e03369d2b4e670ecb44a857a8fef2bf438d9da0afcbdd3a336cf037bbf480d19878
+DIST yapf-0.33.0.gh.tar.gz 186345 BLAKE2B 0ce1b0ca9e3838eecacf36c8f666ad58c0f35fbee1384ae5e02f3294892dd23003c39af954ed9deb3aac70397ed9924b92233e229362da1907a9cd2c692fb7e6 SHA512 82846900a9aec22ad2519ebb29fcd3d6e5a787e71e93f80c0169cf796201ae5e970ad7307f2b528e6454264cf61ca96ac4f99442ce6a52b7cebf78ceb2c9a395
EBUILD yapf-0.32.0-r1.ebuild 733 BLAKE2B e9239d4aae63607352cd1290d88b9e2193df857dc01fd221bd463bbe33b17e807cf7b646736621cf5de4cac5660097bcda3d3a0af6482f7a19d06707b74c8cde SHA512 bc2f1bc4c6635cf3e28c6546140cbadd931eec5d19727267362b8a1b3d53326e36744053931a1c23193b747ab8a0fee50b714d2297d1e4beee4b325f4d4f5987
+EBUILD yapf-0.33.0.ebuild 690 BLAKE2B d3992a3addd3fdbbeb1efbd08e2c0ccdd0f2a734a4979f10d89ea38f38cba48f69ad96d34dd674df0daf15bfb13d2feac82ff6faf2d8e629129c083b5f9f222e SHA512 931e3a37c86cca746ee77566d96533633fa7e93fba53639b39700e6375d46b31554b4e07bbbe713c8b6153864f032eae57168748cf8dc9e5f6e2bab7e8f52588
MISC metadata.xml 654 BLAKE2B 9b8696004f7b8613e02a2cdc79c74a79806b1e4278c7a6e8b8b82f953629ad1233f1a5d1b1212306c688edba57ed4933fc23ba251ec12baac5c93c67b51ec47c SHA512 ccea54dccfb6f336699e0078cb3cd238b3aff5e7c05c50d6fdaf60e9b717a064c7e0cf27e17b001d252b0b52f7fa48c48eec5789aecd81c8f2e53a6ebb4054b6
diff --git a/dev-python/yapf/yapf-0.33.0.ebuild b/dev-python/yapf/yapf-0.33.0.ebuild
new file mode 100644
index 000000000000..0f9d3bb0965d
--- /dev/null
+++ b/dev-python/yapf/yapf-0.33.0.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_{9..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 )"
+
+BDEPEND="
+ test? (
+ dev-python/tomli[${PYTHON_USEDEP}]
+ )
+"
+
+python_test() {
+ "${EPYTHON}" -m unittest discover -v -p '*_test.py' ||
+ die "Tests failed with ${EPYTHON}"
+}