diff options
Diffstat (limited to 'dev-python/ipython')
-rw-r--r-- | dev-python/ipython/Manifest | 8 | ||||
-rw-r--r-- | dev-python/ipython/ipython-7.31.1.ebuild | 157 | ||||
-rw-r--r-- | dev-python/ipython/ipython-8.3.0-r1.ebuild | 6 | ||||
-rw-r--r-- | dev-python/ipython/ipython-8.4.0.ebuild (renamed from dev-python/ipython/ipython-8.2.0.ebuild) | 20 |
4 files changed, 23 insertions, 168 deletions
diff --git a/dev-python/ipython/Manifest b/dev-python/ipython/Manifest index 0049b436679a..4210779151b7 100644 --- a/dev-python/ipython/Manifest +++ b/dev-python/ipython/Manifest @@ -1,8 +1,6 @@ AUX 2.1.0-substitute-files.patch 1017 BLAKE2B 70577eb950a18345804a2a4b750bd233dc6a0b6bbdb524dfc66e0f4a7c69b0eeb2d35efb9d1845d567a11d1afa7881068b4757e42b9baf24dc01ba3026608a38 SHA512 fc4c9e12267ac5f04a2e16ad27334a093638538b8149ff380099fcbeb674a276ab9eb624a508010e37f82c05d5f7ab527a80e386b3e7b61c123ecb8effd9d542 -DIST ipython-7.31.1.tar.gz 5156314 BLAKE2B e6528c9d3920078918180c4c2fae5d0ac20cd377e012691fee4c0cfa6c3056c739efc1ab9cc6231f55034d70619e501ff30e31b929bd5f1f623c89075abfb02d SHA512 7bd1378f7b2bd2146d8c2cf15c958b08f286b0163ca3e267bcd92c3f988d2d20cf48fd6e3c185eed6d30baceb195aeb0170280900e587c898d0812c4ffdee3a0 -DIST ipython-8.2.0.tar.gz 5400583 BLAKE2B 6af50e671823005b035a8463e65463b06dacb3bf4d43c4d3bd9720d1747ebda8abe3d73a49f59ae0e6e2651035db20bcfa1e82dbb0a73e40b4e2507e63118921 SHA512 0bf93527bcafe5dfbfe034b901dff2f002e0fc732159073f0371263e23784f45eb6c9e3f7f2cb9567e93ea4ee313773f836157afe9d23256e71bc4b2fcac15af DIST ipython-8.3.0.tar.gz 5314400 BLAKE2B 8f06dcaf32cea70ba9f19fb218d4ea6ca3e42651da065521133b1c7163f80324244f59b3c4d85039f1aa5ed363acad0dae11615ae4927d6c9a24197cc9640349 SHA512 95a3d50a5cffe9d4ed3f072c7fa8920c96beccdb15a7437836daa5f38f1ba228b4ebc4c3313d4c5016b77ed7d6f3787af727487ea379c9dc3b3de90eafa4d1c3 -EBUILD ipython-7.31.1.ebuild 4651 BLAKE2B ebe9ec2ae2f606efb76fed9ca1e3e04c78a13c8d86ec3223d02c980289e215bec65f01714d7758b707784c98f59fb7c934ff6f207cfe8943c9c0712217457637 SHA512 27e831552e274196810f5e88fbd7242dfdd8a233f60e8767c040d70557f0389f973105905eae473d8136d10b4f566ef3245afeb286065156d0b87ed3d451267d -EBUILD ipython-8.2.0.ebuild 4534 BLAKE2B d7b8576e1f7dd95b2c6e7d5fca8fddb3438835447a3c9c48f6a5bcb495fb01ee18fe535834f1ccade71270f592dbe8698aee316b142678bccc2ef6357bc7d3e9 SHA512 2cdac89d6ec11bc21c5c2131c4b461c543d755760d8a9a3e10420f781bf1e7133569df4bc0a6a3e4b8886e1e36957150bc2fe7e0a692bf37d3455a3590d4eb43 -EBUILD ipython-8.3.0-r1.ebuild 4529 BLAKE2B d83840ca04cb890d4defb7b7343ad978c58544be975e1595aba52e97e958352979a55071c8e5d3782ba97fc883f60653630088e8b5698681efdfc675cb042182 SHA512 a3e28a4f412449d8122152b4e04a620b508afc39aeec8614b26618b644ba9d28e4225900dc174f47251e3fd5c76d5847fa193fb42c04ebe4ddd862ed5f70dc90 +DIST ipython-8.4.0.tar.gz 5314601 BLAKE2B 4a5804ad115b45568ddbc0b8fcd181ae0088690ae2d7dda8580588d1e1caa087582a279449142e0144568815270b3a9476893525c0e90320f9ec580a06126d1d SHA512 975915ee64ce6f3fc9bcda383c784759dd8b19151428b10ef92020097718c6e2a9804a00fe02bd541b845eca146c63a672f25ad4f00ec5302b3c61ae0c6935ce +EBUILD ipython-8.3.0-r1.ebuild 4686 BLAKE2B 84112b5bba8125ff42312c46fa63f479970ea910623e96deb9c14cc946c2329ee69127e462f6dc8e99fbcc472ae44c50f5ef30a70e291fead15506a25ba695b7 SHA512 644837453f1d96c2d6dcac69d1908ff20cc10b7a6d960467b51f8bb571f0fb9c621a9766466e42ea471f8d368e122c1398aaccbb13563fdcd1e20f3a152b5dc0 +EBUILD ipython-8.4.0.ebuild 5030 BLAKE2B 2dcb2ee47d0415822903a004872b53c8dcbcfb212f2855b03dd687a2f24b296a12a1571ea64c5fbbeb5e67c44b4c228341f63e98ae72dc3519c9263687159882 SHA512 d9fb1383eadeb995c96a6a42c658ca91f7e1423dfc760110874c5ceca90ef6060ecdbc0fa062d0e0da0e6437be309b16433dc0c6c8ea5a6e82388f3541b1876c MISC metadata.xml 2883 BLAKE2B f61d1c66cdc9a956f3fdc9fcbc93fbc2051e9d0872beb9229e87a8fdabbce656efee9702e66bf30bec68009702f42e4036202e02208a428a8ed87b448f625536 SHA512 617f19e859544079d2680e9796e3ff0b7af41577776847d4c4dccfffc460dfc887631169289e5271120f375bea7c7836395abb9bf8a7628b3b55a7c1beefda9b diff --git a/dev-python/ipython/ipython-7.31.1.ebuild b/dev-python/ipython/ipython-7.31.1.ebuild deleted file mode 100644 index afbb895bd2ba..000000000000 --- a/dev-python/ipython/ipython-7.31.1.ebuild +++ /dev/null @@ -1,157 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_SETUPTOOLS=no -PYTHON_COMPAT=( python3_{8..10} ) -PYTHON_REQ_USE='readline,sqlite,threads(+)' - -inherit distutils-r1 optfeature virtualx - -DESCRIPTION="Advanced interactive shell for Python" -HOMEPAGE="https://ipython.org/ https://github.com/ipython/ipython/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86" -IUSE="doc examples matplotlib notebook nbconvert qt5 +smp test" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-python/backcall[${PYTHON_USEDEP}] - dev-python/decorator[${PYTHON_USEDEP}] - >=dev-python/jedi-0.16[${PYTHON_USEDEP}] - >=dev-python/pexpect-4.3[${PYTHON_USEDEP}] - dev-python/pickleshare[${PYTHON_USEDEP}] - >=dev-python/prompt_toolkit-2[${PYTHON_USEDEP}] - <dev-python/prompt_toolkit-3.1[${PYTHON_USEDEP}] - dev-python/pygments[${PYTHON_USEDEP}] - dev-python/traitlets[${PYTHON_USEDEP}] - matplotlib? ( - dev-python/matplotlib[${PYTHON_USEDEP}] - dev-python/matplotlib-inline[${PYTHON_USEDEP}] - ) -" - -BDEPEND=" - test? ( - app-text/dvipng[truetype] - >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}] - dev-python/matplotlib[${PYTHON_USEDEP}] - dev-python/matplotlib-inline[${PYTHON_USEDEP}] - dev-python/nbformat[${PYTHON_USEDEP}] - dev-python/nose[${PYTHON_USEDEP}] - >=dev-python/numpy-1.17[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] - dev-python/testpath[${PYTHON_USEDEP}] - ) - doc? ( - >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}] - dev-python/matplotlib[${PYTHON_USEDEP}] - >=dev-python/sphinx-2[${PYTHON_USEDEP}] - dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] - )" - -distutils_enable_tests pytest - -RDEPEND+=" - nbconvert? ( - dev-python/nbconvert[${PYTHON_USEDEP}] - )" -PDEPEND=" - notebook? ( - dev-python/notebook[${PYTHON_USEDEP}] - dev-python/ipywidgets[${PYTHON_USEDEP}] - dev-python/widgetsnbextension[${PYTHON_USEDEP}] - ) - qt5? ( dev-python/qtconsole[${PYTHON_USEDEP}] ) - smp? ( - >=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}] - >=dev-python/ipyparallel-6.2.3[${PYTHON_USEDEP}] - )" - -PATCHES=( "${FILESDIR}"/2.1.0-substitute-files.patch ) - -DISTUTILS_IN_SOURCE_BUILD=1 - -python_prepare_all() { - # Remove out of date insource files - rm IPython/extensions/cythonmagic.py || die - rm IPython/extensions/rmagic.py || die - - # Prevent un-needed download during build - if use doc; then - sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die - fi - - # Rename the test directory to reduce sys.path pollution - # https://github.com/ipython/ipython/issues/12892 - mv IPython/extensions/{,ipython_}tests || die - - distutils-r1_python_prepare_all -} - -python_compile_all() { - if use doc; then - emake -C docs html_noapi - HTML_DOCS=( docs/build/html/. ) - fi -} - -python_test() { - local -x IPYTHON_TESTING_TIMEOUT_SCALE=20 - local EPYTEST_DESELECT=( - # TODO: looks to be a regression due to a newer dep - IPython/core/tests/test_oinspect.py::test_class_signature - IPython/core/tests/test_oinspect.py::test_render_signature_long - ) - [[ ${EPYTHON} == python3.10 ]] && EPYTEST_DESELECT+=( - # TODO - IPython/core/tests/test_completer.py::TestCompleter::test_all_completions_dups - IPython/core/tests/test_completer.py::TestCompleter::test_deduplicate_completions - IPython/core/tests/test_oinspect.py::test_pinfo_docstring_if_detail_and_no_source - # fails due to changed argparse output - IPython/core/tests/test_magic_arguments.py::test_magic_arguments - # py3.10 API incompat, doesn't look important - IPython/lib/tests/test_pretty.py::test_pprint_heap_allocated_type - ) - virtx epytest -} - -python_install() { - distutils-r1_python_install - - # Create ipythonX.Y symlinks. - # TODO: - # 1. do we want them for pypy? No. pypy has no numpy - # 2. handle it in the eclass instead (use _python_ln_rel). - # With pypy not an option the dosym becomes unconditional - dosym ../lib/python-exec/${EPYTHON}/ipython \ - /usr/bin/ipython${EPYTHON#python} -} - -python_install_all() { - distutils-r1_python_install_all - - if use examples; then - dodoc -r examples - docompress -x /usr/share/doc/${PF}/examples - fi -} - -pkg_postinst() { - optfeature "sympyprinting" dev-python/sympy - optfeature "cythonmagic" dev-python/cython - optfeature "%lprun magic command" dev-python/line_profiler - optfeature "%mprun magic command" dev-python/memory_profiler - - if use nbconvert; then - if ! has_version app-text/pandoc ; then - einfo "Node.js will be used to convert notebooks to other formats" - einfo "like HTML. Support for that is still experimental. If you" - einfo "encounter any problems, please use app-text/pandoc instead." - fi - fi -} diff --git a/dev-python/ipython/ipython-8.3.0-r1.ebuild b/dev-python/ipython/ipython-8.3.0-r1.ebuild index aaa7a7ae63a3..7d34496fedfa 100644 --- a/dev-python/ipython/ipython-8.3.0-r1.ebuild +++ b/dev-python/ipython/ipython-8.3.0-r1.ebuild @@ -15,7 +15,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +KEYWORDS="amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86" IUSE="doc examples matplotlib notebook nbconvert qt5 +smp test" RESTRICT="!test? ( test )" @@ -89,6 +89,10 @@ python_prepare_all() { # https://github.com/ipython/ipython/issues/12892 mv IPython/extensions/{,ipython_}tests || die + # remove pyproject.toml that specifies incorrect backend; since + # the package actually requires the legacy backend, force it implicitly + rm pyproject.toml || die + distutils-r1_python_prepare_all } diff --git a/dev-python/ipython/ipython-8.2.0.ebuild b/dev-python/ipython/ipython-8.4.0.ebuild index 4d3f9a00ccde..867a05be8b5c 100644 --- a/dev-python/ipython/ipython-8.2.0.ebuild +++ b/dev-python/ipython/ipython-8.4.0.ebuild @@ -15,7 +15,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv sparc x86" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" IUSE="doc examples matplotlib notebook nbconvert qt5 +smp test" RESTRICT="!test? ( test )" @@ -23,6 +23,7 @@ RDEPEND=" dev-python/backcall[${PYTHON_USEDEP}] dev-python/decorator[${PYTHON_USEDEP}] >=dev-python/jedi-0.16[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] dev-python/matplotlib-inline[${PYTHON_USEDEP}] >=dev-python/pexpect-4.3[${PYTHON_USEDEP}] dev-python/pickleshare[${PYTHON_USEDEP}] @@ -32,9 +33,6 @@ RDEPEND=" dev-python/setuptools[${PYTHON_USEDEP}] dev-python/stack_data[${PYTHON_USEDEP}] >=dev-python/traitlets-5.0[${PYTHON_USEDEP}] - matplotlib? ( - dev-python/matplotlib[${PYTHON_USEDEP}] - ) " BDEPEND=" @@ -91,6 +89,14 @@ python_prepare_all() { # https://github.com/ipython/ipython/issues/12892 mv IPython/extensions/{,ipython_}tests || die + if ! grep -q __legacy__ pyproject.toml; then + die "pyproject.toml changed, please recheck" + fi + + # remove pyproject.toml that specifies incorrect backend; since + # the package actually requires the legacy backend, force it implicitly + rm pyproject.toml || die + distutils-r1_python_prepare_all } @@ -113,13 +119,17 @@ python_test() { # TODO: looks to be a regression due to a newer dep IPython/core/tests/test_oinspect.py::test_class_signature IPython/core/tests/test_oinspect.py::test_render_signature_long + # TODO + IPython/extensions/ipython_tests/test_autoreload.py::TestAutoreload::test_smoketest_aimport + IPython/extensions/ipython_tests/test_autoreload.py::TestAutoreload::test_smoketest_autoreload ) [[ ${EPYTHON} == python3.10 ]] && EPYTEST_DESELECT+=( # TODO IPython/core/tests/test_completer.py::TestCompleter::test_all_completions_dups IPython/core/tests/test_completer.py::TestCompleter::test_deduplicate_completions ) - epytest || die "Tests failed with ${EPYTHON}" + # nonfatal implied by virtx + nonfatal epytest || die "Tests failed with ${EPYTHON}" } python_install() { |