python-jupyter_qtconsole: drop python 2 package

This commit is contained in:
Đoàn Trần Công Danh 2020-03-31 12:14:41 +07:00 committed by Piotr
parent fecc85440a
commit a735933df8
3 changed files with 27 additions and 39 deletions

View file

@ -1,38 +0,0 @@
# Template file for 'python-jupyter_qtconsole'
pkgname=python-jupyter_qtconsole
version=4.4.3
revision=2
archs=noarch
wrksrc="qtconsole-${version}"
build_style=python-module
pycompile_module="qtconsole"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-traitlets python-jupyter_core python-jupyter_client
python-Pygments python-ipython_ipykernel python-ipython_genutils
python-PyQt5-svg"
short_desc="Jupyter Qt console (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/jupyter/qtconsole"
distfiles="${PYPI_SITE}/q/qtconsole/qtconsole-${version}.tar.gz"
checksum=bc1ba15f50c29ed50f1268ad823bb6543be263c18dd093b80495e9df63b003ac
alternatives="jupyter-qtconsole:jupyter-qtconsole:/usr/bin/jupyter-qtconsole2"
post_install() {
vlicense LICENSE
}
python3-jupyter_qtconsole_package() {
archs=noarch
depends="python3-traitlets python3-jupyter_core python3-jupyter_client
python3-Pygments python3-ipython_ipykernel python3-ipython_genutils
python3-PyQt5-svg"
pycompile_module="qtconsole"
short_desc="${short_desc/Python2/Python3}"
alternatives="jupyter-qtconsole:jupyter-qtconsole:/usr/bin/jupyter-qtconsole3"
pkg_install() {
vmove usr/bin/jupyter-qtconsole3
vmove usr/lib/python3*
vlicense LICENSE
}
}

View file

@ -1 +0,0 @@
python-jupyter_qtconsole

View file

@ -0,0 +1,27 @@
# Template file for 'python3-jupyter_qtconsole'
pkgname=python3-jupyter_qtconsole
version=4.4.3
revision=3
archs=noarch
wrksrc="qtconsole-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-traitlets python3-jupyter_core python3-jupyter_client
python3-Pygments python3-ipython_ipykernel python3-ipython_genutils
python3-PyQt5-svg"
checkdepends="$depends python3-pytest"
short_desc="Jupyter Qt console"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/jupyter/qtconsole"
distfiles="${PYPI_SITE}/q/qtconsole/qtconsole-${version}.tar.gz"
checksum=bc1ba15f50c29ed50f1268ad823bb6543be263c18dd093b80495e9df63b003ac
conflicts="python-jupyter_qtconsole<=4.4.3_2"
do_check() {
QT_QPA_PLATFORM=offscreen pytest
}
post_install() {
vlicense LICENSE
}