1 |
commit: c95f55dec7a3ecdc24cdc230b0bc7ff2f7f3ac80 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Apr 24 22:16:31 2020 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Sat Apr 25 00:37:16 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c95f55de |
7 |
|
8 |
dev-python/black: bump to python3.8 |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
dev-python/black/black-19.10_beta0-r2.ebuild | 56 ++++++++++++++++++++++++++++ |
13 |
1 file changed, 56 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/black/black-19.10_beta0-r2.ebuild b/dev-python/black/black-19.10_beta0-r2.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..0835948 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/black/black-19.10_beta0-r2.ebuild |
20 |
@@ -0,0 +1,56 @@ |
21 |
+# Copyright 1999-2020 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI="7" |
25 |
+ |
26 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
27 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+MY_PV="19.10b0" |
32 |
+ |
33 |
+DESCRIPTION="The uncompromising Python code formatter" |
34 |
+HOMEPAGE="https://github.com/psf/black https://pypi.org/project/black/" |
35 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${PN}-${MY_PV}.tar.gz" |
36 |
+ |
37 |
+LICENSE="MIT" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64 ~x86" |
40 |
+ |
41 |
+DEPEND=" |
42 |
+ test? ( |
43 |
+ >=dev-python/aiohttp-3.3.2[${PYTHON_USEDEP}] |
44 |
+ dev-python/aiohttp-cors[${PYTHON_USEDEP}] |
45 |
+ ) |
46 |
+" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ >=dev-python/appdirs-1.4[${PYTHON_USEDEP}] |
50 |
+ >=dev-python/attrs-18.1[${PYTHON_USEDEP}] |
51 |
+ >=dev-python/click-6.5[${PYTHON_USEDEP}] |
52 |
+ >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/pathspec-0.6[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/regex-2019.11.1[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/toml-0.9.4[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/typed-ast-1.4.0[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}] |
58 |
+ $(python_gen_cond_dep 'dev-python/dataclasses[${PYTHON_USEDEP}]' python3_6) |
59 |
+" |
60 |
+ |
61 |
+S="${WORKDIR}/${PN}-${MY_PV}" |
62 |
+ |
63 |
+python_prepare_all() { |
64 |
+ # cannot get_version() for some reason so we set it here manually |
65 |
+ sed -i -e "s/get_version(root=CURRENT_DIR.parent)/${MY_PV::-2}/g" \ |
66 |
+ -e '/for sp in "abcfr":/d' \ |
67 |
+ -e '/version.split(sp)/d' \ |
68 |
+ docs/conf.py || die |
69 |
+ |
70 |
+ distutils-r1_python_prepare_all |
71 |
+} |
72 |
+ |
73 |
+distutils_enable_tests pytest |
74 |
+# docs fail to build:: module 'black' has no attribute 'is_python36' |
75 |
+# 'release': return_codes_re.sub('', self.config.release), |
76 |
+#distutils_enable_sphinx docs dev-python/recommonmark |