Daniel M. Capella pushed to branch main at Arch Linux / Packaging / Packages / 
python-flask-debug


Commits:
20e40c25 by loqs at 2024-02-28T17:07:21+00:00
Use pytest directly

- - - - -
97e27fc9 by loqs at 2024-02-28T17:11:22+00:00
Change to a PEP 517 based workflow

- - - - -
d4739e4a by Daniel M. Capella at 2024-02-28T17:08:07-05:00
Add SRCINFO

- - - - -


2 changed files:

- + .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,18 @@
+pkgbase = python-flask-debug
+       pkgdesc = A small debugging helper for Flask
+       pkgver = 0.4.3
+       pkgrel = 7
+       url = https://github.com/mbr/flask-debug
+       arch = any
+       license = MIT
+       checkdepends = python-pytest
+       makedepends = python-setuptools
+       makedepends = python-build
+       makedepends = python-installer
+       makedepends = python-wheel
+       depends = python-flask
+       depends = python-inflection
+       source = 
python-flask-debug-0.4.3.tar.gz::https://github.com/mbr/flask-debug/archive/0.4.3.tar.gz
+       sha512sums = 
7bc1cf9f88f28e2ca5a24c1454dcdb4e2a450eff3c00329f299c3840032e0803079f565652974f4c3a0e5aac443365ce47a3d2c2fee8e21e2e0c7150367e8816
+
+pkgname = python-flask-debug


=====================================
PKGBUILD
=====================================
@@ -8,23 +8,23 @@ url="https://github.com/mbr/flask-debug";
 license=('MIT')
 arch=('any')
 depends=('python-flask' 'python-inflection')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner')
+makedepends=('python-setuptools' 'python-build' 'python-installer' 
'python-wheel')
+checkdepends=('python-pytest')
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/mbr/flask-debug/archive/$pkgver.tar.gz";)
 
sha512sums=('7bc1cf9f88f28e2ca5a24c1454dcdb4e2a450eff3c00329f299c3840032e0803079f565652974f4c3a0e5aac443365ce47a3d2c2fee8e21e2e0c7150367e8816')
 
 build() {
   cd Flask-Debug-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
   cd Flask-Debug-$pkgver
-  python setup.py pytest
+  PYTHONPATH="$PWD" pytest
 }
 
 package() {
   cd Flask-Debug-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-flask-debug/-/compare/130a7661df4d493990af30e631b56cb21e47cada...d4739e4a4aad74f09b21ca800dfd0fe7f56466e9

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-flask-debug/-/compare/130a7661df4d493990af30e631b56cb21e47cada...d4739e4a4aad74f09b21ca800dfd0fe7f56466e9
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to