diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 16:01:56 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 16:10:30 -0300 |
commit | cad62ee470f7a324ee33bd7b1106f726b0f15468 (patch) | |
tree | 4e9932767b1a308c27886a830bbfa2a08c61ea3a /community/py3-mysqlclient | |
parent | ccf57cd3270b3c3ef83d99ea10455b9df61be431 (diff) | |
download | aports-cad62ee470f7a324ee33bd7b1106f726b0f15468.tar.bz2 aports-cad62ee470f7a324ee33bd7b1106f726b0f15468.tar.xz |
community/py3-mysqlclient: drop py2
Diffstat (limited to 'community/py3-mysqlclient')
-rw-r--r-- | community/py3-mysqlclient/APKBUILD | 35 |
1 files changed, 8 insertions, 27 deletions
diff --git a/community/py3-mysqlclient/APKBUILD b/community/py3-mysqlclient/APKBUILD index 5d819e44e4..47429b489a 100644 --- a/community/py3-mysqlclient/APKBUILD +++ b/community/py3-mysqlclient/APKBUILD @@ -1,47 +1,28 @@ # Contributor: Carlo Landmeter <clandmeter@alpinelinux.org> # Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org> -pkgname=py-mysqlclient +pkgname=py3-mysqlclient pkgver=1.3.14 -pkgrel=1 +pkgrel=2 pkgdesc="MySQL database connector for Python (with py3 support)" url="https://mysqlclient.readthedocs.io/" arch="all" license="GPL-2.0" -depends="" -makedepends="python2-dev python3-dev py-setuptools mariadb-dev" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +makedepends="python3-dev py3-setuptools mariadb-dev" source="mysqlclient-python-$pkgver.tar.gz::https://github.com/PyMySQL/mysqlclient-python/archive/$pkgver.tar.gz" builddir="$srcdir/mysqlclient-python-$pkgver" +replaces="py-mysqlclient" # Backwards compatibility +provides="py-mysqlclient=$pkgver-r$pkgrel" # Backwards compatibility + build() { - cd "$builddir" - python2 setup.py build - python3 setup.py build + CFLAGS="$CFLAGS -I/usr/include/mysql" python3 setup.py build } check() { - cd "$builddir" - python2 setup.py test python3 setup.py test } package() { - mkdir -p "$pkgdir" -} - -_py2() { - _py python2 -} - -_py3() { - _py python3 -} - -_py() { - local python="$1" - pkgdesc="$pkgdesc (for $python)" - install_if="$pkgname=$pkgver-r$pkgrel $python" - cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" + python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="480e36f7d7b31851f2d50eb3f6f2e8009277e8c5fff8ea8e5d2a3bc2424a5f13735e6c1fa620d17383ac0dd5020440425fcf8781911c3360f752e344813a7ddb mysqlclient-python-1.3.14.tar.gz" |