From e288d54c79e1587b141ea9604f72c4b1b3cef186 Mon Sep 17 00:00:00 2001 From: Paper Mountain Studio Date: Sun, 28 Jul 2019 13:51:09 +0200 Subject: [PATCH 1/2] python3-pylint: update to 2.3.1, separate from python2 version --- srcpkgs/pylint/template | 25 --------------- srcpkgs/python3-pylint | 1 - srcpkgs/python3-pylint/template | 57 +++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+), 26 deletions(-) delete mode 120000 srcpkgs/python3-pylint create mode 100644 srcpkgs/python3-pylint/template diff --git a/srcpkgs/pylint/template b/srcpkgs/pylint/template index 6119b9191c3..a8d1c661066 100644 --- a/srcpkgs/pylint/template +++ b/srcpkgs/pylint/template @@ -46,28 +46,3 @@ post_install() { vsconf elisp/pylint.el vsconf elisp/pylint-flymake.el } - -python3-pylint_package() { - alternatives=" - pylint:epylint:/usr/bin/epylint3 - pylint:pylint:/usr/bin/pylint3 - pylint:pyreverse:/usr/bin/pyreverse3 - pylint:symilar:/usr/bin/symilar3 - pylint:epylint.1:/usr/share/man/man1/epylint3.1 - pylint:pylint.1:/usr/share/man/man1/pylint3.1 - pylint:pyreverse.1:/usr/share/man/man1/pyreverse3.1 - pylint:symilar.1:/usr/share/man/man1/symilar3.1" - archs=noarch - pycompile_module="pylint" - depends="python3-setuptools python3-astroid python3-six python3-isort python3-mccabe" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove usr/bin/*3 - vmove usr/lib/python3* - vmove usr/share/man/man1/*3.1 - vsconf examples/pylintrc - vsconf examples/pylintrc_camelcase - vsconf elisp/pylint.el - vsconf elisp/pylint-flymake.el - } -} diff --git a/srcpkgs/python3-pylint b/srcpkgs/python3-pylint deleted file mode 120000 index 54b18e249c1..00000000000 --- a/srcpkgs/python3-pylint +++ /dev/null @@ -1 +0,0 @@ -pylint \ No newline at end of file diff --git a/srcpkgs/python3-pylint/template b/srcpkgs/python3-pylint/template new file mode 100644 index 00000000000..2ad20b9e558 --- /dev/null +++ b/srcpkgs/python3-pylint/template @@ -0,0 +1,57 @@ +# Template file for 'pylint' +pkgname=pylint +version=2.3.1 +revision=1 +archs=noarch +wrksrc="pylint-${version}" +build_style=python3-module +pycompile_module="pylint" +hostmakedepends="python-setuptools python3-setuptools" +depends="python3-setuptools python3-astroid python3-six python3-isort python3-mccabe" +short_desc="Python3 code static checker" +maintainer="Alessio Sergi " +license="GPL-2.0-or-later" +homepage="http://www.pylint.org/" +distfiles="${PYPI_SITE}/p/pylint/pylint-${version}.tar.gz" +checksum=723e3db49555abaf9bf79dc474c6b9e2935ad82230b10c1138a71ea41ac0fff1 + +alternatives=" + pylint:epylint:/usr/bin/epylint3 + pylint:pylint:/usr/bin/pylint3 + pylint:pyreverse:/usr/bin/pyreverse3 + pylint:symilar:/usr/bin/symilar3 + pylint:epylint.1:/usr/share/man/man1/epylint3.1 + pylint:pylint.1:/usr/share/man/man1/pylint3.1 + pylint:pyreverse.1:/usr/share/man/man1/pyreverse3.1 + pylint:symilar.1:/usr/share/man/man1/symilar3.1" + +pre_build() { + sed -i '/setup_requires=/d' setup.py +} + +pkg_install() { + vmove usr/bin/*3 + vmove usr/lib/python3* + vmove usr/share/man/man1/*3.1 + vsconf examples/pylintrc + vsconf examples/pylintrc_camelcase + vsconf elisp/pylint.el + vsconf elisp/pylint-flymake.el +} + +post_install() { + # no tests + rm -rf ${DESTDIR}/usr/lib/python*/site-packages/pylint/test + + # create versioned man pages + for f in epylint pylint pyreverse symilar; do + vman man/${f}.1 ${f}2.1 + vman man/${f}.1 ${f}3.1 + done + + # install example config and emacs files + vsconf examples/pylintrc + vsconf examples/pylintrc_camelcase + vsconf elisp/pylint.el + vsconf elisp/pylint-flymake.el +} From 61eb8fa08c500404e310472f6f6cebb22bc71e68 Mon Sep 17 00:00:00 2001 From: Paper Mountain Studio Date: Sun, 28 Jul 2019 13:52:22 +0200 Subject: [PATCH 2/2] python3-astroid: update to 2.2.5, separate from python2 version --- srcpkgs/pylint/template | 2 +- srcpkgs/python-astroid/template | 12 +----------- srcpkgs/python3-astroid | 1 - srcpkgs/python3-astroid/template | 24 ++++++++++++++++++++++++ 4 files changed, 26 insertions(+), 13 deletions(-) delete mode 120000 srcpkgs/python3-astroid create mode 100644 srcpkgs/python3-astroid/template diff --git a/srcpkgs/pylint/template b/srcpkgs/pylint/template index a8d1c661066..a195b588bfd 100644 --- a/srcpkgs/pylint/template +++ b/srcpkgs/pylint/template @@ -12,8 +12,8 @@ depends="python-setuptools python-astroid python-six python-isort python-mccabe python-singledispatch" short_desc="Python2 code static checker" maintainer="Alessio Sergi " -homepage="http://www.pylint.org/" license="GPL-2.0-or-later" +homepage="http://www.pylint.org/" distfiles="${PYPI_SITE}/p/pylint/pylint-${version}.tar.gz" checksum=ee1e85575587c5b58ddafa25e1c1b01691ef172e139fc25585e5d3f02451da93 diff --git a/srcpkgs/python-astroid/template b/srcpkgs/python-astroid/template index 62dd495c995..3c3ba3c50d8 100644 --- a/srcpkgs/python-astroid/template +++ b/srcpkgs/python-astroid/template @@ -11,8 +11,8 @@ 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" maintainer="Alessio Sergi " -homepage="https://github.com/PyCQA/astroid" license="GPL-2.0-or-later, LGPL-2.1-or-later" +homepage="https://github.com/PyCQA/astroid" distfiles="${PYPI_SITE}/a/astroid/astroid-${version}.tar.gz" checksum=d25869fc7f44f1d9fb7d24fd7ea0639656f5355fc3089cd1f3d18c6ec6b124c7 @@ -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..bf7938b3080 --- /dev/null +++ b/srcpkgs/python3-astroid/template @@ -0,0 +1,24 @@ +# 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 python3-typed-ast" +short_desc="Abstract syntax tree for Python3" +maintainer="Alessio Sergi " +license="GPL-2.0-or-later, LGPL-2.1-or-later" +homepage="https://github.com/PyCQA/astroid" +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 +} +pkg_install() { + vmove usr/lib/python3* +}