diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-26 18:57:55 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-26 18:57:55 +0000 |
commit | dd8cf418a044466cd5a1239059d5d21744f73f14 (patch) | |
tree | 0d4b5a88a46cdc31e1f7f8f302ac8114e3f94a9d /dev-python/black | |
parent | 6887f21af5af228689c7587c4adf37baa07d563f (diff) |
gentoo auto-resync : 26:01:2024 - 18:57:55
Diffstat (limited to 'dev-python/black')
-rw-r--r-- | dev-python/black/Manifest | 2 | ||||
-rw-r--r-- | dev-python/black/black-24.1.0.ebuild | 55 |
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-python/black/Manifest b/dev-python/black/Manifest index 03e270b9d619..4c777a30c837 100644 --- a/dev-python/black/Manifest +++ b/dev-python/black/Manifest @@ -1,3 +1,5 @@ DIST black-23.12.1.tar.gz 620809 BLAKE2B 8522183d8004dd094f87fc8efcbbbafede9f94ded2f67d4815059534da91c969067c5c508636c2654894109f91d8fb5b26f23351b5ffff451aeac8ed5d146da4 SHA512 1a90eadbb7ccf1dd6c4c7d858b3360b7c62c04bf1826dd4817ddb8d542c3155fc72a80d53aa3be34375bd7006ab65432e006572bc5d1eeb6ff23cfa460072e93 +DIST black-24.1.0.tar.gz 622911 BLAKE2B 371a334df390f758fe482dac42345ab0cd7058c2dcbb49f5ce4337fedfe5b330308ab2644438a447ae76413fc95b65ba0fb0ab68a3a294e12f2fe147cebdfc25 SHA512 f9d2315743b91dcc563f8e57d4bfb3d80aff2b6a8f426d348c84d23cbcc1fe85107b4b3d78f396959d10240b75586e29bb26d7e767d382cc9d977703f2fa8d09 EBUILD black-23.12.1.ebuild 1508 BLAKE2B 2ca4e555c2b3941ce5d0907cc5bb4a5a643a41a8b1f6c7c537453982fd3196851bb2c9c3c0a7b8139109b1d1e806d5daae5545c96f7bd66d183e57c76bf370ca SHA512 9a67b16239a775ac88ccdbfae13c4c5c4c2038873bee18e1e1c08ef02f5e8e666e85b25953b4c225b3001bfdcde35284aa0ea10335dbb2f8d9f225734e9ef887 +EBUILD black-24.1.0.ebuild 1516 BLAKE2B fad650e8f1c41ff50dec38825fabf3635bb87cc6f46af932546f30389e506fcffb9997c55fd332b783eadf8b3744fa1e4e0e30790e76182839fb98955bbcfa66 SHA512 dde816dffa26b2a9eff2dbf830cae6cb4b1995b3215bf758794325a0e30eca5fa38f78354414352f095b56a4d8dfe7b3e7717719861530f6071be35bcbabb74f MISC metadata.xml 446 BLAKE2B 7d9bdbc4fdd62c1b4278a824a75dede64ccd3a4d865722a99edbd4e316342879eefa7b249c453668a5d33009e134e2feb4d1ac01976146c3e988f3724749d4a4 SHA512 0a3a912fc1d439a92452e48c9749705cd2307e645bb1274d22265656f6101574edda79cf04c03ae512818e7077e404f79fb1f70fd68d9c7cd3be3417f991700d diff --git a/dev-python/black/black-24.1.0.ebuild b/dev-python/black/black-24.1.0.ebuild new file mode 100644 index 000000000000..d7502a3d0049 --- /dev/null +++ b/dev-python/black/black-24.1.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{10..12} pypy3 ) + +inherit distutils-r1 optfeature pypi + +DESCRIPTION="The uncompromising Python code formatter" +HOMEPAGE=" + https://black.readthedocs.io/en/stable/ + https://github.com/psf/black/ + https://pypi.org/project/black/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +RDEPEND=" + >=dev-python/click-8.0.0[${PYTHON_USEDEP}] + >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}] + >=dev-python/packaging-22.0[${PYTHON_USEDEP}] + >=dev-python/pathspec-0.9.0[${PYTHON_USEDEP}] + >=dev-python/platformdirs-2[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/tomli-1.1.0[${PYTHON_USEDEP}] + ' 3.10) +" +BDEPEND=" + dev-python/hatch-fancy-pypi-readme[${PYTHON_USEDEP}] + dev-python/hatch-vcs[${PYTHON_USEDEP}] + test? ( + >=dev-python/aiohttp-3.7.4[${PYTHON_USEDEP}] + dev-python/aiohttp-cors[${PYTHON_USEDEP}] + dev-python/colorama[${PYTHON_USEDEP}] + dev-python/parameterized[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # incompatible with xdist + tests/test_black.py::TestCaching::test_output_locking_when_writeback_diff + tests/test_black.py::TestCaching::test_failed_formatting_does_not_get_cached +) + +pkg_postinst() { + optfeature "blackd - HTTP API for black" \ + "dev-python/aiohttp dev-python/aiohttp-cors" +} |