python-jupyter_core: rebuild for Python 3.5

Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
Alessio Sergi 2016-10-17 00:01:43 +02:00
parent 769b2355f7
commit d41f622f2e
2 changed files with 20 additions and 14 deletions

View File

@ -1,12 +1,11 @@
# Template file for 'python-jupyter_core'
pkgname=python-jupyter_core
version=4.2.0
revision=2
revision=3
noarch=yes
wrksrc="jupyter_core-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-traitlets"
pycompile_module="jupyter_core jupyter.py"
short_desc="Jupyter core package (Python2)"
@ -17,26 +16,32 @@ distfiles="${PYPI_SITE}/j/jupyter_core/jupyter_core-${version}.tar.gz"
checksum=44ec837a53bebf4e937112d3f9ccf31fee4f8db3e406dd0dd4f0378a354bed9c
alternatives="
jupyter-core:jupyter:/usr/bin/jupyter2.7
jupyter-core:jupyter-migrate:/usr/bin/jupyter-migrate2.7"
jupyter-core:jupyter:/usr/bin/jupyter2
jupyter-core:jupyter-migrate:/usr/bin/jupyter-migrate2"
post_install() {
vlicense COPYING.md LICENSE
}
python3.4-jupyter_core_package() {
python3-jupyter_core_package() {
alternatives="
jupyter-core:jupyter:/usr/bin/jupyter3.4
jupyter-core:jupyter-migrate:/usr/bin/jupyter-migrate3.4"
jupyter-core:jupyter:/usr/bin/jupyter3
jupyter-core:jupyter-migrate:/usr/bin/jupyter-migrate3"
noarch=yes
depends="python3.4-traitlets"
pycompile_version="3.4"
depends="python3-traitlets"
pycompile_module="jupyter_core jupyter.py"
short_desc="${short_desc/Python2/Python3.4}"
replaces="python3.4-jupyter_core>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/bin/jupyter3.4
vmove usr/bin/jupyter-migrate3.4
vmove usr/lib/python3.4
vmove usr/bin/jupyter3
vmove usr/bin/jupyter-migrate3
vmove usr/lib/python3*
vlicense COPYING.md LICENSE
}
}
python3.4-jupyter_core_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-jupyter_core>=${version}_${revision}"
}

View File

@ -0,0 +1 @@
python-jupyter_core