* update python-bottle to 0.13.0-1

This commit is contained in:
Alexander Baldeck 2025-01-07 07:59:16 +01:00
parent e8012bfc69
commit 7e1168b30c
3 changed files with 40 additions and 14 deletions

View File

@ -0,0 +1,30 @@
pkgbase = python-bottle
pkgdesc = A fast and simple micro-framework for small web-applications
pkgver = 0.13.0
pkgrel = 1
url = https://bottlepy.org
arch = any
license = MIT
checkdepends = python-mako
checkdepends = python-jinja
checkdepends = python-cherrypy
checkdepends = python-twisted
checkdepends = python-tornado
checkdepends = python-paste
checkdepends = python-gevent
checkdepends = python-eventlet
checkdepends = gunicorn
makedepends = git
makedepends = python-build
makedepends = python-installer
makedepends = python-setuptools
makedepends = python-wheel
depends = python
optdepends = python-waitress: Waitress WSGI server
optdepends = python-cherrypy: Cherrypy WSGI server
optdepends = python-eventlet: Eventlet server support
options = !emptydirs
source = git+https://github.com/defnull/bottle.git#tag=0.13.0
sha512sums = 004ccca1eb7b9fcd4b5fda7ee1b0abb83ccf82263f9681b617522332089e6cd5ce66c7de73973b1c6c3773f5c7d77bd597f2161a7349ac0c697de3716c833885
pkgname = python-bottle

View File

@ -0,0 +1,3 @@
[python-bottle]
source = "git"
git = "https://github.com/defnull/bottle.git"

View File

@ -5,8 +5,8 @@
# Contributor: Felix Kaiser <felix.kaiser@fxkr.net>
pkgname=python-bottle
pkgver=0.12.25
pkgrel=5
pkgver=0.13.0
pkgrel=1
pkgdesc="A fast and simple micro-framework for small web-applications"
arch=(any)
url="https://bottlepy.org"
@ -21,28 +21,21 @@ checkdepends=('python-mako' 'python-jinja' 'python-cherrypy' 'python-twisted'
optdepends=('python-waitress: Waitress WSGI server'
'python-cherrypy: Cherrypy WSGI server'
'python-eventlet: Eventlet server support')
source=("$pkgname-$pkgver.tar.gz::https://github.com/defnull/bottle/archive/$pkgver.tar.gz"
python-3.12.patch)
sha512sums=('b4b163d0225cc2be0f009427ac903dfbddc6f4bda89d3d7da2b201ccd2edbee97c2c08e7b210ffaa95077fe8ab6c1ff79ac5ffb212e8fdfed6268bfcfd6749bd'
'e1cef59f6ff005e78049c468942aef30ca1901a50466cf25d433f9aadbc3508a18e6b31bc302d02ee4f3d6d4801da5414762d6085166e40ad4568dea363cef6e')
prepare() {
cd bottle-$pkgver
patch -p1 -i ../python-3.12.patch # Python 3.12 support (Fedora)
}
source=("git+https://github.com/defnull/bottle.git#tag=$pkgver")
sha512sums=('004ccca1eb7b9fcd4b5fda7ee1b0abb83ccf82263f9681b617522332089e6cd5ce66c7de73973b1c6c3773f5c7d77bd597f2161a7349ac0c697de3716c833885')
build() {
cd bottle-$pkgver
cd bottle
python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
cd bottle-$pkgver
cd bottle
python -m unittest discover
}
package() {
cd bottle-$pkgver
cd bottle
python -m installer --destdir="$pkgdir" dist/*.whl
# Symlink license file