dev-python/black: Package has been added to gentoo overlay

Signed-off-by: Michael Egger <michael.egger@tsn.at>
This commit is contained in:
Michael Egger
2020-06-04 14:56:19 +02:00
parent 4a318d2e36
commit 7b7dd45540
4 changed files with 0 additions and 135 deletions

View File

@@ -1 +0,0 @@
DIST black-19.10b0.tar.gz 1019740 BLAKE2B 8a604cd79761ff7e4da6edf985d1a876e233fee9025d5066ea012a3bad9abfe0d19c5bbed87d585db8549c82ca60e1c14a9ce9d9eacd9e62ab8a354ab4757e8d SHA512 abc6d2623ab50e59bed01fdb7a6ee7434c2d3e0f779a046d9141087aa6ef46b73b3aacc6bf84ac70b9384817bd2c707a3fa262811f11a2f61a99251d2b84dd02

View File

@@ -1,57 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7} )
DISTUTILS_USE_SETUPTOOLS=rdepend
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"
DEPEND="
test? (
>=dev-python/aiohttp-3.3.2[${PYTHON_USEDEP}]
dev-python/aiohttp-cors[${PYTHON_USEDEP}]
)
"
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)
"
S="${WORKDIR}/${PN}-${MY_PV}"
python_prepare_all() {
# cannot get_version() for some reason so we set it here manually
sed -i -e "s/get_version(root=CURRENT_DIR.parent)/${MY_PV::-2}/g" \
-e '/for sp in "abcfr":/d' \
-e '/version.split(sp)/d' \
docs/conf.py || die
distutils-r1_python_prepare_all
}
distutils_enable_tests pytest
# docs fail to build:: module 'black' has no attribute 'is_python36'
# 'release': return_codes_re.sub('', self.config.release),
#distutils_enable_sphinx docs dev-python/recommonmark

View File

@@ -1,59 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{6,7,8} )
DISTUTILS_USE_SETUPTOOLS=rdepend
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"
DEPEND="
test? (
>=dev-python/aiohttp-3.3.2[${PYTHON_USEDEP}]
dev-python/aiohttp-cors[${PYTHON_USEDEP}]
)
"
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)
"
S="${WORKDIR}/${PN}-${MY_PV}"
python_prepare_all() {
# cannot get_version() for some reason so we set it here manually
sed -i -e "s/get_version(root=CURRENT_DIR.parent)/${MY_PV::-2}/g" \
-e '/for sp in "abcfr":/d' \
-e '/version.split(sp)/d' \
docs/conf.py || die
distutils-r1_python_prepare_all
}
distutils_enable_tests pytest
# docs fail to build:: module 'black' has no attribute 'is_python36'
# 'release': return_codes_re.sub('', self.config.release),
#distutils_enable_sphinx docs dev-python/recommonmark

View File

@@ -1,18 +0,0 @@
<?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 lang="en">
Black is the uncompromising Python code formatter. By using it, you agree to cede control over minutiae of hand-formatting. In return, Black gives you speed, determinism, and freedom from pycodestyle nagging about formatting. You will save time and mental energy for more important matters.
Blackened code looks the same regardless of the project you're reading. Formatting becomes transparent after a while and you can focus on the content instead.
Black makes code review faster by producing the smallest diffs possible.
</longdescription>
<upstream>
<remote-id type="github">psf/black</remote-id>
</upstream>
</pkgmetadata>