summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-04-19 01:02:31 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-04-19 01:02:31 +0000
commit1d7daba5446d57247383d2bf96fd590c55dfe013 (patch)
tree1a60c68cca20b2bd700eff4bcacb0596c5c7fa52 /dev-python
parentd6ccf96983cbf6351bbe6060028191f85d7e5b7f (diff)
downloadbaldeagleos-repo-1d7daba5446d57247383d2bf96fd590c55dfe013.tar.gz
baldeagleos-repo-1d7daba5446d57247383d2bf96fd590c55dfe013.tar.xz
baldeagleos-repo-1d7daba5446d57247383d2bf96fd590c55dfe013.zip
Adding metadata
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/yapf/Manifest1
-rw-r--r--dev-python/yapf/yapf-0.33.0.ebuild36
2 files changed, 37 insertions, 0 deletions
diff --git a/dev-python/yapf/Manifest b/dev-python/yapf/Manifest
index 36aac5ba5a5a..9ac9e3466b70 100644
--- a/dev-python/yapf/Manifest
+++ b/dev-python/yapf/Manifest
@@ -1 +1,2 @@
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
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..aa950634d2c5
--- /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_{7,8,9,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 )"
+
+BDEPEND="
+ test? (
+ dev-python/tomli[${PYTHON_USEDEP}]
+ )
+"
+
+python_test() {
+ "${EPYTHON}" -m unittest discover -v -p '*_test.py' ||
+ die "Tests failed with ${EPYTHON}"
+}