Commit 3fbdfbb8 authored by Joe Searle's avatar Joe Searle
Browse files

main/py3-six: drop py2

parent 9bf47ee8
Pipeline #530 passed with stages
in 1 minute and 50 seconds
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py-six
pkgname=py3-six
_pkgname=six
pkgver=1.12.0
pkgrel=1
pkgdesc="Python 2 and 3 compatibility library"
pkgrel=2
pkgdesc="Python3 compatibility library"
url="https://pypi.python.org/pypi/six"
arch="noarch"
license="MIT"
_py2_deps="py-enum34"
makedepends="python2-dev python3-dev py2-setuptools py3-setuptools $_py2_deps"
subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2"
makedepends="python3-dev py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/benjaminp/$_pkgname/archive/$pkgver.tar.gz"
replaces="py-six" # Backwards compatibility
provides="py-six=$pkgver-r$pkgrel" # Backwards compatibility
builddir="$srcdir/$_pkgname-$pkgver"
# circular dependency with pytest
......@@ -18,37 +18,16 @@ builddir="$srcdir/$_pkgname-$pkgver"
options="!check"
build() {
python2 setup.py build
python3 setup.py build
}
check() {
python2 -m pytest -rfsxX
python3 -m pytest -rfsxX
}
package() {
mkdir -p "$pkgdir"
}
_py() {
local python="$1"
pkgdesc="$pkgdesc (for $python)"
depends="$depends $python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
_py2() {
replaces="$pkgname"
depends="$depends $_py2_deps"
_py python2
}
_py3() {
_py python3
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="67f218ec591411b4a460e4e2744083b7e128440a50d006433cd85a7485b3f4bbf37830bee4cfd3e24194e4873f9ad251a62900e2f5fce7429d647b3df14543c3 py-six-1.12.0.tar.gz"
sha512sums="67f218ec591411b4a460e4e2744083b7e128440a50d006433cd85a7485b3f4bbf37830bee4cfd3e24194e4873f9ad251a62900e2f5fce7429d647b3df14543c3 py3-six-1.12.0.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment