1 |
commit: bfb8eb67fa5ffed95105ea1d2f221913ac28b95d |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 31 19:06:01 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 31 19:08:56 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfb8eb67 |
7 |
|
8 |
dev-python/black: Bump to 21.5b2 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/black/Manifest | 1 + |
13 |
dev-python/black/black-21.5_beta2.ebuild | 54 ++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 55 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/black/Manifest b/dev-python/black/Manifest |
17 |
index 33591ecdb96..0614c4e7d43 100644 |
18 |
--- a/dev-python/black/Manifest |
19 |
+++ b/dev-python/black/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST black-20.8b1.tar.gz 1092546 BLAKE2B 5a0a755222617d8d551b627c91670ecc32a9330 |
21 |
DIST black-21.4b1.tar.gz 1135304 BLAKE2B 9dcb90109a9cbddb53682b6385f5b7ae5cc650251eeb8866921bdf8f04264d5ebeb2eaf4ca04fa761d461c6f389e352cafc2b2dc521fe6566a9d41da48830e44 SHA512 1a7d3ada1c91084c6e84df9367abca6d64315ba25dcb3a65ad13bfc3db76a13a84b1668fb23563e9f2ce61df72bcbd776b9d641ce670023465768c7269027e0a |
22 |
DIST black-21.4b2.tar.gz 1136152 BLAKE2B bd1ee42495953687e23338df793bfe791352ab91541dc9b563a1274378a6527dc9eccea92fcaaf3c67403448e0ce7d99f605ff7dab1d7d38926f0cc84a859e1d SHA512 6d74bb718aea64db6e83045af7e787419efd7fb647c7d2b49a412e92e796a800fa4f1496fdb28253af894956984e22836761d22677631726f705d78143a63444 |
23 |
DIST black-21.5b1.tar.gz 1136153 BLAKE2B 60a8c1ad1e6b237a79f65b790924c405d12ab34f7b6067f069f26831c76fbf99a217316fa5e2b47421ec982da56b870850455f78a2a37ac7856f72b101ce4f65 SHA512 972c69d13fb1e3371273a3b185d4413f37e07a573cb7debda795dabb25bdca3d25fc1ba8bb41c8ce27088eda695a3ae1f12af5de3fd329dbd54019d3537d90b1 |
24 |
+DIST black-21.5b2.tar.gz 1143836 BLAKE2B 90e24ef83241dcccfe9c43e62e8369db8c961867c25f85ed526d7c0c4a9df0c75fc4709a07ab2e844c5a30d04c50f101f4a80348210d6b64c32fceb13ebd143f SHA512 3974588a6bdb9417d4886eceb0c79351e4129ea51c5d1de018acc2e571dab6f1ef244ac074e6e561e4353276939531d09050fbaeb93c891e47d780dd548b8f14 |
25 |
|
26 |
diff --git a/dev-python/black/black-21.5_beta2.ebuild b/dev-python/black/black-21.5_beta2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..c80dfedc410 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/black/black-21.5_beta2.ebuild |
31 |
@@ -0,0 +1,54 @@ |
32 |
+# Copyright 2020-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{7..9} ) |
38 |
+inherit distutils-r1 optfeature |
39 |
+ |
40 |
+MY_PV="${PV//_beta/b}" |
41 |
+MY_P="${PN}-${MY_PV}" |
42 |
+ |
43 |
+DESCRIPTION="The uncompromising Python code formatter" |
44 |
+HOMEPAGE="https://black.readthedocs.io/en/stable/ https://github.com/psf/black" |
45 |
+SRC_URI="https://github.com/psf/${PN}/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" |
46 |
+S="${WORKDIR}/${MY_P}" |
47 |
+ |
48 |
+LICENSE="MIT" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+ dev-python/appdirs[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/click-7.1.2[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}] |
56 |
+ dev-python/regex[${PYTHON_USEDEP}] |
57 |
+ <dev-python/pathspec-1[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/toml-0.10.1[${PYTHON_USEDEP}] |
59 |
+ $(python_gen_cond_dep ' |
60 |
+ dev-python/typed-ast[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}] |
62 |
+ ' python3_7) |
63 |
+" |
64 |
+BDEPEND=" |
65 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
66 |
+ test? ( |
67 |
+ dev-python/aiohttp[${PYTHON_USEDEP}] |
68 |
+ dev-python/aiohttp-cors[${PYTHON_USEDEP}] |
69 |
+ dev-python/colorama[${PYTHON_USEDEP}] |
70 |
+ dev-python/parameterized[${PYTHON_USEDEP}] |
71 |
+ ) |
72 |
+" |
73 |
+ |
74 |
+distutils_enable_tests pytest |
75 |
+ |
76 |
+export SETUPTOOLS_SCM_PRETEND_VERSION=${MY_PV} |
77 |
+ |
78 |
+python_test() { |
79 |
+ cp "${S}"/src/black_primer/primer.json "${BUILD_DIR}"/lib/black_primer/primer.json || die |
80 |
+ epytest -m "not python2" |
81 |
+} |
82 |
+ |
83 |
+pkg_postinst() { |
84 |
+ optfeature "blackd - HTTP API for black" dev-python/aiohttp dev-python/aiohttp-cors |
85 |
+} |