Commit fd68f1d9 authored by Francesco Colista's avatar Francesco Colista

community/py-raven: moved from testing, improved APKBUILD, upgraded to 5.24.3

parent ea7457dd
......@@ -2,14 +2,14 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-raven
_pkgname=raven-python
pkgver=5.23.0
pkgrel=1
pkgver=5.24.3
pkgrel=0
pkgdesc="Python client for Sentry"
url="http://pypi.python.org/pypi/raven"
arch="noarch"
license="BSD"
depends=""
makedepends="py-setuptools python-dev python3-dev py2-pytest py3-pytest"
makedepends="py-setuptools python2-dev python3-dev py2-pytest py3-pytest"
install=""
subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
source="$pkgname-$pkgver.tar.gz::https://github.com/getsentry/$_pkgname/archive/$pkgver.tar.gz"
......@@ -18,37 +18,31 @@ builddir="$srcdir"/$_pkgname-$pkgver
build() {
cd "$builddir"
python setup.py build || return 1
python2 setup.py build || return 1
python3 setup.py build || return 1
}
package() {
cd "$builddir"
python setup.py install --root=$pkgdir/ --optimize=1 || return 1
python3 setup.py install --root=$pkgdir/ --optimize=1 || return 1
mkdir -p "$pkgdir"
}
_py() {
local python=$1
pkgdesc="$pkgdesc - $python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
local dir=$($python -c 'import sysconfig; print(sysconfig.get_path("stdlib"))')
mkdir -p "$subpkgdir"${dir}
mv "$pkgdir"${dir}/* "$subpkgdir"${dir}
local python=$1
pkgdesc="$pkgdesc - $python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
_py2() {
_py python2
replaces="$pkgname"
_py python2
replaces="$pkgname"
}
_py3() {
_py python3
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/raven "$subpkgdir"/usr/bin
_py python3
}
md5sums="7c99202d726c4380c5032cefb6af442c py-raven-5.23.0.tar.gz"
sha256sums="31329cfb1e24252641f6fc671c123fe70488b20d783a2c6119b0e231b563e21c py-raven-5.23.0.tar.gz"
sha512sums="798277ec7828d73745fb7e73e927fc9644a9864fe1016e4ae8b949749e9ef1629407ca648533c53ea2ed0ef24f4b80f8a7d10cabd98190dea946c72e1d232855 py-raven-5.23.0.tar.gz"
md5sums="b5611aff586a75066904f581775c33ab py-raven-5.24.3.tar.gz"
sha256sums="bf3bfc9df6b8772676140b0e0bfc0862abb63c5bb95239ff396fbd25cc7ec194 py-raven-5.24.3.tar.gz"
sha512sums="7759cf45e133995fde0e9fd13bf7dfe1a7deb8e30c3e88b72f593fa277afd361d22a2eac55956a2bfc45ec9a0e672c15ff881558ab63fc3a4a6951a318ef0f57 py-raven-5.24.3.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