[arch-commits] Commit in python-cherrypy/trunk (PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Wed Jun 8 10:49:39 UTC 2022
Date: Wednesday, June 8, 2022 @ 10:49:38
Author: dvzrv
Revision: 1229229
upgpkg: python-cherrypy 18.6.1-4: Depend on specific python-jaraco package
Modified:
python-cherrypy/trunk/PKGBUILD
----------+
PKGBUILD | 59 +++++++++++++++++++++++++++++++++++++----------------------
1 file changed, 37 insertions(+), 22 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-06-08 10:23:36 UTC (rev 1229228)
+++ PKGBUILD 2022-06-08 10:49:38 UTC (rev 1229229)
@@ -9,19 +9,24 @@
pkgname='python-cherrypy'
_pkgname="${pkgname#python-}"
pkgver=18.6.1
-pkgrel=3
+pkgrel=4
pkgdesc='A pythonic, object-oriented web development framework'
arch=('any')
url='https://cherrypy.org'
license=('BSD')
-depends=('python' 'python-six' 'python-cheroot' 'python-portend' 'python-jaraco'
- 'python-more-itertools' 'python-zc.lockfile' 'python-tempora' 'python-pytz')
-makedepends=('python-setuptools' 'python-setuptools-scm' 'python-six' 'python-jaraco'
- 'python-cheroot' 'python-portend' 'python-more-itertools' 'python-zc.lockfile'
- 'python-pytz' 'python-tempora')
-checkdepends=('python-pytest' 'python-pytest-sugar' 'python-pytest-services'
- 'python-objgraph' 'python-path' 'python-requests' 'python-zc.lockfile'
- 'python-requests-toolbelt' 'python-coverage' 'python-webtest')
+depends=('python' 'python-cheroot' 'python-portend' 'python-jaraco.collections'
+'python-more-itertools' 'python-zc.lockfile')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-setuptools-scm' 'python-wheel')
+checkdepends=('python-objgraph' 'python-path' 'python-pytest'
+'python-pytest-forked' 'python-pytest-services' 'python-pytest-sugar'
+'python-requests-toolbelt')
+optdepends=(
+ 'python-flup: for xcgi support'
+ 'python-memcached: for memcached session support'
+ 'python-pyopenssl: for TLS support'
+ 'python-routes: for routes_dispatcher support'
+ 'python-simplejson: for JSON support'
+)
source=(
"${pkgname}-${pkgver}.tar.gz::https://github.com/${_pkgname}/${_pkgname}/archive/v$pkgver.tar.gz"
'disable-sessiontest-file_concurrency.patch'
@@ -34,7 +39,7 @@
'60ba651c113ecf32e865a40b9361dbe176200274f2b3f40f6d17cbea3d4a868dc2eaf6088906230417c423969ce9692c10ae1f2e0f045571e5c443b53d4e07ca')
prepare() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd ${_pkgname}-${pkgver}
# apply patch from the source array (should be a pacman feature)
local filename
for filename in "${source[@]}"; do
@@ -43,6 +48,8 @@
patch -p1 -N -i "$srcdir/${filename##*/}"
fi
done
+ # we are not interested in coverage tests
+ sed -e '/cov/d' -i pytest.ini
}
build() {
@@ -49,22 +56,30 @@
# setuptools wont find version from git tag
export SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}"
- cd "${srcdir}/${_pkgname}-${pkgver}"
- python ./setup.py build
+ cd ${_pkgname}-${pkgver}
+ python -m build --wheel --no-isolation
}
check() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
- export WEBTEST_INTERACTIVE=0
- rm -f ./{,cherrypy/}{pytest.ini,tox.ini}
- py.test -vvv -s -ra --showlocals --noconftest cherrypy/test/
+ cd ${_pkgname}-${pkgver}
+ # disable tests that fail due to escalated DeprecationWarnings due to calls to StringIO.readfp()
+ # TODO: report upstream!
+ pytest -vv \
+ -k "not testConfig \
+ and not testCustomNamespaces \
+ and not testHandlerToolConfigOverride \
+ and not testHandlerToolConfigOverride \
+ and not testRespNamespaces \
+ and not testUnrepr \
+ and not test_request_body_namespace \
+ and not test_gc \
+ and not test_config \
+ and not test_call_with_kwargs \
+ and not test_call_with_literal_dict"
}
package() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
-
- python ./setup.py install --root="${pkgdir}" --optimize=1
-
- install -Dm644 LICENSE.md \
- "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
+ cd ${_pkgname}-${pkgver}
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -vDm 644 LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname/"
}
More information about the arch-commits
mailing list