1 |
commit: 84100aa99ab45a4ae9857e9e3ea54335772ef999 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 30 07:19:39 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 30 07:19:39 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84100aa9 |
7 |
|
8 |
dev-python/black: Bump to 22.1.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/black/Manifest | 1 + |
13 |
dev-python/black/black-22.1.0.ebuild | 49 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 50 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/black/Manifest b/dev-python/black/Manifest |
17 |
index 200f21f8b85d..20ba92e03eea 100644 |
18 |
--- a/dev-python/black/Manifest |
19 |
+++ b/dev-python/black/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST black-21.12b0.tar.gz 1200305 BLAKE2B cd019b230d2ba1fab88075a5e14cb5de88a4ee283b53d869564f071a104d2810ca31c04db09310b99a1610bdace7d5b9b360b2a3a4810822322a4eacc8998ad8 SHA512 1f6e4eeafd653fa9db608585110f5c5067942031b2d67e630befa899d7fca3c35f52cbde8fc91c2697fb294fb16525254756ebce16e556fc139b621f738bfa22 |
22 |
+DIST black-22.1.0.tar.gz 1161720 BLAKE2B d74cbdd39dc1576583cee57089cb6d75a338f2d6640697adda79d38d02eeb51664049dca934d5014761d0fd4080ca2f40a3ea10c30e40bde9fe6af6c178b202c SHA512 9b97a3b32ecebebeb61ea581784a9b2215540c20533097fe87d5ef3c046dbe7c2ab8f2f21d1884cbe0ddd458434f17eb9b540764f955385873e6fdef86c3014c |
23 |
|
24 |
diff --git a/dev-python/black/black-22.1.0.ebuild b/dev-python/black/black-22.1.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..40f9911a807b |
27 |
--- /dev/null |
28 |
+++ b/dev-python/black/black-22.1.0.ebuild |
29 |
@@ -0,0 +1,49 @@ |
30 |
+# Copyright 2020-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DISTUTILS_USE_PEP517=setuptools |
36 |
+PYTHON_COMPAT=( python3_{8..10} ) |
37 |
+ |
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/click-8.0.0[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/platformdirs-2[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/pathspec-0.9.0[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/tomli-1.1.0[${PYTHON_USEDEP}] |
58 |
+ $(python_gen_cond_dep ' |
59 |
+ >=dev-python/typing-extensions-3.10.0.0[${PYTHON_USEDEP}] |
60 |
+ ' python3_{8..9}) |
61 |
+" |
62 |
+BDEPEND=" |
63 |
+ >=dev-python/setuptools_scm-6.3.1[${PYTHON_USEDEP}] |
64 |
+ test? ( |
65 |
+ >=dev-python/aiohttp-3.7.4[${PYTHON_USEDEP}] |
66 |
+ dev-python/aiohttp-cors[${PYTHON_USEDEP}] |
67 |
+ dev-python/colorama[${PYTHON_USEDEP}] |
68 |
+ dev-python/parameterized[${PYTHON_USEDEP}] |
69 |
+ ) |
70 |
+" |
71 |
+ |
72 |
+distutils_enable_tests pytest |
73 |
+ |
74 |
+export SETUPTOOLS_SCM_PRETEND_VERSION=${MY_PV} |
75 |
+ |
76 |
+pkg_postinst() { |
77 |
+ optfeature "blackd - HTTP API for black" "dev-python/aiohttp dev-python/aiohttp-cors" |
78 |
+} |