[arch-commits] Commit in python-quart-cors/trunk (PKGBUILD)

Maxime Gauduin alucryd at gemini.archlinux.org
Mon Dec 6 10:12:43 UTC 2021


    Date: Monday, December 6, 2021 @ 10:12:43
  Author: alucryd
Revision: 1065260

python-quart-cors 0.5.0-2: python 3.10 rebuild

Modified:
  python-quart-cors/trunk/PKGBUILD

----------+
 PKGBUILD |   28 ++++++++++++++++++----------
 1 file changed, 18 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-06 09:50:13 UTC (rev 1065259)
+++ PKGBUILD	2021-12-06 10:12:43 UTC (rev 1065260)
@@ -2,7 +2,7 @@
 
 pkgname=python-quart-cors
 pkgver=0.5.0
-pkgrel=1
+pkgrel=2
 pkgdesc='A Quart extension to provide Cross Origin Resource Sharing, access control, support'
 url=https://gitlab.com/pgjones/quart-cors
 arch=(any)
@@ -13,7 +13,8 @@
 )
 makedepends=(
   git
-  python-setuptools
+  python-pip
+  python-poetry
 )
 checkdepends=(
   python-pytest
@@ -26,29 +27,36 @@
 source=(git+https://gitlab.com/pgjones/quart-cors.git#tag=${_tag})
 sha256sums=(SKIP)
 
+prepare() {
+  cd quart-cors
+  git cherry-pick -n ba39c2f3ffad89c4a9761d838c5d4f10048b6cc5
+  git cherry-pick -n 5f7568c3843f1df71916424d98a944110cf1d7b2
+  git cherry-pick -n eaedcc2b8698b28602849e8fd0f35e9d615a2e42
+  git cherry-pick -n dcd8d6bee19c155c62409c264ddb7a5002bd98de
+  git cherry-pick -n d879adcbbc45180fbc420ec2b4d5a28d395d5a60
+  git cherry-pick -n d27921855ba8a23c141d52d10a6401db0c9a1fc9
+  git cherry-pick -n 8555bdfc4a69f11ffd266f62eccbc0a3ab63bb38
+  rm tests/test_websocket.py
+}
+
 pkgver() {
   cd quart-cors
-
   git describe --tags
 }
 
 build() {
   cd quart-cors
-
-  python setup.py build
+  poetry build --format wheel
 }
 
 check() {
   cd quart-cors
-
   tox -e py310
 }
 
 package() {
-  cd quart-cors
-
-  python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
-  install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-quart-cors/
+  PIP_CONFIG_FILE=/dev/null pip install --isolated --root="${pkgdir}" --ignore-installed --no-deps quart-cors/dist/*.whl
+  install -Dm 644 quart-cors/LICENSE -t "${pkgdir}"/usr/share/licenses/python-quart-cors/
 }
 
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list