split package python{2,3}
This commit is contained in:
parent
ea45b4483b
commit
16c6075e4f
2 changed files with 35 additions and 24 deletions
19
.SRCINFO
19
.SRCINFO
|
@ -5,19 +5,20 @@ pkgbase = python2-flask-restplus
|
||||||
url = http://pypi.python.org/pypi/Flask-Restplus/
|
url = http://pypi.python.org/pypi/Flask-Restplus/
|
||||||
arch = any
|
arch = any
|
||||||
license = BSD
|
license = BSD
|
||||||
checkdepends = python2-blinker
|
source = https://pypi.io/packages/source/f/flask-restplus/flask-restplus-0.10.1.tar.gz
|
||||||
checkdepends = python2-rednose
|
sha1sums = d6162efccd7e7c794f435252adcf78a262cfa969
|
||||||
checkdepends = python2-nose
|
|
||||||
checkdepends = python2-mock
|
pkgname = python2-flask-restplus
|
||||||
checkdepends = python2-tzlocal
|
|
||||||
makedepends = python2-setuptools
|
|
||||||
depends = python2-flask>=0.8
|
depends = python2-flask>=0.8
|
||||||
depends = python2-six>=1.3.0
|
depends = python2-six>=1.3.0
|
||||||
depends = python2-jsonschema
|
depends = python2-jsonschema
|
||||||
depends = python2-pytz
|
depends = python2-pytz
|
||||||
depends = python2-aniso8601>=0.82
|
depends = python2-aniso8601>=0.82
|
||||||
source = https://pypi.io/packages/source/f/flask-restplus/flask-restplus-0.10.1.tar.gz
|
|
||||||
sha1sums = d6162efccd7e7c794f435252adcf78a262cfa969
|
|
||||||
|
|
||||||
pkgname = python2-flask-restplus
|
pkgname = python-flask-restplus
|
||||||
|
depends = python-flask>=0.8
|
||||||
|
depends = python-six>=1.3.0
|
||||||
|
depends = python-jsonschema
|
||||||
|
depends = python-pytz
|
||||||
|
depends = python-aniso8601>=0.82
|
||||||
|
|
||||||
|
|
40
PKGBUILD
40
PKGBUILD
|
@ -1,33 +1,43 @@
|
||||||
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
|
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
|
||||||
pkgname='python2-flask-restplus'
|
_pythonmod=flask-restplus
|
||||||
pkgver='0.10.1'
|
pkgname=('python2-flask-restplus' 'python-flask-restplus')
|
||||||
pkgrel='1'
|
pkgbase='python2-flask-restplus'
|
||||||
|
pkgver=0.10.1
|
||||||
|
pkgrel=1
|
||||||
pkgdesc='custom actions for flask to help manage your application'
|
pkgdesc='custom actions for flask to help manage your application'
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url='http://pypi.python.org/pypi/Flask-Restplus/'
|
url='http://pypi.python.org/pypi/Flask-Restplus/'
|
||||||
license=('BSD')
|
license=('BSD')
|
||||||
depends=('python2-flask>=0.8' 'python2-six>=1.3.0' 'python2-jsonschema' 'python2-pytz' 'python2-aniso8601>=0.82')
|
|
||||||
checkdepends=('python2-blinker' 'python2-rednose' 'python2-nose' 'python2-mock' 'python2-tzlocal')
|
|
||||||
makedepends=('python2-setuptools')
|
|
||||||
|
|
||||||
source=("https://pypi.io/packages/source/f/flask-restplus/flask-restplus-${pkgver}.tar.gz")
|
source=("https://pypi.io/packages/source/f/flask-restplus/flask-restplus-${pkgver}.tar.gz")
|
||||||
sha1sums=('d6162efccd7e7c794f435252adcf78a262cfa969')
|
sha1sums=('d6162efccd7e7c794f435252adcf78a262cfa969')
|
||||||
|
|
||||||
build() {
|
check_python2-flask-restplus() {
|
||||||
cd "flask-restplus-${pkgver}"
|
checkdepends=('python2-blinker' 'python2-rednose' 'python2-nose' 'python2-mock' 'python2-tzlocal')
|
||||||
python2 ./setup.py build
|
cd ${srcdir}/${_pythonmod}-$pkgver
|
||||||
}
|
|
||||||
|
|
||||||
check() {
|
|
||||||
cd "flask-restplus-${pkgver}"
|
|
||||||
python2 ./setup.py test
|
python2 ./setup.py test
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package_python2-flask-restplus() {
|
||||||
cd "flask-restplus-${pkgver}"
|
depends=('python2-flask>=0.8' 'python2-six>=1.3.0' 'python2-jsonschema' 'python2-pytz' 'python2-aniso8601>=0.82')
|
||||||
|
cd ${srcdir}/${_pythonmod}-$pkgver
|
||||||
python2 ./setup.py install --root="${pkgdir}" --prefix="/usr"
|
python2 ./setup.py install --root="${pkgdir}" --prefix="/usr"
|
||||||
|
|
||||||
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}"
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check_python-flask-restplus() {
|
||||||
|
checkdepends=('python-blinker' 'python-rednose' 'python-nose' 'python-mock' 'python-tzlocal')
|
||||||
|
cd ${srcdir}/${_pythonmod}-$pkgver
|
||||||
|
python ./setup.py test
|
||||||
|
}
|
||||||
|
|
||||||
|
package_python-flask-restplus() {
|
||||||
|
depends=('python-flask>=0.8' 'python-six>=1.3.0' 'python-jsonschema' 'python-pytz' 'python-aniso8601>=0.82')
|
||||||
|
cd ${srcdir}/${_pythonmod}-$pkgver
|
||||||
|
python ./setup.py install --root="${pkgdir}" --prefix="/usr"
|
||||||
|
|
||||||
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}"
|
||||||
|
}
|
||||||
|
|
||||||
# vim:set ts=2 sw=2 et:
|
# vim:set ts=2 sw=2 et:
|
||||||
|
|
Loading…
Reference in a new issue