* ikernel update and ipython updates. Note that these packages go together so they in one PR request. Note that python-prompt-toolkit has to be split into 2 packages because ipython 7.1.1 for python3 now requires to prompt_toolkit > 2.0 which is only available for python3. The old version of prompt_toolkit for python2 is now separate so that th eolder version can be provided for ipython 5.x for python2. * Fixes suggested by Alex puck and a few things I found 1) Delete python-ipykernel and make a separate python2-ipykernel package that only installs for Python2. 2) In python3-ipykernel - add license file and fixup dependencies for Python3 only package. Remove unused stuff. 3) python3-ipytho - add an optional dependency on python3-ipython-ipyparallel. That is something I'm working on now which was suggested by setup.py file in this package. * various fixes to packages python2-ipython - make it conform to standard pattern python2-prompt_toolkit - add --skip-build, it's built separate python3-ipykernel - formatting python3-ipython - clarified dependencies and add tests python3-prompt_toolkit - add mingw-w64 to description python-python-simplegeneric - make comply to standard pattern
44 lines
1.6 KiB
Bash
44 lines
1.6 KiB
Bash
# Maintainer: Ryuta Suzuki <oroppas@gmail.com>
|
|
|
|
_realname=prompt_toolkit
|
|
pkgbase=mingw-w64-python2-${_realname}
|
|
pkgname=("${MINGW_PACKAGE_PREFIX}-python2-${_realname}")
|
|
pkgver=1.0.15
|
|
pkgrel=2
|
|
pkgdesc="Library for building powerful interactive command lines in Python (mingw-w64)"
|
|
url="https://github.com/jonathanslenders/python-prompt-toolkit"
|
|
arch=('any')
|
|
license=('BSD')
|
|
depends=("${MINGW_PACKAGE_PREFIX}-python2-pygments"
|
|
"${MINGW_PACKAGE_PREFIX}-python2-six"
|
|
"${MINGW_PACKAGE_PREFIX}-python2-wcwidth")
|
|
makedepends=("${MINGW_PACKAGE_PREFIX}-python2-setuptools")
|
|
checkdepends=("${MINGW_PACKAGE_PREFIX}-python2-pytest")
|
|
source=(python-prompt-toolkit-${pkgver}.tar.gz::https://github.com/jonathanslenders/python-prompt-toolkit/archive/${pkgver}.tar.gz)
|
|
sha256sums=('e2f720a1e8149a2b56b776d68c8fb28c8211546d266301178fb982e69d0c9bed')
|
|
|
|
prepare() {
|
|
cd "${srcdir}"
|
|
rm -rf python2-build-${CARCH} | true
|
|
cp -r "python-prompt-toolkit-${pkgver}" "python2-build-${CARCH}"
|
|
}
|
|
|
|
build() {
|
|
msg "Python 2 build for ${CARCH}"
|
|
cd "${srcdir}/python2-build-${CARCH}"
|
|
${MINGW_PREFIX}/bin/python2 setup.py build
|
|
}
|
|
|
|
check() {
|
|
msg "Python 2 tests for ${CARCH}"
|
|
cd "${srcdir}/python2-build-${CARCH}"
|
|
${MINGW_PREFIX}/bin/py.test2 || warning "tests failed"
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/python2-build-${CARCH}"
|
|
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
|
|
${MINGW_PREFIX}/bin/python2 setup.py install --root=${pkgdir} --prefix=${MINGW_PREFIX} --optimize=1 --skip-build
|
|
install -Dm644 LICENSE ${pkgdir}${MINGW_PREFIX}/share/licenses/python2-${_realname}/LICENSE
|
|
}
|