python-requests: rebuild for Python 3.5
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
parent
d801fd1b66
commit
ba7d7b1613
|
@ -1,14 +1,13 @@
|
|||
# Template file for 'python-requests'
|
||||
pkgname=python-requests
|
||||
version=2.11.1
|
||||
revision=1
|
||||
revision=2
|
||||
noarch=yes
|
||||
wrksrc="requests-${version}"
|
||||
build_style="python-module"
|
||||
python_versions="2.7 3.4"
|
||||
hostmakedepends="
|
||||
python-setuptools python3.4-setuptools python-chardet python3.4-chardet
|
||||
python-urllib3 python3.4-urllib3"
|
||||
python-setuptools python3-setuptools python-chardet python3-chardet
|
||||
python-urllib3 python3-urllib3"
|
||||
makedepends="${hostmakedepends}"
|
||||
depends="python-chardet python-urllib3 ca-certificates"
|
||||
pycompile_module="requests"
|
||||
|
@ -33,13 +32,19 @@ post_install() {
|
|||
done
|
||||
}
|
||||
|
||||
python3.4-requests_package() {
|
||||
python3-requests_package() {
|
||||
noarch=yes
|
||||
depends="python3.4-chardet python3.4-urllib3 ca-certificates"
|
||||
pycompile_version="3.4"
|
||||
pycompile_module="requests"
|
||||
short_desc="${short_desc/Python2/Python3.4}"
|
||||
replaces="python3.4-requests>=0"
|
||||
depends="python3-chardet python3-urllib3 ca-certificates"
|
||||
short_desc="${short_desc/Python2/Python3}"
|
||||
pkg_install() {
|
||||
vmove usr/lib/python3.4
|
||||
vmove usr/lib/python3*
|
||||
}
|
||||
}
|
||||
python3.4-requests_package() {
|
||||
noarch=yes
|
||||
build_style=meta
|
||||
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
||||
depends="python3-requests>=${version}_${revision}"
|
||||
}
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
python-requests
|
Loading…
Reference in New Issue