From 6125f04e721711049492df8c2a72abb6ab062d77 Mon Sep 17 00:00:00 2001 From: Helmut Pozimski Date: Sat, 14 Sep 2019 09:45:29 +0200 Subject: [PATCH] python-astroid: split off python3 package and update to 2.2.5 astroid 2.x does not support python2 any more --- srcpkgs/python-astroid/template | 16 +++------------- srcpkgs/python3-astroid | 1 - srcpkgs/python3-astroid/template | 21 +++++++++++++++++++++ 3 files changed, 24 insertions(+), 14 deletions(-) delete mode 120000 srcpkgs/python3-astroid create mode 100644 srcpkgs/python3-astroid/template diff --git a/srcpkgs/python-astroid/template b/srcpkgs/python-astroid/template index 62dd495c995..9da6aebae87 100644 --- a/srcpkgs/python-astroid/template +++ b/srcpkgs/python-astroid/template @@ -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* - } -} diff --git a/srcpkgs/python3-astroid b/srcpkgs/python3-astroid deleted file mode 120000 index 8ab3dd7a4e8..00000000000 --- a/srcpkgs/python3-astroid +++ /dev/null @@ -1 +0,0 @@ -python-astroid \ No newline at end of file diff --git a/srcpkgs/python3-astroid/template b/srcpkgs/python3-astroid/template new file mode 100644 index 00000000000..073697096b3 --- /dev/null +++ b/srcpkgs/python3-astroid/template @@ -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 " +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 +}