1 |
commit: 47c2a0d79efbc064033cfa9aad375a8d60942344 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 1 04:14:58 2023 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 1 04:57:00 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47c2a0d7 |
7 |
|
8 |
dev-python/black: Bump to 23.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-23.1.0.ebuild | 56 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 57 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/black/Manifest b/dev-python/black/Manifest |
17 |
index 7d6d97dc16fc..f1bc792f8814 100644 |
18 |
--- a/dev-python/black/Manifest |
19 |
+++ b/dev-python/black/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST black-22.12.0.gh.tar.gz 1182329 BLAKE2B fa7461b296e278a9d0945816fe88b933794e1302bc6e5fc2d2d48c94dcf50826471962351d1acc12da804ff7fa434efd8a8dca874dac91c8e36092ac50752669 SHA512 a89acd3c0f0d446e21695e9d7059a6417f8101bca32b22018d974cb08d6f3c9e4dbc3aab0a12091618ca860fbf9b0a53d4f2729311f65ca72f50a71629b60ac8 |
22 |
+DIST black-23.1.0.gh.tar.gz 1196151 BLAKE2B 3c81bf5e52bb08928b568a20c9b3d769c5ebdd120bdfd4565c89fbffd978cd4a93dd70eacd041a4560723987278d16acfcae49245007bdc59178264757fba74d SHA512 f86d1bcf59c3fa0bb1bc3e71511c5df435ea437fd1cb30c466b8babc9522fb96bba6261da1431db75e6d578a85d061d31bd6ddbe50327fb4a3987eb03b03c330 |
23 |
|
24 |
diff --git a/dev-python/black/black-23.1.0.ebuild b/dev-python/black/black-23.1.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..d5377f0c45a4 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/black/black-23.1.0.ebuild |
29 |
@@ -0,0 +1,56 @@ |
30 |
+# Copyright 2020-2023 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DISTUTILS_USE_PEP517=hatchling |
36 |
+PYTHON_COMPAT=( python3_{9..11} ) |
37 |
+ |
38 |
+inherit distutils-r1 optfeature |
39 |
+ |
40 |
+DESCRIPTION="The uncompromising Python code formatter" |
41 |
+HOMEPAGE=" |
42 |
+ https://black.readthedocs.io/en/stable/ |
43 |
+ https://github.com/psf/black/ |
44 |
+ https://pypi.org/project/black/ |
45 |
+" |
46 |
+SRC_URI=" |
47 |
+ https://github.com/psf/black/archive/${PV}.tar.gz -> ${P}.gh.tar.gz |
48 |
+" |
49 |
+ |
50 |
+LICENSE="MIT" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ >=dev-python/click-8.0.0[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/packaging-22.0[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/pathspec-0.9.0[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/platformdirs-2[${PYTHON_USEDEP}] |
60 |
+ $(python_gen_cond_dep ' |
61 |
+ >=dev-python/tomli-1.1.0[${PYTHON_USEDEP}] |
62 |
+ ' 3.{8..10}) |
63 |
+ $(python_gen_cond_dep ' |
64 |
+ >=dev-python/typing-extensions-3.10.0.0[${PYTHON_USEDEP}] |
65 |
+ ' 3.8 3.9) |
66 |
+" |
67 |
+BDEPEND=" |
68 |
+ dev-python/hatch-fancy-pypi-readme[${PYTHON_USEDEP}] |
69 |
+ dev-python/hatch-vcs[${PYTHON_USEDEP}] |
70 |
+ test? ( |
71 |
+ >=dev-python/aiohttp-3.7.4[${PYTHON_USEDEP}] |
72 |
+ dev-python/aiohttp-cors[${PYTHON_USEDEP}] |
73 |
+ dev-python/colorama[${PYTHON_USEDEP}] |
74 |
+ dev-python/parameterized[${PYTHON_USEDEP}] |
75 |
+ ) |
76 |
+" |
77 |
+ |
78 |
+distutils_enable_tests pytest |
79 |
+ |
80 |
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} |
81 |
+ |
82 |
+pkg_postinst() { |
83 |
+ optfeature "blackd - HTTP API for black" \ |
84 |
+ "dev-python/aiohttp dev-python/aiohttp-cors" |
85 |
+} |