flake8: rebuild for Python 3.5
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
parent
481eb6b5e7
commit
f42ccd8b38
2 changed files with 18 additions and 12 deletions
|
@ -1,12 +1,11 @@
|
||||||
# Template file for 'flake8'
|
# Template file for 'flake8'
|
||||||
pkgname=flake8
|
pkgname=flake8
|
||||||
version=2.6.2
|
version=2.6.2
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
python_versions="2.7 3.4"
|
|
||||||
pycompile_module="flake8"
|
pycompile_module="flake8"
|
||||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
depends="python-setuptools pycodestyle pyflakes mccabe"
|
depends="python-setuptools pycodestyle pyflakes mccabe"
|
||||||
short_desc="The modular source code checker: pep8, pyflakes, mccabe (Python2)"
|
short_desc="The modular source code checker: pep8, pyflakes, mccabe (Python2)"
|
||||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
|
@ -14,7 +13,7 @@ homepage="https://gitlab.com/pycqa/flake8"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
distfiles="${PYPI_SITE}/f/flake8/flake8-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/f/flake8/flake8-${version}.tar.gz"
|
||||||
checksum=231cd86194aaec4bdfaa553ae1a1cd9b7b4558332fbc10136c044940d587a778
|
checksum=231cd86194aaec4bdfaa553ae1a1cd9b7b4558332fbc10136c044940d587a778
|
||||||
alternatives="flake8:flake8:/usr/bin/flake82.7"
|
alternatives="flake8:flake8:/usr/bin/flake82"
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
# remove all caps
|
# remove all caps
|
||||||
|
@ -24,17 +23,23 @@ post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
python3.4-flake8_package() {
|
python3-flake8_package() {
|
||||||
noarch=yes
|
noarch=yes
|
||||||
pycompile_version="3.4"
|
|
||||||
pycompile_module="flake8"
|
pycompile_module="flake8"
|
||||||
depends="python3.4-setuptools python3.4-pycodestyle python3.4-pyflakes
|
replaces="python3.4-flake8>=0"
|
||||||
python3.4-mccabe"
|
depends="python3-setuptools python3-pycodestyle python3-pyflakes
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
python3-mccabe"
|
||||||
alternatives="flake8:flake8:/usr/bin/flake83.4"
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
|
alternatives="flake8:flake8:/usr/bin/flake83"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/*3.4
|
vmove usr/bin/*3
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3*
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
python3.4-flake8_package() {
|
||||||
|
noarch=yes
|
||||||
|
build_style=meta
|
||||||
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
||||||
|
depends="python3-flake8>=${version}_${revision}"
|
||||||
|
}
|
||||||
|
|
1
srcpkgs/python3-flake8
Symbolic link
1
srcpkgs/python3-flake8
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
flake8
|
Loading…
Add table
Add a link
Reference in a new issue