* update python-cheroot to 10.0.0-2
This commit is contained in:
parent
8ff465d5ad
commit
b281cc652a
@ -5,33 +5,49 @@
|
||||
_name=cheroot
|
||||
pkgname=python-cheroot
|
||||
pkgdesc="Highly-optimized, pure-python HTTP server"
|
||||
pkgver=9.0.0
|
||||
pkgrel=5
|
||||
pkgver=10.0.0
|
||||
pkgrel=2
|
||||
arch=(any)
|
||||
url="https://github.com/cherrypy/cheroot"
|
||||
license=('MIT')
|
||||
license=(BSD-3-Clause)
|
||||
depends=(
|
||||
'python-jaraco.functools'
|
||||
# NOTE: open ticket upstream about this missing
|
||||
python-jaraco.text # undocumented, but required in cheroot/workers/threadpool.py
|
||||
'python-more-itertools'
|
||||
'python-six'
|
||||
python
|
||||
python-jaraco.functools
|
||||
python-more-itertools
|
||||
)
|
||||
optdepends=(
|
||||
'python-pyopenssl: for SSL and certificate handling within cheroot'
|
||||
)
|
||||
makedepends=('python-build' 'python-installer' 'python-setuptools'
|
||||
'python-setuptools-scm' 'python-wheel')
|
||||
# TODO: package python-pytest-watch
|
||||
makedepends=(
|
||||
python-build
|
||||
python-installer
|
||||
python-setuptools
|
||||
python-setuptools-scm
|
||||
python-wheel
|
||||
)
|
||||
# TODO: package python-pypytools
|
||||
checkdepends=(python-apipkg python-chardet python-colorama
|
||||
python-jaraco.context python-portend python-pyopenssl
|
||||
python-pytest python-pytest-forked python-pytest-rerunfailures
|
||||
python-pytest-sugar python-pytest-xdist python-requests-toolbelt
|
||||
python-requests-unixsocket python-trustme python-urllib3 python-watchdog)
|
||||
source=("https://files.pythonhosted.org/packages/source/${_name:0:1}/${_name}/${_name}-${pkgver}.tar.gz")
|
||||
sha512sums=('86ea0dd2cb4cde25f86b489b1d0bb27e3e7c1ba5449759ccecaae689cdcb349b968fd0c8fb8bc8273deff5e32a078bf40f4342f0c5a1f53bb8d2b968f44a453b')
|
||||
b2sums=('5f5dd172cfc8fdd1318b22fc27060444a34343b6b83bbda4bd40c16d7cb0568c356f5fd14b0a7cdc74895d6707077ec54fcae54fb29b0d16a7c06e2cd36b1ee7')
|
||||
checkdepends=(
|
||||
python-apipkg
|
||||
python-chardet
|
||||
python-colorama
|
||||
python-jaraco.context
|
||||
python-portend
|
||||
python-pyopenssl
|
||||
python-pytest
|
||||
python-pytest-forked
|
||||
python-pytest-mock
|
||||
python-pytest-rerunfailures
|
||||
python-pytest-sugar
|
||||
python-pytest-xdist
|
||||
python-requests-toolbelt
|
||||
python-requests-unixsocket
|
||||
python-trustme
|
||||
python-urllib3
|
||||
python-watchdog
|
||||
)
|
||||
source=($pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz)
|
||||
sha512sums=('bfeebded828607441d91e4d6c2704df90387aa516744b59642d7daf5dc7e3b5f960066d9437aee61800e269046f14d72ee0c6078c1a84ec32c58323d3ad08156')
|
||||
b2sums=('cc3bf89af3b59ec16f9cf276baf565f5c3637f42c70a01f35d70c0541fdc809dfeccd2c0d7cd3de576162442b3013b869b2fca09195dc9734fae7e6a2affdf9b')
|
||||
|
||||
prepare() {
|
||||
cd $_name-$pkgver
|
||||
@ -42,26 +58,29 @@ prepare() {
|
||||
|
||||
build() {
|
||||
# setuptools wont find version from git tag
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}"
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver"
|
||||
|
||||
cd ${_name}-${pkgver}
|
||||
cd $_name-$pkgver
|
||||
python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
check() {
|
||||
cd ${_name}-${pkgver}
|
||||
# TODO: package remaining checkdepends and run pytest
|
||||
# pytest -vv -c /dev/null
|
||||
local pytest_options=(
|
||||
-vv
|
||||
-o addopts=''
|
||||
--ignore cheroot/test/test_server.py # requires python-pypytools
|
||||
# issues with python-pyopenssl (being too new?!)
|
||||
--deselect cheroot/test/test_ssl.py::test_https_over_http_error
|
||||
)
|
||||
|
||||
cd $_name-$pkgver
|
||||
pytest "${pytest_options[@]}"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${_name}-${pkgver}
|
||||
cd $_name-$pkgver
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
install -vDm 644 LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname/"
|
||||
|
||||
# remove /test/ directory from package
|
||||
python_stdlib_basepath="$(python -c "from sysconfig import get_path; print(get_path('stdlib'))")"
|
||||
rm -rvf "${pkgdir}/${python_stdlib_basepath#/}/site-packages/${_name}"/{test,testing.py}
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
|
Loading…
x
Reference in New Issue
Block a user