python3-ipython: drop alternatives

This commit is contained in:
Đoàn Trần Công Danh 2020-03-31 12:14:54 +07:00 committed by Piotr
parent 73df0b8088
commit 651f8e96c1

View file

@ -1,7 +1,7 @@
# Template file for 'python3-ipython'
pkgname=python3-ipython
version=7.12.0
revision=1
revision=2
archs=noarch
wrksrc="ipython-${version}"
build_style=python3-module
@ -9,26 +9,24 @@ hostmakedepends="python3-setuptools"
depends="python3-pickleshare python3-simplegeneric python3-traitlets
python3-pexpect python3-prompt_toolkit2 python3-Pygments python3-jedi
python3-backcall"
checkdepends="$depends python3-pytest python3-nose python3-matplotlib
python3-requests python3-testpath python3-numpy python3-ipython_ipykernel
python3-jupyter_nbformat python3-Pygments"
short_desc="Enhanced interactive Python3 shell"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="BSD-3-Clause"
homepage="https://ipython.org/"
distfiles="${PYPI_SITE}/i/ipython/ipython-${version}.tar.gz"
checksum=d9459e7237e2e5858738ff9c3e26504b79899b58a6d49e574d352493d80684c6
conflicts="python-ipython<=5.8.0_2"
alternatives="
ipython:ipython:/usr/bin/ipython3
ipython:ipython.1:/usr/share/man/man1/ipython3.1"
do_check() {
pytest
}
post_install() {
# use decorators of numpy
rm -f ${DESTDIR}/usr/lib/python*/site-packages/IPython/external/decorators/_decorators.py
# remove iptest
rm -f ${DESTDIR}/usr/bin/iptest*
# remove ipython for alternatives
rm -f ${DESTDIR}/usr/bin/ipython
# create versioned man pages
mv ${DESTDIR}/usr/share/man/man1/ipython{,3}.1
vlicense COPYING.rst LICENSE
}