From bbb38fc7e65a75215e411f48e3a29323e308ce33 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Fri, 24 Jun 2016 19:56:00 +0200 Subject: [PATCH] flake8: update to 2.6.0 Add python3.4 flavor. --- srcpkgs/flake8/template | 27 ++++++++++++++++++++++----- srcpkgs/python3.4-flake8 | 1 + 2 files changed, 23 insertions(+), 5 deletions(-) create mode 120000 srcpkgs/python3.4-flake8 diff --git a/srcpkgs/flake8/template b/srcpkgs/flake8/template index f2abcadb76a..72d5d9a7525 100644 --- a/srcpkgs/flake8/template +++ b/srcpkgs/flake8/template @@ -1,18 +1,20 @@ # Template file for 'flake8' pkgname=flake8 -version=2.5.5 +version=2.6.0 revision=1 noarch=yes build_style=python-module -hostmakedepends="python-setuptools" -depends="${hostmakedepends} pep8 pyflakes mccabe" +python_versions="2.7 3.4" pycompile_module="flake8" -short_desc="The modular source code checker: pep8, pyflakes, mccabe" +hostmakedepends="python-setuptools python3.4-setuptools" +depends="python-setuptools pycodestyle pyflakes mccabe" +short_desc="The modular source code checker: pep8, pyflakes, mccabe (Python2)" maintainer="Alessio Sergi " homepage="https://gitlab.com/pycqa/flake8" license="MIT" distfiles="${PYPI_SITE}/f/flake8/flake8-${version}.tar.gz" -checksum=326a54ace7878a5ad1538110f2145bc6a134df43fff290475fd4e7ba38a6deea +checksum=5ae018121a495edeb83097ba1bdd1a8481db24e1f0d54e8a78edb26ba0df82cf +alternatives="flake8:flake8:/usr/bin/flake82.7" pre_build() { # remove all caps @@ -21,3 +23,18 @@ pre_build() { post_install() { vlicense LICENSE } + +python3.4-flake8_package() { + noarch=yes + pycompile_version="3.4" + pycompile_module="flake8" + depends="python3.4-setuptools python3.4-pycodestyle python3.4-pyflakes + python3.4-mccabe" + short_desc="${short_desc/Python2/Python3.4}" + alternatives="flake8:flake8:/usr/bin/flake83.4" + pkg_install() { + vmove usr/bin/*3.4 + vmove usr/lib/python3.4 + vlicense LICENSE + } +} diff --git a/srcpkgs/python3.4-flake8 b/srcpkgs/python3.4-flake8 new file mode 120000 index 00000000000..1ae3ec61745 --- /dev/null +++ b/srcpkgs/python3.4-flake8 @@ -0,0 +1 @@ +flake8 \ No newline at end of file