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


Commits:
7d060395 by Rafael Fontenelle at 2024-02-28T21:39:50-03:00
Remove pytest-runner, use pypa build and installer

- - - - -
2db9a60f by Daniel M. Capella at 2024-02-28T21:49:38-05:00
Add SRCINFO

- - - - -


2 changed files:

- + .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,21 @@
+pkgbase = python-h2
+       pkgdesc = HTTP/2 State-Machine based protocol implementation
+       pkgver = 4.1.0
+       pkgrel = 3
+       url = https://hyper.rtfd.org
+       arch = any
+       license = MIT
+       checkdepends = python-pytest
+       checkdepends = python-hypothesis
+       makedepends = python-setuptools
+       makedepends = python-build
+       makedepends = python-installer
+       makedepends = python-wheel
+       depends = python-hpack
+       depends = python-hyperframe
+       source = 
https://github.com/python-hyper/h2/archive/v4.1.0/python-h2-4.1.0.tar.gz
+       source = 
python-h2-python-3.11.patch::https://github.com/python-hyper/h2/pull/1274.patch
+       sha512sums = 
4e9cf88b3ae702a8a42bded775ad337809787fe8172d501c230d55abbf1edd764acf3b227f2e58756d882499661ffcf6bbdd4812a4d938c04fac3f1aa2390b28
+       sha512sums = 
94c0c5f6a5146e76c0ca9ccd62c7acfb7073b520ffe41a80cfaf51f619af5966d8beac923ca89bc439ec7170fd4c07d016b9024afce39a430214d6a8c8af6595
+
+pkgname = python-h2


=====================================
PKGBUILD
=====================================
@@ -8,8 +8,8 @@ arch=('any')
 license=('MIT')
 url="https://hyper.rtfd.org";
 depends=('python-hpack' 'python-hyperframe')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner' 'python-hypothesis')
+makedepends=('python-setuptools' 'python-build' 'python-installer' 
'python-wheel')
+checkdepends=('python-pytest' 'python-hypothesis')
 
source=("https://github.com/python-hyper/h2/archive/v$pkgver/$pkgname-$pkgver.tar.gz";
         
$pkgname-python-3.11.patch::https://github.com/python-hyper/h2/pull/1274.patch)
 
sha512sums=('4e9cf88b3ae702a8a42bded775ad337809787fe8172d501c230d55abbf1edd764acf3b227f2e58756d882499661ffcf6bbdd4812a4d938c04fac3f1aa2390b28'
@@ -22,16 +22,16 @@ prepare() {
 
 build() {
   cd h2-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
   cd h2-$pkgver
-  python setup.py pytest
+  PYTHONPATH="$PWD/src" pytest
 }
 
 package() {
   cd h2-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-h2/-/compare/8717c4fbbde0a34304441572f81c129b0785b6de...2db9a60f3b3c1cec265bb086c934f9deaa35491e

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-h2/-/compare/8717c4fbbde0a34304441572f81c129b0785b6de...2db9a60f3b3c1cec265bb086c934f9deaa35491e
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to