mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-27 16:02:55 +02:00
pycodestyle: rebuild for Python 3.5
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
parent
61d93d0270
commit
071f46de03
2 changed files with 17 additions and 11 deletions
|
@ -1,12 +1,11 @@
|
||||||
# Template file for 'pycodestyle'
|
# Template file for 'pycodestyle'
|
||||||
pkgname=pycodestyle
|
pkgname=pycodestyle
|
||||||
version=2.0.0
|
version=2.0.0
|
||||||
revision=2
|
revision=3
|
||||||
noarch=yes
|
noarch=yes
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
python_versions="2.7 3.4"
|
|
||||||
pycompile_module="pycodestyle.py"
|
pycompile_module="pycodestyle.py"
|
||||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
depends="python-setuptools"
|
depends="python-setuptools"
|
||||||
short_desc="Python2 style guide checker (formerly called pep8)"
|
short_desc="Python2 style guide checker (formerly called pep8)"
|
||||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||||
|
@ -14,7 +13,7 @@ homepage="https://github.com/PyCQA/pycodestyle"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
distfiles="${PYPI_SITE}/p/pycodestyle/pycodestyle-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/p/pycodestyle/pycodestyle-${version}.tar.gz"
|
||||||
checksum=37f0420b14630b0eaaf452978f3a6ea4816d787c3e6dcbba6fb255030adae2e7
|
checksum=37f0420b14630b0eaaf452978f3a6ea4816d787c3e6dcbba6fb255030adae2e7
|
||||||
alternatives="pycodestyle:pycodestyle:/usr/bin/pycodestyle2.7"
|
alternatives="pycodestyle:pycodestyle:/usr/bin/pycodestyle2"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# fix permissions
|
# fix permissions
|
||||||
|
@ -25,16 +24,22 @@ post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
python3.4-pycodestyle_package() {
|
python3-pycodestyle_package() {
|
||||||
noarch=yes
|
noarch=yes
|
||||||
pycompile_version="3.4"
|
|
||||||
pycompile_module="pycodestyle.py"
|
pycompile_module="pycodestyle.py"
|
||||||
depends="python3.4-setuptools"
|
replaces="python3.4-pycodestyle>=0"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
depends="python3-setuptools"
|
||||||
alternatives="pycodestyle:pycodestyle:/usr/bin/pycodestyle3.4"
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
|
alternatives="pycodestyle:pycodestyle:/usr/bin/pycodestyle3"
|
||||||
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-pycodestyle_package() {
|
||||||
|
noarch=yes
|
||||||
|
build_style=meta
|
||||||
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
||||||
|
depends="python3-pycodestyle>=${version}_${revision}"
|
||||||
|
}
|
||||||
|
|
1
srcpkgs/python3-pycodestyle
Symbolic link
1
srcpkgs/python3-pycodestyle
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
pycodestyle
|
Loading…
Add table
Reference in a new issue