aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Egger <michael.egger@tsn.at>2020-03-12 22:53:16 +0100
committerMichael Egger <michael.egger@tsn.at>2020-03-12 22:53:16 +0100
commite193e4dd59df161ff4b8082ba95ccc58e1fa1b5a (patch)
tree202a64a7db32c2961b725a3e30a1bc87e97b5bb4
parentapp-misc/telegram-send: new package (diff)
downloadguru-e193e4dd59df161ff4b8082ba95ccc58e1fa1b5a.tar.gz
guru-e193e4dd59df161ff4b8082ba95ccc58e1fa1b5a.tar.bz2
guru-e193e4dd59df161ff4b8082ba95ccc58e1fa1b5a.zip
dev-python/black: new package
Package-Manager: Portage-2.3.93, Repoman-2.3.20 Signed-off-by: Michael Egger <michael.egger@tsn.at>
-rw-r--r--dev-python/black/Manifest1
-rw-r--r--dev-python/black/black-19.10_beta0.ebuild40
-rw-r--r--dev-python/black/metadata.xml14
3 files changed, 55 insertions, 0 deletions
diff --git a/dev-python/black/Manifest b/dev-python/black/Manifest
new file mode 100644
index 000000000..53688b539
--- /dev/null
+++ b/dev-python/black/Manifest
@@ -0,0 +1 @@
+DIST black-19.10b0.tar.gz 1019740 BLAKE2B 8a604cd79761ff7e4da6edf985d1a876e233fee9025d5066ea012a3bad9abfe0d19c5bbed87d585db8549c82ca60e1c14a9ce9d9eacd9e62ab8a354ab4757e8d SHA512 abc6d2623ab50e59bed01fdb7a6ee7434c2d3e0f779a046d9141087aa6ef46b73b3aacc6bf84ac70b9384817bd2c707a3fa262811f11a2f61a99251d2b84dd02
diff --git a/dev-python/black/black-19.10_beta0.ebuild b/dev-python/black/black-19.10_beta0.ebuild
new file mode 100644
index 000000000..e44102935
--- /dev/null
+++ b/dev-python/black/black-19.10_beta0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+inherit distutils-r1
+
+MY_PV="19.10b0"
+DESCRIPTION="The uncompromising Python code formatter"
+HOMEPAGE="https://github.com/psf/black https://pypi.org/project/black/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${PN}-${MY_PV}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="
+ >=dev-python/appdirs-1.4[${PYTHON_USEDEP}]
+ >=dev-python/attrs-18.1[${PYTHON_USEDEP}]
+ >=dev-python/click-6.5[${PYTHON_USEDEP}]
+ >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}]
+ >=dev-python/pathspec-0.6[${PYTHON_USEDEP}]
+ >=dev-python/regex-2019.11.1[${PYTHON_USEDEP}]
+ >=dev-python/toml-0.9.4[${PYTHON_USEDEP}]
+ >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}]
+ >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep 'dev-python/dataclasses[${PYTHON_USEDEP}]' python3_6)
+"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+python_test() {
+ python -m unittest tests/test_black.py || die "Tests fail with ${EPYTHON}"
+} \ No newline at end of file
diff --git a/dev-python/black/metadata.xml b/dev-python/black/metadata.xml
new file mode 100644
index 000000000..1a334b89a
--- /dev/null
+++ b/dev-python/black/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>michael.egger@tsn.at</email>
+ <name>Michael Egger</name>
+ </maintainer>
+ <longdescription>
+ The uncompromising Python code formatter.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">psf/black</remote-id>
+ </upstream>
+</pkgmetadata>