diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-11-11 08:35:31 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-11-11 09:07:09 +0100 |
commit | 1f8bd2203e108c7466daa4f336a1386299bc7c3c (patch) | |
tree | e0715d945b2f67d5c56b0d02b134d0d9658c1316 /dev-python/black | |
parent | dev-python/requests: Remove old (diff) | |
download | gentoo-1f8bd2203e108c7466daa4f336a1386299bc7c3c.tar.gz gentoo-1f8bd2203e108c7466daa4f336a1386299bc7c3c.tar.bz2 gentoo-1f8bd2203e108c7466daa4f336a1386299bc7c3c.zip |
dev-python/black: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/black')
-rw-r--r-- | dev-python/black/Manifest | 2 | ||||
-rw-r--r-- | dev-python/black/black-20.8_beta1.ebuild | 76 | ||||
-rw-r--r-- | dev-python/black/black-21.8_beta0.ebuild | 58 | ||||
-rw-r--r-- | dev-python/black/files/black-20.8_beta1-setuptools_scm.patch | 16 |
4 files changed, 0 insertions, 152 deletions
diff --git a/dev-python/black/Manifest b/dev-python/black/Manifest index fcfbef8b8b0a..1f7f86176c77 100644 --- a/dev-python/black/Manifest +++ b/dev-python/black/Manifest @@ -1,5 +1,3 @@ -DIST black-20.8b1.tar.gz 1092546 BLAKE2B 5a0a755222617d8d551b627c91670ecc32a9330cc1197900a9d21b071d0d99ddd32e09786becfc577407ab402f6da3d8683a59a9deaea1f6b4f07b9e1e4ecbed SHA512 53d6f6a6f47027e5bdfd3909471c993480034c8aa8ae395792565b8d79fb4e3a44299ea529652c0ccabf4309d645db9179bf54efc06fee20517f479e91cec838 DIST black-21.10b0.tar.gz 1171813 BLAKE2B 71bf628aa3b2b0a73c53446061d07ed0074c2e136c6a4dd09feb4b7dcc2b8c8045417e2c6a049a3051bb2e8fc368037c540851384d00ec89ad943d0c8f949c40 SHA512 0e44fe6c34d75f135996bcd62768f3ea02f5ba996992f0173cd28977f6a9ed4fde975e7433439f3b724c54555867f91edcd167fc1c5273308a613a51905323c8 DIST black-21.7b0.tar.gz 1148431 BLAKE2B 34dcd2fd45b914433d6290c10bb07b44277cb490ef884c44ec00cb5495fadd2e649099dd356c4063d0fff5a6477609b11db73e1dc94d88106c56a3ca9b087c90 SHA512 7e6ee4e185080802c9dfc6eeb73b52b2489283c4bcbc086366f50ffb8ea3e0f4bdfedac9a5906be6ec119e65050741c71591c394f0c361a1d75b3ff4061945c1 -DIST black-21.8b0.tar.gz 1167978 BLAKE2B e7df398d09b71389069991bf0872a97d8a8c0b13ddeec12ee8f08ae9d9716a3d47447727d2759d475f10d323df151b8bb2353f3fd60c99eccb1e912554ebbe7b SHA512 ed38dbf0c881fee7da74f0d6bfe4ea0f85b5bed30d37abde2fd728e33f94ceaaa27b7107cfe763c19bdaea57fcbf54bcae82ce8bdcabc29035cdc85a8e10ab00 DIST black-21.9b0.tar.gz 1167869 BLAKE2B 31933de69cc34e23e14b0fdba33da844697816cd3917227c1a16c4d1595435d3715405f7f1df820953e83c30c3947448389a703ee662548226dfc2d278b87844 SHA512 0c8025d64ef9e5da8ad73b1f265b912bcb3d8cb00d8a426a39dd4c70505a77150e02a7f26e3d6842456eea367da9fad29d08f586b175d57d66a09cf389442ed0 diff --git a/dev-python/black/black-20.8_beta1.ebuild b/dev-python/black/black-20.8_beta1.ebuild deleted file mode 100644 index 83195677b3b4..000000000000 --- a/dev-python/black/black-20.8_beta1.ebuild +++ /dev/null @@ -1,76 +0,0 @@ -# Copyright 2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7..9} ) -DISTUTILS_USE_SETUPTOOLS=rdepend -inherit distutils-r1 optfeature - -MY_PV="${PV//_beta/b}" -MY_P="${PN}-${MY_PV}" - -DESCRIPTION="The uncompromising Python code formatter" -HOMEPAGE="https://black.readthedocs.io/en/stable/ https://github.com/psf/black" -SRC_URI="https://github.com/psf/${PN}/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" -S="${WORKDIR}/${MY_P}" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv sparc x86 ~x64-macos" -IUSE="test" -# bug #754201 -RESTRICT="test" - -RDEPEND=" - >=dev-python/click-7.1.2[${PYTHON_USEDEP}] - dev-python/appdirs[${PYTHON_USEDEP}] - >=dev-python/toml-0.10.1[${PYTHON_USEDEP}] - dev-python/typed-ast[${PYTHON_USEDEP}] - dev-python/regex[${PYTHON_USEDEP}] - dev-python/pathspec[${PYTHON_USEDEP}] - >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}] - >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}] - $(python_gen_cond_dep 'dev-python/dataclasses[${PYTHON_USEDEP}]' python3_6) -" -BDEPEND="${RDEPEND} - test? ( - dev-python/aiohttp[${PYTHON_USEDEP}] - dev-python/aiohttp-cors[${PYTHON_USEDEP}] - dev-python/colorama[${PYTHON_USEDEP}] - ) -" - -PATCHES=( - "${FILESDIR}/black-20.8_beta1-setuptools_scm.patch" -) - -distutils_enable_tests unittest - -python_prepare_all() { - local version_path - version_path="$(grep '"write_to"' setup.py | \ - sed -r 's|[[:space:]]+"write_to": "([[:graph:]]+)",|\1|' \ - || die "could not find path to write version to")" - - [[ -e ${version_path} ]] && die "could not find path to write version to" - printf 'version = "%s"\n' "${MY_PV}" > "${version_path}" || die "error writing version" - sed -e 's:setuptools_scm::' -i setup.cfg || die - - # don't version lock dependencies - sed -r -e 's:("pathspec>.*), <[0-9.-]+:\1:' -i setup.py || die - - # make sure that setup.py can read version - export MY_PV - - distutils-r1_python_prepare_all -} - -python_test() { - cp "${S}"/src/black_primer/primer.json "${BUILD_DIR}"/lib/black_primer/primer.json || die - "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}" -} - -pkg_postinst() { - optfeature "blackd - HTTP API for black" dev-python/aiohttp dev-python/aiohttp-cors -} diff --git a/dev-python/black/black-21.8_beta0.ebuild b/dev-python/black/black-21.8_beta0.ebuild deleted file mode 100644 index 46855cf5a7f3..000000000000 --- a/dev-python/black/black-21.8_beta0.ebuild +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 2020-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..10} ) -inherit distutils-r1 optfeature - -MY_PV="${PV//_beta/b}" -MY_P="${PN}-${MY_PV}" - -DESCRIPTION="The uncompromising Python code formatter" -HOMEPAGE="https://black.readthedocs.io/en/stable/ https://github.com/psf/black" -SRC_URI="https://github.com/psf/${PN}/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" -S="${WORKDIR}/${MY_P}" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" - -RDEPEND=" - >=dev-python/click-8.0.0[${PYTHON_USEDEP}] - >=dev-python/mypy_extensions-0.4.3[${PYTHON_USEDEP}] - >=dev-python/platformdirs-2[${PYTHON_USEDEP}] - dev-python/regex[${PYTHON_USEDEP}] - <dev-python/pathspec-1[${PYTHON_USEDEP}] - <dev-python/tomli-2[${PYTHON_USEDEP}] -" -BDEPEND=" - dev-python/setuptools_scm[${PYTHON_USEDEP}] - test? ( - dev-python/aiohttp[${PYTHON_USEDEP}] - dev-python/aiohttp-cors[${PYTHON_USEDEP}] - dev-python/colorama[${PYTHON_USEDEP}] - dev-python/parameterized[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -export SETUPTOOLS_SCM_PRETEND_VERSION=${MY_PV} - -src_prepare() { - # remove unnecessary bind that worked around broken 6.1.0/6.2.0 releases - sed -i -e '/setuptools_scm/s:~=:>=:' setup.cfg || die - distutils-r1_src_prepare -} - -python_test() { - cp "${S}"/src/black_primer/primer.json \ - "${BUILD_DIR}"/lib/black_primer/primer.json || die - distutils_install_for_testing - epytest -m "not python2" -} - -pkg_postinst() { - optfeature "blackd - HTTP API for black" dev-python/aiohttp dev-python/aiohttp-cors -} diff --git a/dev-python/black/files/black-20.8_beta1-setuptools_scm.patch b/dev-python/black/files/black-20.8_beta1-setuptools_scm.patch deleted file mode 100644 index 368c21812e24..000000000000 --- a/dev-python/black/files/black-20.8_beta1-setuptools_scm.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff --git a/setup.py b/setup.py -index 12fde25..340d2c0 100644 ---- a/setup.py -+++ b/setup.py -@@ -47,10 +47,7 @@ else: - - setup( - name="black", -- use_scm_version={ -- "write_to": "src/_black_version.py", -- "write_to_template": 'version = "{version}"\n', -- }, -+ version=os.getenv("MY_PV"), - description="The uncompromising code formatter.", - long_description=get_long_description(), - long_description_content_type="text/markdown", |