[arch-commits] Commit in python-pecan/repos/community-any (PKGBUILD PKGBUILD)
Date: Tuesday, August 11, 2020 @ 12:46:26 Author: foxxx0 Revision: 674516 archrelease: copy trunk to community-any Added: python-pecan/repos/community-any/PKGBUILD (from rev 674515, python-pecan/trunk/PKGBUILD) Deleted: python-pecan/repos/community-any/PKGBUILD --+ PKGBUILD | 90 +++-- 1 file changed, 46 insertions(+), 44 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2020-08-11 12:46:22 UTC (rev 674515) +++ PKGBUILD2020-08-11 12:46:26 UTC (rev 674516) @@ -1,44 +0,0 @@ -# Maintainer: Thore Bödecker -# Contributor: Tim Meusel -pkgname="python-pecan" -_pkgname="${pkgname#python-}" -pkgdesc='A WSGI object-dispatching web framework, designed to be lean and fast with few dependencies.' -pkgver=1.3.3 -pkgrel=3 -arch=('any') -url='https://github.com/pecan/pecan' -license=('BSD') -depends=('python' 'python-webob' 'python-mako' 'python-webtest' 'python-six' - 'python-logutils') -makedepends=('python' 'python-setuptools' 'python-sphinx' 'python-webob' - 'python-mako' 'python-webtest' 'python-six' 'python-logutils') -checkdepends=('python-virtualenv' 'python-jinja' 'gunicorn' 'python-mock' - 'python-sqlalchemy' 'python-genshi' 'python-nine') -source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${_pkgname}/${_pkgname}/archive/${pkgver}.tar.gz";) -sha512sums=('a1d2c865c2c5ec6b891449107920b3c7fcb9a656df7f39f39610669fb50b70756e28508c9108e006e757fbaac3832b8f2e52b343d83edd173ff802407c8fff56') - -prepare(){ - # fix manpage build - sed -i '/^dist = /d' "${srcdir}/${_pkgname}-${pkgver}/docs/source/conf.py" - sed -i "s/^version = release = .*\$/version = release = '${pkgver}'/" "${srcdir}/${_pkgname}-${pkgver}/docs/source/conf.py" -} - -build() { - cd "${srcdir}/${_pkgname}-${pkgver}" - python ./setup.py build -} - -check() { - cd "${srcdir}/${_pkgname}-${pkgver}" - python setup.py test -} - -package() { - cd "${srcdir}/${_pkgname}-${pkgver}" - python ./setup.py install --root="$pkgdir/" --optimize=1 - install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - - cd docs - PYTHONPATH="${PWD}/../" make man - install -D -m644 "./build/man/pecan.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1" -} Copied: python-pecan/repos/community-any/PKGBUILD (from rev 674515, python-pecan/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2020-08-11 12:46:26 UTC (rev 674516) @@ -0,0 +1,46 @@ +# Maintainer: Thore Bödecker +# Contributor: Tim Meusel +pkgname="python-pecan" +_pkgname="${pkgname#python-}" +pkgdesc='A WSGI object-dispatching web framework, designed to be lean and fast with few dependencies.' +pkgver=1.4.0 +pkgrel=1 +arch=('any') +url='https://github.com/pecan/pecan' +license=('BSD') +depends=('python' 'python-webob' 'python-mako' 'python-webtest' 'python-six' + 'python-logutils') +makedepends=('python' 'python-setuptools' 'python-sphinx' 'python-webob' + 'python-mako' 'python-webtest' 'python-six' 'python-logutils') +checkdepends=('python-virtualenv' 'python-jinja' 'gunicorn' 'python-mock' + 'python-sqlalchemy' 'python-genshi' 'python-nine' 'uwsgi' + 'python-pytest' 'python-kajiki') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${_pkgname}/${_pkgname}/archive/${pkgver}.tar.gz";) +sha512sums=('3f7e072b294a732af6ff65621b1e10254260b9d42abd2bc38c3bff8e141b2ae4592567075813faf40227e7f0a3f2893c27270926fcfad18d1cdd9dc8a85bd14e') + +prepare(){ + # fix manpage build + sed -i '/^dist = /d' "${srcdir}/${_pkgname}-${pkgver}/docs/source/conf.py" + sed -i "s/^version = release = .*\$/version = release = '${pkgver}'/" "${srcdir}/${_pkgname}-${pkgver}/docs/source/conf.py" +} + +build() { + cd "${srcdir}/${_pkgname}-${pkgver}" + python ./setup.py build +} + +check() { + cd "${srcdir}/${_pkgname}-${pkgver}" + # python setup.py test + py.test -vvv -s -ra --showlocals --noconftest pecan/tests/ +} + +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" + python ./setup.py install --root="$pkgdir/" --optimize=1 + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + cd docs + PYTHONPATH="${PWD}/../" make man + install -D -m644 "./build/man/pecan.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1" +}
[arch-commits] Commit in python-pecan/repos/community-any (PKGBUILD PKGBUILD)
Date: Monday, May 6, 2019 @ 09:42:29 Author: foxxx0 Revision: 460503 archrelease: copy trunk to community-any Added: python-pecan/repos/community-any/PKGBUILD (from rev 460502, python-pecan/trunk/PKGBUILD) Deleted: python-pecan/repos/community-any/PKGBUILD --+ PKGBUILD | 119 ++--- 1 file changed, 44 insertions(+), 75 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2019-05-06 09:42:25 UTC (rev 460502) +++ PKGBUILD2019-05-06 09:42:29 UTC (rev 460503) @@ -1,75 +0,0 @@ -# Maintainer: Thore Bödecker -# Contributor: Tim Meusel -pkgbase='python-pecan' -_pkgbase="${pkgbase#python-}" -pkgname=("python-${_pkgbase}" "python2-${_pkgbase}") -pkgdesc='A WSGI object-dispatching web framework, designed to be lean and fast with few dependencies.' -pkgver=1.3.2 -pkgrel=3 -arch=('any') -url='https://github.com/pecan/pecan' -license=('BSD') -makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools' - 'python-sphinx' 'python2-sphinx' 'python-webob' 'python2-webob' - 'python-mako' 'python2-mako' 'python-webtest' 'python2-webtest' - 'python-six' 'python2-six' 'python-logutils' 'python2-logutils') -checkdepends=('python-virtualenv' 'python2-virtualenv' - 'python-jinja' 'python2-jinja' 'gunicorn' 'python2-gunicorn' - 'python-mock' 'python2-mock' 'python-sqlalchemy' 'python2-sqlalchemy' - 'python2-kajiki' 'python-genshi' 'python2-genshi' - 'python2-singledispatch' 'python-nine' 'python2-nine') -source=("${_pkgbase}-${pkgver}.tar.gz::https://github.com/pecan/pecan/archive/${pkgver}.tar.gz";) -sha512sums=('21eca763571c66d5bd2cecf59ebf5b4a70476088a670a5d8067ab84dc67881b81ae5a85fe2f262ca90a8a39b3a9bf8310651d0c595e331fcd0457b01f7f9cf2e') - -prepare(){ - # fix manpage build - sed -i '/^dist = /d' "${srcdir}/${_pkgbase}-${pkgver}/docs/source/conf.py" - sed -i "s/^version = release = .*\$/version = release = '${pkgver}'/" "${srcdir}/${_pkgbase}-${pkgver}/docs/source/conf.py" - - cp -r "${srcdir}/${_pkgbase}-${pkgver}" "${srcdir}/${_pkgbase}-${pkgver}-py2" - - # fix python interpreter for python2 stuff - find "${srcdir}/${_pkgbase}-${pkgver}-py2" -type f -name '*.py' \ --exec sed -i 's|^#!/usr/bin/env python$|#!/usr/bin/env python2|1' {} + -} - -build() { - cd "${srcdir}/${_pkgbase}-${pkgver}" - python ./setup.py build - cd "${srcdir}/${_pkgbase}-${pkgver}-py2" - python2 ./setup.py build -} - -check() { - cd "${srcdir}/${_pkgbase}-${pkgver}" - python setup.py test - cd "${srcdir}/${_pkgbase}-${pkgver}-py2" - python2 setup.py test -} - -package_python-pecan() { - depends=('python' 'python-webob' 'python-mako' 'python-webtest' 'python-six' 'python-logutils') - cd "${srcdir}/${_pkgbase}-${pkgver}" - python ./setup.py install --root="$pkgdir/" --optimize=1 - install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - - cd docs - PYTHONPATH="${PWD}/../" make man - install -D -m644 "./build/man/pecan.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1" -} - -package_python2-pecan() { - depends=('python2' 'python2-webob' 'python2-mako' 'python2-webtest' 'python2-six' 'python2-logutils') - cd "${srcdir}/${_pkgbase}-${pkgver}-py2" - python2 ./setup.py install --root="$pkgdir/" --optimize=1 - install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - - cd docs - PYTHONPATH="${PWD}/../" make man - install -D -m644 "./build/man/pecan.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1" - - # fix conflicting files - for file in gunicorn_pecan pecan; do -mv "${pkgdir}/usr/bin/${file}" "${pkgdir}/usr/bin/${file}2" - done -} Copied: python-pecan/repos/community-any/PKGBUILD (from rev 460502, python-pecan/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2019-05-06 09:42:29 UTC (rev 460503) @@ -0,0 +1,44 @@ +# Maintainer: Thore Bödecker +# Contributor: Tim Meusel +pkgname="python-pecan" +_pkgname="${pkgname#python-}" +pkgdesc='A WSGI object-dispatching web framework, designed to be lean and fast with few dependencies.' +pkgver=1.3.3 +pkgrel=1 +arch=('any') +url='https://github.com/pecan/pecan' +license=('BSD') +depends=('python' 'python-webob' 'python-mako' 'python-webtest' 'python-six' + 'python-logutils') +makedepends=('python' 'python-setuptools' 'python-sphinx' 'python-webob' + 'python-mako' 'python-webtest' 'python-six' 'python-logutils') +checkdepends=('python-virtualenv' 'python-jinja' 'gunicorn' 'python-mock' + 'python-sqlalchemy' 'python-genshi' 'python-nine') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${_pkgname}/${_pkgname}/archive/${pkgver}.tar.gz";) +sha512sums=('a1d2c865c2c5ec6b891449107920b3c7fcb9a656df7f39f39610669fb50b70756e28508c9108e006e757fbaac3832b8f2e52b343d83
[arch-commits] Commit in python-pecan/repos/community-any (PKGBUILD PKGBUILD)
Date: Tuesday, July 24, 2018 @ 16:50:33 Author: foxxx0 Revision: 363298 archrelease: copy trunk to community-any Added: python-pecan/repos/community-any/PKGBUILD (from rev 363297, python-pecan/trunk/PKGBUILD) Deleted: python-pecan/repos/community-any/PKGBUILD --+ PKGBUILD | 134 ++--- 1 file changed, 75 insertions(+), 59 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2018-07-24 16:50:23 UTC (rev 363297) +++ PKGBUILD2018-07-24 16:50:33 UTC (rev 363298) @@ -1,59 +0,0 @@ -# Maintainer: Thore Bödecker -# Contributor: Tim Meusel -pkgbase='python-pecan' -pkgname=('python2-pecan' 'python-pecan') -pkgdesc='A WSGI object-dispatching web framework, designed to be lean and fast with few dependencies.' -pkgver=1.3.2 -pkgrel=1 -arch=('any') -url='https://github.com/pecan/pecan' -license=('BSD') -makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools' 'python-sphinx' 'python2-sphinx' 'python-webob' 'python2-webob' 'python-mako' 'python2-mako' 'python-webtest' 'python2-webtest') -checkdepends=('python2-tox' 'python2-singledispatch' 'python2-waitress' 'python2-markupsafe' 'python2-six' 'python2-beautifulsoup4' 'python2-gunicorn' 'uwsgi-plugin-python2') -source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pecan/pecan/archive/${pkgver}.tar.gz";) -sha512sums=('21eca763571c66d5bd2cecf59ebf5b4a70476088a670a5d8067ab84dc67881b81ae5a85fe2f262ca90a8a39b3a9bf8310651d0c595e331fcd0457b01f7f9cf2e') - -prepare() { - cd "${srcdir}/pecan-${pkgver}" - - # fix manpage build - sed -i '/^dist = /d' docs/source/conf.py - sed -i "s/^version = release = .*\$/version = release = '${pkgver}'/" docs/source/conf.py - - # run tests only on platforms we support on Arch Linux - # upstream currently ships no tests for python3.6, only 3.5 and older 3.X - sed -i 's/envlist.*/envlist = py27,scaffolds-27,scaffolds-27-rest-api,pep8/' tox.ini -} - -check() { - cd "${srcdir}/pecan-${pkgver}" - # upstream tests only support python 2 - python2 setup.py test -} - -package_python2-pecan() { - depends=('python2') - cd "${srcdir}/pecan-${pkgver}" - python2 setup.py install --root="${pkgdir}/" --optimize=1 - install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - - cd docs - PYTHONPATH="${PWD}/../" make man - install -D -m644 "${srcdir}/pecan-${pkgver}/docs/build/man/pecan.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1" - - # fix conflicting files - for file in gunicorn_pecan pecan; do -mv "${pkgdir}/usr/bin/${file}" "${pkgdir}/usr/bin/${file}2" - done -} - -package_python-pecan() { - depends=('python') - cd "${srcdir}/pecan-${pkgver}" - python setup.py install --root="${pkgdir}/" --optimize=1 - install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - - cd docs - PYTHONPATH="${PWD}/../" make man - install -D -m644 "${srcdir}/pecan-${pkgver}/docs/build/man/pecan.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1" -} Copied: python-pecan/repos/community-any/PKGBUILD (from rev 363297, python-pecan/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2018-07-24 16:50:33 UTC (rev 363298) @@ -0,0 +1,75 @@ +# Maintainer: Thore Bödecker +# Contributor: Tim Meusel +pkgbase='python-pecan' +_pkgbase="${pkgbase#python-}" +pkgname=("python-${_pkgbase}" "python2-${_pkgbase}") +pkgdesc='A WSGI object-dispatching web framework, designed to be lean and fast with few dependencies.' +pkgver=1.3.2 +pkgrel=2 +arch=('any') +url='https://github.com/pecan/pecan' +license=('BSD') +makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools' + 'python-sphinx' 'python2-sphinx' 'python-webob' 'python2-webob' + 'python-mako' 'python2-mako' 'python-webtest' 'python2-webtest' + 'python-six' 'python2-six' 'python-logutils' 'python2-logutils') +checkdepends=('python-virtualenv' 'python2-virtualenv' + 'python-jinja' 'python2-jinja' 'gunicorn' 'python2-gunicorn' + 'python-mock' 'python2-mock' 'python-sqlalchemy' 'python2-sqlalchemy' + 'python2-kajiki' 'python-genshi' 'python2-genshi' + 'python2-singledispatch' 'python-nine' 'python2-nine') +source=("${_pkgbase}-${pkgver}.tar.gz::https://github.com/pecan/pecan/archive/${pkgver}.tar.gz";) +sha512sums=('21eca763571c66d5bd2cecf59ebf5b4a70476088a670a5d8067ab84dc67881b81ae5a85fe2f262ca90a8a39b3a9bf8310651d0c595e331fcd0457b01f7f9cf2e') + +prepare(){ + # fix manpage build + sed -i '/^dist = /d' "${srcdir}/${_pkgbase}-${pkgver}/docs/source/conf.py" + sed -i "s/^version = release = .*\$/version = release = '${pkgver}'/" "${srcdir}/${_pkgbase}-${pkgver}/docs/source/conf.py" + + cp -r "${srcdir}/${_pkgbase}-${pkgver}" "${srcdir}/${_pkgbase}-${pkgver}-py2" + + # fix python interpreter for python2 stuff +
[arch-commits] Commit in python-pecan/repos/community-any (PKGBUILD PKGBUILD)
Date: Monday, February 19, 2018 @ 12:28:03 Author: foxxx0 Revision: 296366 archrelease: copy trunk to community-any Added: python-pecan/repos/community-any/PKGBUILD (from rev 296365, python-pecan/trunk/PKGBUILD) Deleted: python-pecan/repos/community-any/PKGBUILD --+ PKGBUILD | 118 ++--- 1 file changed, 59 insertions(+), 59 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2018-02-19 12:27:53 UTC (rev 296365) +++ PKGBUILD2018-02-19 12:28:03 UTC (rev 296366) @@ -1,59 +0,0 @@ -# Maintainer: Thore Bödecker -# Contributor: Tim Meusel -pkgbase='python-pecan' -pkgname=('python2-pecan' 'python-pecan') -pkgdesc='A WSGI object-dispatching web framework, designed to be lean and fast with few dependencies.' -pkgver=1.2.1 -pkgrel=4 -arch=('any') -url='https://github.com/pecan/pecan' -license=('BSD') -makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools' 'python-sphinx' 'python2-sphinx' 'python-webob' 'python2-webob' 'python-mako' 'python2-mako' 'python-webtest' 'python2-webtest') -checkdepends=('python2-tox' 'python2-singledispatch' 'python2-waitress' 'python2-markupsafe' 'python2-six' 'python2-beautifulsoup4' 'python2-gunicorn' 'uwsgi-plugin-python2') -source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pecan/pecan/archive/${pkgver}.tar.gz";) -sha512sums=('eced82e4c3ceaaf9b2d6135da9e108b6334f56fc9e356ea05cfa7a7048c41eba019b87e1e793e310b95aa0740314aa6235ff24fc1735f222da741390c44a8735') - -prepare() { - cd "${srcdir}/pecan-${pkgver}" - - # fix manpage build - sed -i '/^dist = /d' docs/source/conf.py - sed -i "s/^version = release = .*\$/version = release = '${pkgver}'/" docs/source/conf.py - - # run tests only on platforms we support on Arch Linux - # upstream currently ships no tests for python3.6, only 3.5 and older 3.X - sed -i 's/envlist.*/envlist = py27,scaffolds-27,scaffolds-27-rest-api,pep8/' tox.ini -} - -check() { - cd "${srcdir}/pecan-${pkgver}" - # upstream tests only support python 2 - python2 setup.py test -} - -package_python2-pecan() { - depends=('python2') - cd "${srcdir}/pecan-${pkgver}" - python2 setup.py install --root="${pkgdir}/" --optimize=1 - install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - - cd docs - PYTHONPATH="${PWD}/../" make man - install -D -m644 "${srcdir}/pecan-${pkgver}/docs/build/man/pecan.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1" - - # fix conflicting files - for file in gunicorn_pecan pecan; do -mv "${pkgdir}/usr/bin/${file}" "${pkgdir}/usr/bin/${file}2" - done -} - -package_python-pecan() { - depends=('python') - cd "${srcdir}/pecan-${pkgver}" - python setup.py install --root="${pkgdir}/" --optimize=1 - install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - - cd docs - PYTHONPATH="${PWD}/../" make man - install -D -m644 "${srcdir}/pecan-${pkgver}/docs/build/man/pecan.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1" -} Copied: python-pecan/repos/community-any/PKGBUILD (from rev 296365, python-pecan/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2018-02-19 12:28:03 UTC (rev 296366) @@ -0,0 +1,59 @@ +# Maintainer: Thore Bödecker +# Contributor: Tim Meusel +pkgbase='python-pecan' +pkgname=('python2-pecan' 'python-pecan') +pkgdesc='A WSGI object-dispatching web framework, designed to be lean and fast with few dependencies.' +pkgver=1.3.2 +pkgrel=1 +arch=('any') +url='https://github.com/pecan/pecan' +license=('BSD') +makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools' 'python-sphinx' 'python2-sphinx' 'python-webob' 'python2-webob' 'python-mako' 'python2-mako' 'python-webtest' 'python2-webtest') +checkdepends=('python2-tox' 'python2-singledispatch' 'python2-waitress' 'python2-markupsafe' 'python2-six' 'python2-beautifulsoup4' 'python2-gunicorn' 'uwsgi-plugin-python2') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pecan/pecan/archive/${pkgver}.tar.gz";) +sha512sums=('21eca763571c66d5bd2cecf59ebf5b4a70476088a670a5d8067ab84dc67881b81ae5a85fe2f262ca90a8a39b3a9bf8310651d0c595e331fcd0457b01f7f9cf2e') + +prepare() { + cd "${srcdir}/pecan-${pkgver}" + + # fix manpage build + sed -i '/^dist = /d' docs/source/conf.py + sed -i "s/^version = release = .*\$/version = release = '${pkgver}'/" docs/source/conf.py + + # run tests only on platforms we support on Arch Linux + # upstream currently ships no tests for python3.6, only 3.5 and older 3.X + sed -i 's/envlist.*/envlist = py27,scaffolds-27,scaffolds-27-rest-api,pep8/' tox.ini +} + +check() { + cd "${srcdir}/pecan-${pkgver}" + # upstream tests only support python 2 + python2 setup.py test +} + +package_python2-pecan() { + depends=('python2') + cd "${srcdir}/pecan-${pkgver}" + python2 setup.py install --root="${pkgdir}/" --opt
[arch-commits] Commit in python-pecan/repos/community-any (PKGBUILD PKGBUILD)
Date: Tuesday, January 16, 2018 @ 10:59:21 Author: foxxx0 Revision: 283233 archrelease: copy trunk to community-any Added: python-pecan/repos/community-any/PKGBUILD (from rev 283232, python-pecan/trunk/PKGBUILD) Deleted: python-pecan/repos/community-any/PKGBUILD --+ PKGBUILD | 112 - 1 file changed, 59 insertions(+), 53 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2018-01-16 10:59:10 UTC (rev 283232) +++ PKGBUILD2018-01-16 10:59:21 UTC (rev 283233) @@ -1,53 +0,0 @@ -# Maintainer: Thore Bödecker -# Contrbutor: Tim Meusel -pkgbase='python-pecan' -pkgname=('python2-pecan' 'python-pecan') -pkgdesc='A WSGI object-dispatching web framework, designed to be lean and fast with few dependencies.' -pkgver=1.2.1 -pkgrel=3 -arch=('any') -url='https://github.com/pecan/pecan' -license=('BSD') -makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools' - 'python-tox' 'python-sphinx' 'python-webob' 'python-webtest' 'python-mako') -source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pecan/pecan/archive/${pkgver}.tar.gz";) -sha512sums=('eced82e4c3ceaaf9b2d6135da9e108b6334f56fc9e356ea05cfa7a7048c41eba019b87e1e793e310b95aa0740314aa6235ff24fc1735f222da741390c44a8735') - -prepare() { - cd "${srcdir}/pecan-${pkgver}" - - # fix manpage build - sed -i '/^dist = /d' docs/source/conf.py - sed -i "s/^version = release = .*\$/version = release = '${pkgver}'/" docs/source/conf.py - - # run tests only on platforms we support on Arch Linux - # upstream currently ships no tests for python3.6, only 3.5 and older 3.X - sed -i 's/envlist.*/envlist = py27,scaffolds-27,scaffolds-27-rest-api,pep8/' tox.ini -} - -check() { - cd "${srcdir}/pecan-${pkgver}" - tox -} - -package_python2-pecan() { - depends=('python2') - cd "${srcdir}/pecan-${pkgver}" - python2 setup.py install --root="${pkgdir}/" --optimize=1 - install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - - cd docs - PYTHONPATH="${PWD}/../" make man - install -D -m644 "${srcdir}/pecan-${pkgver}/docs/build/man/pecan.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1" -} - -package_python-pecan() { - depends=('python') - cd "${srcdir}/pecan-${pkgver}" - python setup.py install --root="${pkgdir}/" --optimize=1 - install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - - cd docs - PYTHONPATH="${PWD}/../" make man - install -D -m644 "${srcdir}/pecan-${pkgver}/docs/build/man/pecan.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1" -} Copied: python-pecan/repos/community-any/PKGBUILD (from rev 283232, python-pecan/trunk/PKGBUILD) === --- PKGBUILD(rev 0) +++ PKGBUILD2018-01-16 10:59:21 UTC (rev 283233) @@ -0,0 +1,59 @@ +# Maintainer: Thore Bödecker +# Contributor: Tim Meusel +pkgbase='python-pecan' +pkgname=('python2-pecan' 'python-pecan') +pkgdesc='A WSGI object-dispatching web framework, designed to be lean and fast with few dependencies.' +pkgver=1.2.1 +pkgrel=4 +arch=('any') +url='https://github.com/pecan/pecan' +license=('BSD') +makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools' 'python-sphinx' 'python2-sphinx' 'python-webob' 'python2-webob' 'python-mako' 'python2-mako' 'python-webtest' 'python2-webtest') +checkdepends=('python2-tox' 'python2-singledispatch' 'python2-waitress' 'python2-markupsafe' 'python2-six' 'python2-beautifulsoup4' 'python2-gunicorn' 'uwsgi-plugin-python2') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pecan/pecan/archive/${pkgver}.tar.gz";) +sha512sums=('eced82e4c3ceaaf9b2d6135da9e108b6334f56fc9e356ea05cfa7a7048c41eba019b87e1e793e310b95aa0740314aa6235ff24fc1735f222da741390c44a8735') + +prepare() { + cd "${srcdir}/pecan-${pkgver}" + + # fix manpage build + sed -i '/^dist = /d' docs/source/conf.py + sed -i "s/^version = release = .*\$/version = release = '${pkgver}'/" docs/source/conf.py + + # run tests only on platforms we support on Arch Linux + # upstream currently ships no tests for python3.6, only 3.5 and older 3.X + sed -i 's/envlist.*/envlist = py27,scaffolds-27,scaffolds-27-rest-api,pep8/' tox.ini +} + +check() { + cd "${srcdir}/pecan-${pkgver}" + # upstream tests only support python 2 + python2 setup.py test +} + +package_python2-pecan() { + depends=('python2') + cd "${srcdir}/pecan-${pkgver}" + python2 setup.py install --root="${pkgdir}/" --optimize=1 + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + cd docs + PYTHONPATH="${PWD}/../" make man + install -D -m644 "${srcdir}/pecan-${pkgver}/docs/build/man/pecan.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1" + + # fix conflicting files + for file in gunicorn_pecan pecan; do +mv "${pkgdir}/usr/bin/${file}" "${pkgdir}/usr/bin/${file}2" + done +} + +package_python-pecan() { + depe