From efc22702de0ff7fa08783283555af19359eafe8b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 7 Aug 2018 08:05:47 +0200 Subject: recompile all python packages --- python-oauth2/PKGBUILD | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'python-oauth2') diff --git a/python-oauth2/PKGBUILD b/python-oauth2/PKGBUILD index d47f0567..f631a810 100644 --- a/python-oauth2/PKGBUILD +++ b/python-oauth2/PKGBUILD @@ -3,11 +3,19 @@ pkgbase=python-oauth2 _pkgname=python-oauth2 pkgname=(python-oauth2 python2-oauth2) pkgver=1.1.0 -pkgrel=1 +pkgrel='2' pkgdesc='framework that aims at making it easy to provide authentication via OAuth 2.0 within an application stack/' url='https://github.com/wndhydrnt/python-oauth2/' arch=('any') license=('MIT') +_deppy2=( + 'python2>=2.7' + 'python2<2.8' +) +_deppy=( + 'python>=3.7' + 'python<3.8' +) _depends=( 'python-mock' 'python-mysql-connector' @@ -24,6 +32,8 @@ _optdepends=( 'python-redis' ) makedepends=( + "${_deppy[@]}" + "${_deppy2[@]}" "${_depends[@]}" "${_depends[@]/python/python2}" "${_makedepends[@]}" @@ -66,10 +76,8 @@ check() { } package_python-oauth2() { - _pyVer=$(python -V 2>&1 | cut -d' ' -f2 | cut -d. -f2) depends=( - "python>=3.${_pyVer}" - "python<3.$((_pyVer+1))" + "${_deppy[@]}" "${_depends[@]}" ) optdepends=("${_optdepends[@]}") @@ -80,10 +88,8 @@ package_python-oauth2() { } package_python2-oauth2() { - _pyVer=$(python2 -V 2>&1 | cut -d' ' -f2 | cut -d. -f2) depends=( - "python2>=2.${_pyVer}" - "python2<2.$((_pyVer+1))" + "${_deppy2[@]}" "${_depends[@]/python/python2}" ) optdepends=("${_optdepends[@]/python/python2}") -- cgit v1.2.3-54-g00ecf