upgpkg: python-socketfromfd 0.2.0-2
switched to PEP 517
This commit is contained in:
@@ -1,11 +1,14 @@
|
|||||||
pkgbase = python-socketfromfd
|
pkgbase = python-socketfromfd
|
||||||
pkgdesc = socket.fromfd() with auto-detection of family and type
|
pkgdesc = socket.fromfd() with auto-detection of family and type
|
||||||
pkgver = 0.2.0
|
pkgver = 0.2.0
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
url = https://github.com/tiran/socketfromfd
|
url = https://github.com/tiran/socketfromfd
|
||||||
arch = any
|
arch = any
|
||||||
license = Apache
|
license = Apache
|
||||||
checkdepends = python-pytest
|
checkdepends = python-pytest
|
||||||
|
makedepends = python-build
|
||||||
|
makedepends = python-installer
|
||||||
|
makedepends = python-wheel
|
||||||
makedepends = python-setuptools
|
makedepends = python-setuptools
|
||||||
depends = python
|
depends = python
|
||||||
source = python-socketfromfd-0.2.0.tar.gz::https://github.com/tiran/socketfromfd/archive/refs/tags/v0.2.0.tar.gz
|
source = python-socketfromfd-0.2.0.tar.gz::https://github.com/tiran/socketfromfd/archive/refs/tags/v0.2.0.tar.gz
|
||||||
|
@@ -3,30 +3,30 @@
|
|||||||
pkgname=python-socketfromfd
|
pkgname=python-socketfromfd
|
||||||
_name=${pkgname#python-}
|
_name=${pkgname#python-}
|
||||||
pkgver=0.2.0
|
pkgver=0.2.0
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="socket.fromfd() with auto-detection of family and type"
|
pkgdesc="socket.fromfd() with auto-detection of family and type"
|
||||||
arch=(any)
|
arch=(any)
|
||||||
url="https://github.com/tiran/socketfromfd"
|
url="https://github.com/tiran/socketfromfd"
|
||||||
license=(Apache)
|
license=(Apache)
|
||||||
depends=(python)
|
depends=(python)
|
||||||
makedepends=(python-setuptools)
|
makedepends=(python-build python-installer python-wheel python-setuptools)
|
||||||
checkdepends=(python-pytest)
|
checkdepends=(python-pytest)
|
||||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/tiran/socketfromfd/archive/refs/tags/v$pkgver.tar.gz")
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/tiran/socketfromfd/archive/refs/tags/v$pkgver.tar.gz")
|
||||||
b2sums=('d1bcb4e66913cd3c9e988e2d3bdeee19d10a804bf6a0c243061da95f61802fe56a8192f622f8235b776d067aab83a89f69f08af462fa7fca5ee00dedec26c18c')
|
b2sums=('d1bcb4e66913cd3c9e988e2d3bdeee19d10a804bf6a0c243061da95f61802fe56a8192f622f8235b776d067aab83a89f69f08af462fa7fca5ee00dedec26c18c')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd $_name-$pkgver
|
||||||
|
python -m build --wheel --no-isolation
|
||||||
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd $_name-$pkgver
|
cd $_name-$pkgver
|
||||||
pytest
|
pytest
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
|
||||||
cd $_name-$pkgver
|
|
||||||
python setup.py build
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd $_name-$pkgver
|
cd $_name-$pkgver
|
||||||
python setup.py install --root="$pkgdir" --optimize=1
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim:set ts=2 sw=2 et:
|
# vim:set ts=2 sw=2 et:
|
||||||
|
Reference in New Issue
Block a user