python-astroid: split off python3 package and update to 2.2.5

astroid 2.x does not support python2 any more
This commit is contained in:
Helmut Pozimski 2019-09-14 09:45:29 +02:00
parent c176209ed5
commit 6125f04e72
3 changed files with 24 additions and 14 deletions

View File

@ -1,12 +1,12 @@
# Template file for 'python-astroid'
pkgname=python-astroid
version=1.6.6
revision=1
revision=2
archs=noarch
wrksrc="astroid-${version}"
build_style=python-module
build_style=python2-module
pycompile_module="astroid"
hostmakedepends="python-setuptools python3-setuptools"
hostmakedepends="python-setuptools"
depends="python-six python-lazy-object-proxy python-wrapt
python-backports.functools_lru_cache python-enum34 python-singledispatch"
short_desc="Abstract syntax tree for Python2"
@ -20,13 +20,3 @@ post_install() {
# no tests
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/astroid/tests
}
python3-astroid_package() {
archs=noarch
pycompile_module="astroid"
depends="python3-six python3-lazy-object-proxy python3-wrapt"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}

View File

@ -1 +0,0 @@
python-astroid

View File

@ -0,0 +1,21 @@
# Template file for 'python3-astroid'
pkgname=python3-astroid
version=2.2.5
revision=1
archs=noarch
wrksrc="astroid-${version}"
build_style=python3-module
pycompile_module="astroid"
hostmakedepends="python3-setuptools"
depends="python3-six python3-lazy-object-proxy python3-wrapt"
short_desc="Abstract syntax tree for Python3"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/PyCQA/astroid"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
distfiles="${PYPI_SITE}/a/astroid/astroid-${version}.tar.gz"
checksum=6560e1e1749f68c64a4b5dee4e091fce798d2f0d84ebe638cf0e0585a343acf4
post_install() {
# no tests
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/astroid/tests
}