diff options
author | Bruno Cichon <ebrasca@librepanther.com> | 2018-10-01 01:51:29 +0200 |
---|---|---|
committer | Bruno Cichon <ebrasca@librepanther.com> | 2018-10-01 01:51:29 +0200 |
commit | 9bdcd4c3d22da95e94780454614436082e0eea7d (patch) | |
tree | c8755fe8c20be0043d67099bfb357c904c513cff /pcr-testing/python-falcon | |
parent | 56f955aca6231693fe797de4793f77ed58ab116e (diff) | |
parent | 60149d4be1633dd72cba35fcfc29bcf9f117e6fd (diff) | |
download | abslibre-9bdcd4c3d22da95e94780454614436082e0eea7d.tar.gz abslibre-9bdcd4c3d22da95e94780454614436082e0eea7d.tar.bz2 abslibre-9bdcd4c3d22da95e94780454614436082e0eea7d.zip |
Merge branch 'master' of git://git.parabola.nu/abslibre/abslibre
Diffstat (limited to 'pcr-testing/python-falcon')
-rw-r--r-- | pcr-testing/python-falcon/PKGBUILD | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/pcr-testing/python-falcon/PKGBUILD b/pcr-testing/python-falcon/PKGBUILD new file mode 100644 index 000000000..bbbfa54dc --- /dev/null +++ b/pcr-testing/python-falcon/PKGBUILD @@ -0,0 +1,63 @@ +# Maintainer: bill-auger <bill-auger@programmer.net> +# Maintainer (AUR): tocic <tocic at protonmail dot ch> +# Contributor: Carl George < arch at cgtx dot us > + + +#_check=1 + +pkgname=('python-falcon' 'python2-falcon') +pkgver=1.4.1 +pkgrel=1 +pkgdesc="An unladen web framework for building APIs and app backends." +arch=('i686' 'x86_64') +url=https://falconframework.org +license=('Apache') + +makedepends=('cython' 'python-setuptools' 'cython2' 'python2-setuptools') +[[ -v ${_run_check} ]] && checkdepends=('python-pytest>=3.0.1' 'python-jsonschema' + 'python-msgpack' 'python-requests' + 'python-six>=1.4.0' 'python-testtools' 'python-yaml' + 'python2-pytest>=3.0.1' 'python2-jsonschema' + 'python2-msgpack' 'python2-requests' + 'python2-six>=1.4.0' 'python2-testtools' 'python2-yaml') + +_upstream_name='falcon' +_release=${_upstream_name}-${pkgver} +source=(https://files.pythonhosted.org/packages/source/${_upstream_name:0:1}/${_upstream_name}/${_release}.tar.gz) +sha256sums=('3981f609c0358a9fcdb25b0e7fab3d9e23019356fb429c635ce4133135ae1bc4') + + +build() +{ + cd "${srcdir}/${_release}" + + python setup.py build + python2 setup.py build +} + +check() +{ + cd "${srcdir}/${_release}" + + if [[ -v _check ]] ; then pytest tests ; pytest2 tests ; fi ; +} + +package_python-falcon() +{ + depends=('python-six>=1.4.0' 'python-mimeparse>=1.5.2') + + cd "${srcdir}/${_release}" + + python setup.py install --skip-build --root="${pkgdir}" --optimize=1 +} + +package_python2-falcon() +{ + depends=('python2-six>=1.4.0' 'python2-mimeparse>=1.5.2') + + cd "${srcdir}/${_release}" + + python2 setup.py install --skip-build --root="${pkgdir}" --optimize=1 + mv "${pkgdir}/usr/bin/falcon-bench" "${pkgdir}/usr/bin/falcon-bench-python2" + mv "${pkgdir}/usr/bin/falcon-print-routes" "${pkgdir}/usr/bin/falcon-print-routes-python2" +} |