From dd09ef817f790bcf0ca8aa4be5d0bf8c45a92ee0 Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Tue, 18 May 2021 09:01:16 +0200 Subject: [PATCH] python3-pycodestyle: update to 2.7.0 * adopt * drop python-pycodestyle * fix tests --- srcpkgs/python-pycodestyle | 1 + srcpkgs/python-pycodestyle/template | 30 --------------- srcpkgs/python3-pycodestyle | 1 - srcpkgs/python3-pycodestyle/template | 37 +++++++++++++++++++ .../update | 0 5 files changed, 38 insertions(+), 31 deletions(-) create mode 120000 srcpkgs/python-pycodestyle delete mode 100644 srcpkgs/python-pycodestyle/template delete mode 120000 srcpkgs/python3-pycodestyle create mode 100644 srcpkgs/python3-pycodestyle/template rename srcpkgs/{python-pycodestyle => python3-pycodestyle}/update (100%) diff --git a/srcpkgs/python-pycodestyle b/srcpkgs/python-pycodestyle new file mode 120000 index 00000000000..d970ab6f8dc --- /dev/null +++ b/srcpkgs/python-pycodestyle @@ -0,0 +1 @@ +python3-pycodestyle \ No newline at end of file diff --git a/srcpkgs/python-pycodestyle/template b/srcpkgs/python-pycodestyle/template deleted file mode 100644 index 157a5d5f9fc..00000000000 --- a/srcpkgs/python-pycodestyle/template +++ /dev/null @@ -1,30 +0,0 @@ -# Template file for 'python-pycodestyle' -pkgname=python-pycodestyle -version=2.6.0 -revision=3 -wrksrc="pycodestyle-${version}" -build_style=python-module -hostmakedepends="python-setuptools python3-setuptools" -depends="python-setuptools" -short_desc="Python2 style guide checker (formerly called pep8)" -maintainer="Alessio Sergi " -license="MIT" -homepage="https://github.com/PyCQA/pycodestyle" -distfiles="${PYPI_SITE}/p/pycodestyle/pycodestyle-${version}.tar.gz" -checksum=c58a7d2815e0e8d7972bf1803331fb0152f867bd89adf8a01dfd55085434192e -alternatives="pycodestyle:pycodestyle:/usr/bin/pycodestyle2" - -post_install() { - vlicense LICENSE -} - -python3-pycodestyle_package() { - depends="python3-setuptools" - short_desc="${short_desc/Python2/Python3}" - alternatives="pycodestyle:pycodestyle:/usr/bin/pycodestyle3" - pkg_install() { - vmove usr/bin/*3 - vmove usr/lib/python3* - vlicense LICENSE - } -} diff --git a/srcpkgs/python3-pycodestyle b/srcpkgs/python3-pycodestyle deleted file mode 120000 index f253ce6d35f..00000000000 --- a/srcpkgs/python3-pycodestyle +++ /dev/null @@ -1 +0,0 @@ -python-pycodestyle \ No newline at end of file diff --git a/srcpkgs/python3-pycodestyle/template b/srcpkgs/python3-pycodestyle/template new file mode 100644 index 00000000000..8fafc98015d --- /dev/null +++ b/srcpkgs/python3-pycodestyle/template @@ -0,0 +1,37 @@ +# Template file for 'python3-pycodestyle' +pkgname=python3-pycodestyle +version=2.7.0 +revision=1 +wrksrc="pycodestyle-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3" +short_desc="Python style guide checker (formerly called pep8)" +maintainer="Michal Vasilek " +license="MIT" +homepage="https://github.com/PyCQA/pycodestyle" +distfiles="${PYPI_SITE}/p/pycodestyle/pycodestyle-${version}.tar.gz" +checksum=c389c1d06bf7904078ca03399a4816f974a1d590090fecea0c63ec26ebaf1cef + +do_check() { + # from tox.ini and alpine + python3 -m pycodestyle --statistics pycodestyle.py + python3 -m pycodestyle --max-doc-length=72 --testsuite testsuite + python3 -m pycodestyle --max-doc-length=72 --doctest + python3 -m unittest discover testsuite -vv + + python -m pycodestyle --statistics pycodestyle.py + python -m pycodestyle --max-doc-length=72 --testsuite testsuite + python -m pycodestyle --max-doc-length=72 --doctest + python -m unittest discover testsuite -vv +} + +post_install() { + vlicense LICENSE +} + +python-pycodestyle_package() { + build_style=meta + short_desc+=" (transitional dummy package)" + depends="python3-pycodestyle>=${version}_${revision}" +} diff --git a/srcpkgs/python-pycodestyle/update b/srcpkgs/python3-pycodestyle/update similarity index 100% rename from srcpkgs/python-pycodestyle/update rename to srcpkgs/python3-pycodestyle/update