From 64c5622c8254a3b9316fc0c2916f67074dda41d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sat, 3 Jun 2023 15:50:15 -0300 Subject: [PATCH] python3-ipython: update to 8.14.0. - switch to pep517 build style: needs using a venv - update depends and checkdepends - break unnecessary checkdepends cycle with ipython_ipykernel --- srcpkgs/python3-ipython/template | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/srcpkgs/python3-ipython/template b/srcpkgs/python3-ipython/template index 14b1cc291123..65a74e218d40 100644 --- a/srcpkgs/python3-ipython/template +++ b/srcpkgs/python3-ipython/template @@ -1,24 +1,35 @@ # Template file for 'python3-ipython' pkgname=python3-ipython -version=8.13.2 +version=8.14.0 revision=1 -build_style=python3-module -hostmakedepends="python3-setuptools" -depends="python3-setuptools python3-jedi python3-decorator python3-pickleshare +build_style=python3-pep517 +hostmakedepends="python3-wheel" +depends="python3-jedi python3-decorator python3-pickleshare python3-traitlets python3-prompt_toolkit python3-Pygments python3-backcall python3-matplotlib-inline python3-pexpect python3-stack_data" -checkdepends="python3-pytest $depends python3-matplotlib python3-Pillow - python3-requests python3-testpath python3-numpy python3-ipython_ipykernel - python3-jupyter_nbformat python3-Pygments" +checkdepends="$depends python3-pytest-asyncio python3-testpath + python3-curio python3-jupyter_nbformat python3-matplotlib + python3-numpy python3-pandas python3-trio" short_desc="Enhanced interactive Python3 shell" maintainer="Andrew J. Hesford " license="BSD-3-Clause" homepage="https://ipython.org/" changelog="https://github.com/ipython/ipython/raw/main/docs/source/whatsnew/version8.rst" distfiles="${PYPI_SITE}/i/ipython/ipython-${version}.tar.gz" -checksum=7dff3fad32b97f6488e02f87b970f309d082f758d7b7fc252e3b19ee0e432dbb +checksum=1d197b907b6ba441b692c48cf2a3a2de280dc0ac91a3405b39349a50272ca0a1 conflicts="python-ipython<=5.8.0_2" +do_check() { + # Running via PYTHONPATH breaks... venv works + # This could be moved to build-style/python3-pep517.sh + local testdir="${wrksrc}/.xbps-testdir" + rm -rf "${testdir}" + python3 -m venv --system-site-packages --without-pip "${testdir}" + local -x PATH="${testdir}/bin:${PATH}" + python3 -m installer dist/*.whl + python3 -m pytest +} + post_install() { # remove iptest rm -f ${DESTDIR}/usr/bin/iptest*