mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-21 13:41:20 +02:00
53 lines
2.1 KiB
Plaintext
53 lines
2.1 KiB
Plaintext
# Contributer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Contributor: Jiri Kastner <cz172638@gmail.com>
|
|
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
|
|
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
|
|
pkgname=py3-cherrypy
|
|
pkgver=18.6.1
|
|
pkgrel=5
|
|
pkgdesc="A pythonic, object-oriented web development framework"
|
|
url="https://cherrypy.dev/"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="py3-cheroot py3-jaraco.collections py3-portend py3-zc.lockfile"
|
|
# py3-setuptools_scm is needed to set python module version
|
|
makedepends="py3-setuptools py3-setuptools_scm"
|
|
checkdepends="py3-cheroot-tests py3-path py3-pytest py3-pytest-cov py3-requests-toolbelt py3-tz"
|
|
subpackages="$pkgname-tutorial"
|
|
source="https://files.pythonhosted.org/packages/source/C/CherryPy/CherryPy-$pkgver.tar.gz
|
|
tests.patch
|
|
test_timeout.patch
|
|
gziptest.patch
|
|
"
|
|
builddir="$srcdir"/CherryPy-$pkgver
|
|
replaces="py-cherrypy" # Backwards compatibility
|
|
provides="py-cherrypy=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 -m pytest -W ignore::DeprecationWarning -W ignore:"unclosed ":ResourceWarning \
|
|
--deselect=cherrypy/test/test_session.py::MemcachedSessionTest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
|
|
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/cherrypy/test
|
|
}
|
|
|
|
tutorial() {
|
|
pkgdesc="files for cherrypy tutorial"
|
|
amove usr/lib/python3*/site-packages/cherrypy/tutorial
|
|
}
|
|
|
|
sha512sums="
|
|
186a0992a443e1ffc1a2924b3351dcb0e6cc6c88b39ac32330d6365fe1b0a35c2008a3a18e1a57f61ffd1901ea6134333bb6288024d8ffbb1fd8e8dcd3145007 CherryPy-18.6.1.tar.gz
|
|
64d5e51822fca9045f76894a4e5322b80b2c7826eea21fc97e81bffe419a5f940481b807dad70eee53e4a31bc3598ed10252e7ae97c1d7dcb7ba4085ab3298d6 tests.patch
|
|
5d926f538f456e6b58de4c02da51bfa327c71a506bb5fc251303aa4838b311179324245401ec9c5af3043d7d31a3ee211d26344b12c82fc9ed36d666344b45da test_timeout.patch
|
|
cc0384514a3cef41cbfcc441ba66a26feaf71cbd7ab092c8281782dfdfdccaa20cf5facf414e97cb88dd8e7c377067c8b6afdef4f71f22dee4c60db6a02c483b gziptest.patch
|
|
"
|