diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-04-28 09:12:36 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-04-28 10:16:19 +0200 |
commit | b8f7dc28528e306d584894348bec97dfa84755d0 (patch) | |
tree | 5a1e3c7b722df92eefafb06c938304f18c3b2c6a | |
parent | dev-python/cfn-python-lint: Bump to 0.49.0 (diff) | |
download | gentoo-b8f7dc28528e306d584894348bec97dfa84755d0.tar.gz gentoo-b8f7dc28528e306d584894348bec97dfa84755d0.tar.bz2 gentoo-b8f7dc28528e306d584894348bec97dfa84755d0.zip |
dev-python/black: Bump to 21.4b1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r-- | dev-python/black/Manifest | 1 | ||||
-rw-r--r-- | dev-python/black/black-21.4_beta1.ebuild | 54 |
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-python/black/Manifest b/dev-python/black/Manifest index 54914dd3eae4..470ef4c99679 100644 --- a/dev-python/black/Manifest +++ b/dev-python/black/Manifest @@ -1,2 +1,3 @@ DIST black-20.8b1.tar.gz 1092546 BLAKE2B 5a0a755222617d8d551b627c91670ecc32a9330cc1197900a9d21b071d0d99ddd32e09786becfc577407ab402f6da3d8683a59a9deaea1f6b4f07b9e1e4ecbed SHA512 53d6f6a6f47027e5bdfd3909471c993480034c8aa8ae395792565b8d79fb4e3a44299ea529652c0ccabf4309d645db9179bf54efc06fee20517f479e91cec838 DIST black-21.4b0.tar.gz 1140469 BLAKE2B f5fecde9083984e823a57acb4216ea46130255d73646209f12990c27f2d15eb7b2a31995a99f54d0fd5372aae9267bf015331d8599d38d91ca429e6c3a3c3b54 SHA512 a6e707361544abcc35bc2cbd4d92ad26b12a961890adf60b05330e9eb14368db10e92b17fa3535bf0f7e20e7976cfa3821dbf9305a37bc2426fb493f7ffdf843 +DIST black-21.4b1.tar.gz 1135304 BLAKE2B 9dcb90109a9cbddb53682b6385f5b7ae5cc650251eeb8866921bdf8f04264d5ebeb2eaf4ca04fa761d461c6f389e352cafc2b2dc521fe6566a9d41da48830e44 SHA512 1a7d3ada1c91084c6e84df9367abca6d64315ba25dcb3a65ad13bfc3db76a13a84b1668fb23563e9f2ce61df72bcbd776b9d641ce670023465768c7269027e0a diff --git a/dev-python/black/black-21.4_beta1.ebuild b/dev-python/black/black-21.4_beta1.ebuild new file mode 100644 index 000000000000..9257824ce16c --- /dev/null +++ b/dev-python/black/black-21.4_beta1.ebuild @@ -0,0 +1,54 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) +DISTUTILS_USE_SETUPTOOLS=rdepend +inherit distutils-r1 optfeature + +MY_PV="${PV//_beta/b}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="The uncompromising Python code formatter" +HOMEPAGE="https://black.readthedocs.io/en/stable/ https://github.com/psf/black" +SRC_URI="https://github.com/psf/${PN}/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" + +RDEPEND=" + dev-python/appdirs[${PYTHON_USEDEP}] + >=dev-python/click-7.1.2[${PYTHON_USEDEP}] + >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}] + dev-python/regex[${PYTHON_USEDEP}] + <dev-python/pathspec-1[${PYTHON_USEDEP}] + >=dev-python/toml-0.10.1[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/typed-ast[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}] + ' python3_7) +" +BDEPEND=" + dev-python/setuptools_scm[${PYTHON_USEDEP}] + test? ( + dev-python/aiohttp[${PYTHON_USEDEP}] + dev-python/aiohttp-cors[${PYTHON_USEDEP}] + dev-python/colorama[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests unittest + +export SETUPTOOLS_SCM_PRETEND_VERSION=${MY_PV} + +python_test() { + cp "${S}"/src/black_primer/primer.json "${BUILD_DIR}"/lib/black_primer/primer.json || die + eunittest +} + +pkg_postinst() { + optfeature "blackd - HTTP API for black" dev-python/aiohttp dev-python/aiohttp-cors +} |