Felix Yan pushed to branch main at Arch Linux / Packaging / Packages /
python-bottle
Commits:
c547959a by Felix Yan at 2024-12-27T03:58:29+08:00
upgpkg: 0.13.0-1
- - - - -
3 changed files:
- .SRCINFO
- PKGBUILD
- − python-3.12.patch
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = python-bottle
pkgdesc = A fast and simple micro-framework for small web-applications
- pkgver = 0.12.25
- pkgrel = 6
+ pkgver = 0.13.0
+ pkgrel = 1
url = https://bottlepy.org
arch = any
license = MIT
@@ -20,14 +20,11 @@ pkgbase = python-bottle
makedepends = python-setuptools
makedepends = python-wheel
depends = python
- depends = python-cgi
optdepends = python-waitress: Waitress WSGI server
optdepends = python-cherrypy: Cherrypy WSGI server
optdepends = python-eventlet: Eventlet server support
options = !emptydirs
- source =
python-bottle-0.12.25.tar.gz::https://github.com/defnull/bottle/archive/0.12.25.tar.gz
- source = python-3.12.patch
- sha512sums =
b4b163d0225cc2be0f009427ac903dfbddc6f4bda89d3d7da2b201ccd2edbee97c2c08e7b210ffaa95077fe8ab6c1ff79ac5ffb212e8fdfed6268bfcfd6749bd
- sha512sums =
e1cef59f6ff005e78049c468942aef30ca1901a50466cf25d433f9aadbc3508a18e6b31bc302d02ee4f3d6d4801da5414762d6085166e40ad4568dea363cef6e
+ source = git+https://github.com/defnull/bottle.git#tag=0.13.0
+ sha512sums =
004ccca1eb7b9fcd4b5fda7ee1b0abb83ccf82263f9681b617522332089e6cd5ce66c7de73973b1c6c3773f5c7d77bd597f2161a7349ac0c697de3716c833885
pkgname = python-bottle
=====================================
PKGBUILD
=====================================
@@ -4,14 +4,14 @@
# Contributor: Felix Kaiser <[email protected]>
pkgname=python-bottle
-pkgver=0.12.25
-pkgrel=6
+pkgver=0.13.0
+pkgrel=1
pkgdesc="A fast and simple micro-framework for small web-applications"
arch=(any)
url="https://bottlepy.org"
license=('MIT')
options=(!emptydirs)
-depends=('python' 'python-cgi') # TODO: remove cgi dependency when upgrading
bottle to 0.13
+depends=('python')
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools'
'python-wheel')
checkdepends=('python-mako' 'python-jinja' 'python-cherrypy' 'python-twisted'
@@ -20,28 +20,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
=====================================
python-3.12.patch deleted
=====================================
@@ -1,21 +0,0 @@
-diff -ruN a/bottle.py b/bottle.py
---- a/bottle.py 2023-03-04 16:33:42.000000000 +0100
-+++ b/bottle.py 2023-06-28 09:52:43.757114094 +0200
-@@ -1803,10 +1803,15 @@
- '__all__': [], '__loader__': self})
- sys.meta_path.append(self)
-
-+ def find_spec(self, fullname, path, target=None):
-+ if '.' not in fullname: return
-+ if fullname.rsplit('.', 1)[0] != self.name: return
-+ from importlib.util import spec_from_loader
-+ return spec_from_loader(fullname, self)
-+
- def find_module(self, fullname, path=None):
- if '.' not in fullname: return
-- packname = fullname.rsplit('.', 1)[0]
-- if packname != self.name: return
-+ if fullname.rsplit('.', 1)[0] != self.name: return
- return self
-
- def load_module(self, fullname):
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-bottle/-/commit/c547959a84802386ca752b349bc933439cf8f7c0
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-bottle/-/commit/c547959a84802386ca752b349bc933439cf8f7c0
You're receiving this email because of your account on gitlab.archlinux.org.