From c64a4e04445ef5ac17dce37c6acf7718f9f02e1a Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 13 May 2021 21:28:29 +0200 Subject: dev-python/falcon: Fix obsolete rdeps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks to Vytautas Liuolia for noticing. Signed-off-by: Michał Górny --- dev-python/falcon/falcon-2.0.0-r1.ebuild | 41 +++++++++++++++++++++++++ dev-python/falcon/falcon-2.0.0.ebuild | 45 ---------------------------- dev-python/falcon/falcon-3.0.1-r1.ebuild | 47 +++++++++++++++++++++++++++++ dev-python/falcon/falcon-3.0.1.ebuild | 51 -------------------------------- 4 files changed, 88 insertions(+), 96 deletions(-) create mode 100644 dev-python/falcon/falcon-2.0.0-r1.ebuild delete mode 100644 dev-python/falcon/falcon-2.0.0.ebuild create mode 100644 dev-python/falcon/falcon-3.0.1-r1.ebuild delete mode 100644 dev-python/falcon/falcon-3.0.1.ebuild (limited to 'dev-python/falcon') diff --git a/dev-python/falcon/falcon-2.0.0-r1.ebuild b/dev-python/falcon/falcon-2.0.0-r1.ebuild new file mode 100644 index 000000000000..1198e6c8fd91 --- /dev/null +++ b/dev-python/falcon/falcon-2.0.0-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8,9} ) +DISTUTILS_USE_SETUPTOOLS=rdepend +inherit distutils-r1 + +DESCRIPTION="A supersonic micro-framework for building cloud APIs" +HOMEPAGE="https://falconframework.org/ https://pypi.org/project/falcon/" +SRC_URI="https://github.com/falconry/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+cython" + +BDEPEND="cython? ( dev-python/cython[${PYTHON_USEDEP}] )" +DEPEND="${RDEPEND}" + +distutils_enable_tests pytest + +src_prepare() { + if ! use cython; then + sed -i -e 's/if with_cython:/if False:/' setup.py || die + fi + + default +} + +python_test() { + local deselect=( + # mujson is unpackaged, test-only dep + --ignore tests/test_media_handlers.py + # uses unsafe serialization (unsafe_load) + --deselect tests/test_httperror.py::TestHTTPError::test_custom_error_serializer + ) + + pytest -vv "${deselect[@]}" || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/falcon/falcon-2.0.0.ebuild b/dev-python/falcon/falcon-2.0.0.ebuild deleted file mode 100644 index ff5be1f6d87a..000000000000 --- a/dev-python/falcon/falcon-2.0.0.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7,8,9} ) -DISTUTILS_USE_SETUPTOOLS=rdepend -inherit distutils-r1 - -DESCRIPTION="A supersonic micro-framework for building cloud APIs" -HOMEPAGE="https://falconframework.org/ https://pypi.org/project/falcon/" -SRC_URI="https://github.com/falconry/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="+cython" - -BDEPEND="cython? ( dev-python/cython[${PYTHON_USEDEP}] )" -RDEPEND=" - dev-python/six[${PYTHON_USEDEP}] - dev-python/python-mimeparse[${PYTHON_USEDEP}] -" -DEPEND="${RDEPEND}" - -distutils_enable_tests pytest - -src_prepare() { - if ! use cython; then - sed -i -e 's/if with_cython:/if False:/' setup.py || die - fi - - default -} - -python_test() { - local deselect=( - # mujson is unpackaged, test-only dep - --ignore tests/test_media_handlers.py - # uses unsafe serialization (unsafe_load) - --deselect tests/test_httperror.py::TestHTTPError::test_custom_error_serializer - ) - - pytest -vv "${deselect[@]}" || die "Tests failed with ${EPYTHON}" -} diff --git a/dev-python/falcon/falcon-3.0.1-r1.ebuild b/dev-python/falcon/falcon-3.0.1-r1.ebuild new file mode 100644 index 000000000000..3bd716866d67 --- /dev/null +++ b/dev-python/falcon/falcon-3.0.1-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) +inherit distutils-r1 + +DESCRIPTION="A supersonic micro-framework for building cloud APIs" +HOMEPAGE="https://falconframework.org/ https://pypi.org/project/falcon/" +SRC_URI="https://github.com/falconry/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + test? ( + dev-python/aiofiles[${PYTHON_USEDEP}] + dev-python/cbor2[${PYTHON_USEDEP}] + dev-python/httpx[${PYTHON_USEDEP}] + dev-python/msgpack[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/uvicorn[${PYTHON_USEDEP}] + dev-python/websockets[${PYTHON_USEDEP}] + )" + +distutils_enable_tests pytest + +src_prepare() { + # do not install 'examples' + sed -i -e "s:'tests':'examples', &:" setup.py || die + distutils-r1_src_prepare +} + +python_test() { + local deselect=( + # mujson is unpackaged, test-only dep + --ignore tests/test_media_handlers.py + ) + + cp -r tests "${BUILD_DIR}" || die + cd "${BUILD_DIR}" || die + epytest tests "${deselect[@]}" +} diff --git a/dev-python/falcon/falcon-3.0.1.ebuild b/dev-python/falcon/falcon-3.0.1.ebuild deleted file mode 100644 index 5c8184be6612..000000000000 --- a/dev-python/falcon/falcon-3.0.1.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7..9} ) -inherit distutils-r1 - -DESCRIPTION="A supersonic micro-framework for building cloud APIs" -HOMEPAGE="https://falconframework.org/ https://pypi.org/project/falcon/" -SRC_URI="https://github.com/falconry/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND=" - dev-python/six[${PYTHON_USEDEP}] - dev-python/python-mimeparse[${PYTHON_USEDEP}] -" -BDEPEND=" - dev-python/cython[${PYTHON_USEDEP}] - test? ( - dev-python/aiofiles[${PYTHON_USEDEP}] - dev-python/cbor2[${PYTHON_USEDEP}] - dev-python/httpx[${PYTHON_USEDEP}] - dev-python/msgpack[${PYTHON_USEDEP}] - dev-python/pytest-asyncio[${PYTHON_USEDEP}] - dev-python/pyyaml[${PYTHON_USEDEP}] - dev-python/uvicorn[${PYTHON_USEDEP}] - dev-python/websockets[${PYTHON_USEDEP}] - )" - -distutils_enable_tests pytest - -src_prepare() { - # do not install 'examples' - sed -i -e "s:'tests':'examples', &:" setup.py || die - distutils-r1_src_prepare -} - -python_test() { - local deselect=( - # mujson is unpackaged, test-only dep - --ignore tests/test_media_handlers.py - ) - - cp -r tests "${BUILD_DIR}" || die - cd "${BUILD_DIR}" || die - epytest tests "${deselect[@]}" -} -- cgit v1.2.3-65-gdbad