community/py3-cheroot: upgrade to 10.0.0

* https://github.com/cherrypy/cheroot/blob/v10.0.0/CHANGES.rst
This commit is contained in:
Duncan Bellamy 2023-05-21 09:29:41 +00:00 committed by alice
parent b83eb38bae
commit e556261bde

View File

@ -3,8 +3,8 @@
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
_pyname=cheroot
pkgname=py3-cheroot
pkgver=9.0.0
pkgrel=2
pkgver=10.0.0
pkgrel=0
pkgdesc="High-performance, pure-Python HTTP server used by CherryPy"
url="https://cheroot.cherrypy.dev/"
license="BSD-3-Clause"
@ -13,10 +13,12 @@ depends="python3 py3-more-itertools py3-six py3-jaraco.functools"
# py3-setuptools_scm is needed to set python module version
makedepends="
py3-dateutil
py3-gpep517
py3-pbr
py3-portend
py3-setuptools
py3-setuptools_scm
py3-wheel
"
checkdepends="
py3-jaraco.context
@ -39,15 +41,20 @@ builddir="$srcdir/$_pyname-$pkgver"
options="!check" # fail on deprecation warning
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m pytest
python3 -m venv --clear --without-pip --system-site-packages testenv
testenv/bin/python3 -m installer dist/*.whl
testenv/bin/python3 -m pytest
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
tests() {
@ -55,6 +62,6 @@ tests() {
amove usr/lib/python*/site-packages/cheroot/test
}
sha512sums="
86ea0dd2cb4cde25f86b489b1d0bb27e3e7c1ba5449759ccecaae689cdcb349b968fd0c8fb8bc8273deff5e32a078bf40f4342f0c5a1f53bb8d2b968f44a453b cheroot-9.0.0.tar.gz
02e32e52a596463cbb9874a800dbcdc5680dd7d9dfa95ca6e73c81f9248a488087c514ae70cdba94fe9df1f5d3ab1c68efcb720561cbeb7b667109fe5962f85b cheroot-10.0.0.tar.gz
7831aeeea0b6d1ed094c92eb697632395de903d5de170c37230db2b7d083041855473f8d50b93c1e2f630e0c411ccf5f909593b3160cb134339e9d3e21ed691c setuptools-git.patch
"