python-sqlparse: rebuild for Python 3.5
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
parent
dfa51b3a62
commit
973df1f79b
2 changed files with 17 additions and 11 deletions
|
@ -1,12 +1,11 @@
|
|||
# Template file for 'python-sqlparse'
|
||||
pkgname=python-sqlparse
|
||||
version=0.2.1
|
||||
revision=1
|
||||
revision=2
|
||||
noarch=yes
|
||||
build_style=python-module
|
||||
wrksrc="sqlparse-${version}"
|
||||
python_versions="2.7 3.4"
|
||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||
hostmakedepends="python-setuptools python3-setuptools"
|
||||
depends="python-setuptools"
|
||||
pycompile_module="sqlparse"
|
||||
short_desc="Non-validating SQL parser for Python2"
|
||||
|
@ -15,17 +14,23 @@ homepage="https://github.com/andialbrecht/sqlparse"
|
|||
license="3-clause-BSD"
|
||||
distfiles="${PYPI_SITE}/s/sqlparse/sqlparse-${version}.tar.gz"
|
||||
checksum=1c98a2bdffe67f1bb817b72a7ba4d38be592e0f07c5acea4adebcec12c4377d1
|
||||
alternatives="sqlparse:sqlformat:/usr/bin/sqlformat2.7"
|
||||
alternatives="sqlparse:sqlformat:/usr/bin/sqlformat2"
|
||||
|
||||
python3.4-sqlparse_package() {
|
||||
python3-sqlparse_package() {
|
||||
noarch=yes
|
||||
depends="python3.4-setuptools"
|
||||
pycompile_version="3.4"
|
||||
depends="python3-setuptools"
|
||||
pycompile_module="sqlparse"
|
||||
short_desc="${short_desc/Python2/Python3.4}"
|
||||
alternatives="sqlparse:sqlformat:/usr/bin/sqlformat3.4"
|
||||
replaces="python3.4-sqlparse>=0"
|
||||
short_desc="${short_desc/Python2/Python3}"
|
||||
alternatives="sqlparse:sqlformat:/usr/bin/sqlformat3"
|
||||
pkg_install() {
|
||||
vmove usr/bin/sqlformat3.4
|
||||
vmove usr/lib/python3.4
|
||||
vmove usr/bin/sqlformat3
|
||||
vmove usr/lib/python3*
|
||||
}
|
||||
}
|
||||
python3.4-sqlparse_package() {
|
||||
noarch=yes
|
||||
build_style=meta
|
||||
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
||||
depends="python3-sqlparse>=${version}_${revision}"
|
||||
}
|
||||
|
|
1
srcpkgs/python3-sqlparse
Symbolic link
1
srcpkgs/python3-sqlparse
Symbolic link
|
@ -0,0 +1 @@
|
|||
python-sqlparse
|
Loading…
Reference in a new issue