David Runge pushed to branch main at Arch Linux / Packaging / Packages / 
nvmetcli


Commits:
4880e942 by David Runge at 2024-04-27T14:51:17+02:00
Switch to locked tag commit

Signed-off-by: David Runge <dv...@archlinux.org>

- - - - -
ccff3b1d by David Runge at 2024-04-27T14:52:18+02:00
Add all direct dependencies

Signed-off-by: David Runge <dv...@archlinux.org>

- - - - -
e24866aa by David Runge at 2024-04-27T14:54:59+02:00
Switch to PEP517

Signed-off-by: David Runge <dv...@archlinux.org>

- - - - -
5d8258c4 by David Runge at 2024-04-27T14:56:04+02:00
Don't run ignored tests (requires kernel module)

Signed-off-by: David Runge <dv...@archlinux.org>

- - - - -
2889dc34 by David Runge at 2024-04-27T14:56:41+02:00
upgpkg: 0.8-3

Rebuild against Python 3.12

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,16 +1,19 @@
 pkgbase = nvmetcli
        pkgdesc = Command line interface for the kernel NVMe target
        pkgver = 0.8
-       pkgrel = 2
+       pkgrel = 3
        url = http://git.infradead.org/users/hch/nvmetcli.git
        arch = any
        license = Apache-2.0
-       checkdepends = python-nose2
        makedepends = git
+       makedepends = python-build
+       makedepends = python-installer
        makedepends = python-setuptools
+       makedepends = python-wheel
+       depends = python
        depends = python-configshell-fb
        depends = python-six
-       source = 
git://git.infradead.org/users/hch/nvmetcli.git#commit=d323d5a3091af490502c5d025ec7361a3a2cfbd9
-       sha512sums = SKIP
+       source = git://git.infradead.org/users/hch/nvmetcli.git#tag=v0.8
+       sha512sums = 
39ce10f6604a6eb5fd42c952c556f1d4421de166fab9ef03c4afd8bf3661b026ed6dbfa29713a19212a8918ead7030df6a036940662264ced284db2473b15418
 
 pkgname = nvmetcli


=====================================
PKGBUILD
=====================================
@@ -2,17 +2,16 @@
 
 pkgname=nvmetcli
 pkgver=0.8
-_commit=d323d5a3091af490502c5d025ec7361a3a2cfbd9
-pkgrel=2
+pkgrel=3
 pkgdesc="Command line interface for the kernel NVMe target"
 arch=('any')
 url="http://git.infradead.org/users/hch/nvmetcli.git";
 license=('Apache-2.0')
-depends=('python-configshell-fb' 'python-six')  # kmod
-makedepends=('git' 'python-setuptools')
-checkdepends=('python-nose2')
-source=(git://git.infradead.org/users/hch/nvmetcli.git#commit=$_commit)
-sha512sums=('SKIP')
+depends=('python' 'python-configshell-fb' 'python-six')  # kmod
+makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
+# NOTE: Tests need /sys/kernel/config/nvmet (present after modprobe nvmet)
+source=(git://git.infradead.org/users/hch/nvmetcli.git#tag=v$pkgver)
+sha512sums=('39ce10f6604a6eb5fd42c952c556f1d4421de166fab9ef03c4afd8bf3661b026ed6dbfa29713a19212a8918ead7030df6a036940662264ced284db2473b15418')
 
 prepare() {
   cd nvmetcli
@@ -21,18 +20,12 @@ prepare() {
 
 build() {
   cd nvmetcli
-  python setup.py build
-}
-
-check() {
-  cd nvmetcli
-  # Tests need /sys/kernel/config/nvmet (present after modprobe nvmet)
-  nose2 nvmet || echo "Tests failed"
+  python -m build --wheel --no-isolation
 }
 
 package() {
   cd nvmetcli
-  python setup.py install --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
 
   install -Dm644 nvmet.service -t "$pkgdir"/usr/lib/systemd/system/
   install -Dm644 README *.json Documentation/nvmetcli.txt -t 
"$pkgdir"/usr/share/doc/nvmetcli/



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/nvmetcli/-/compare/0d6c4c0e29cca5b52585a7f64c916fb29d4d6121...2889dc34144394a08b70469bdffd341a90fae449

-- 
This project does not include diff previews in email notifications.
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/nvmetcli/-/compare/0d6c4c0e29cca5b52585a7f64c916fb29d4d6121...2889dc34144394a08b70469bdffd341a90fae449
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to