From ae89d486ffc473b058d23988d1bbb6c1a9bfb46f Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Thu, 3 Nov 2022 19:39:26 +0200 Subject: dev-python/notebook_shim: fix usr/etc installation Closes: https://bugs.gentoo.org/879297 Signed-off-by: Arthur Zamarin --- .../notebook_shim/notebook_shim-0.2.2-r1.ebuild | 43 ++++++++++++++++++++++ .../notebook_shim/notebook_shim-0.2.2.ebuild | 38 ------------------- 2 files changed, 43 insertions(+), 38 deletions(-) create mode 100644 dev-python/notebook_shim/notebook_shim-0.2.2-r1.ebuild delete mode 100644 dev-python/notebook_shim/notebook_shim-0.2.2.ebuild (limited to 'dev-python/notebook_shim') diff --git a/dev-python/notebook_shim/notebook_shim-0.2.2-r1.ebuild b/dev-python/notebook_shim/notebook_shim-0.2.2-r1.ebuild new file mode 100644 index 000000000000..7aae57be1d88 --- /dev/null +++ b/dev-python/notebook_shim/notebook_shim-0.2.2-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) +DISTUTILS_USE_PEP517=hatchling +inherit distutils-r1 + +DESCRIPTION="A shim layer for notebook traits and config" +HOMEPAGE=" + https://jupyter.org/ + https://github.com/jupyter/notebook_shim/ + https://pypi.org/project/notebook-shim/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + =dev-python/jupyter_server-1.8[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + dev-python/pytest-tornasync[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p pytest_tornasync.plugin +} + +src_install() { + distutils-r1_src_install + mv "${ED}/usr/etc" "${ED}/etc" || die +} diff --git a/dev-python/notebook_shim/notebook_shim-0.2.2.ebuild b/dev-python/notebook_shim/notebook_shim-0.2.2.ebuild deleted file mode 100644 index 17126685a250..000000000000 --- a/dev-python/notebook_shim/notebook_shim-0.2.2.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..11} ) -DISTUTILS_USE_PEP517=hatchling -inherit distutils-r1 - -DESCRIPTION="A shim layer for notebook traits and config" -HOMEPAGE=" - https://jupyter.org/ - https://github.com/jupyter/notebook_shim/ - https://pypi.org/project/notebook-shim/ -" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND=" - =dev-python/jupyter_server-1.8[${PYTHON_USEDEP}] -" - -BDEPEND=" - test? ( - dev-python/pytest-tornasync[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -python_test() { - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - epytest -p pytest_tornasync.plugin -} -- cgit v1.2.3-65-gdbad