testing/py3-opencontainers: move from user
This commit is contained in:
parent
447ae3222a
commit
d083b85a09
1 changed files with 21 additions and 8 deletions
|
@ -4,29 +4,42 @@
|
||||||
_pyname=opencontainers
|
_pyname=opencontainers
|
||||||
pkgname="py3-$_pyname"
|
pkgname="py3-$_pyname"
|
||||||
pkgver=0.0.14
|
pkgver=0.0.14
|
||||||
pkgrel=1
|
pkgrel=0
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
pkgdesc="Python module for oci specifications"
|
pkgdesc="Python module for oci specifications"
|
||||||
url="https://pypi.python.org/project/$_pyname"
|
url="https://pypi.python.org/project/$_pyname"
|
||||||
license="MPL-2.0"
|
license="MPL-2.0"
|
||||||
depends="python3 py3-requests"
|
depends="
|
||||||
makedepends="py3-setuptools py3-pip py3-wheel"
|
py3-requests
|
||||||
checkdepends="py3-pytest"
|
"
|
||||||
|
makedepends="
|
||||||
|
py3-setuptools
|
||||||
|
py3-installer
|
||||||
|
py3-gpep517
|
||||||
|
py3-wheel
|
||||||
|
"
|
||||||
|
checkdepends="
|
||||||
|
py3-pytest
|
||||||
|
"
|
||||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
|
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
|
||||||
builddir="$srcdir"/$_pyname-$pkgver
|
builddir="$srcdir"/$_pyname-$pkgver
|
||||||
|
subpackages="$pkgname-pyc"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
PYTHONPATH="$srcdir" pytest || true
|
pytest -v
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
|
python3 -m installer -d "$pkgdir" \
|
||||||
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
|
dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
b0f0edb8d11c825e7bd64b0c38fb227823de0065dc35703cc930e5ad3a5c875abe5a8c8e16f34331ca2246f48887d34ab9749ca3b547216e0ece1aa7659dc845 py3-opencontainers-0.0.14.tar.gz
|
b0f0edb8d11c825e7bd64b0c38fb227823de0065dc35703cc930e5ad3a5c875abe5a8c8e16f34331ca2246f48887d34ab9749ca3b547216e0ece1aa7659dc845 py3-opencontainers-0.0.14.tar.gz
|
||||||
"
|
"
|
Loading…
Reference in a new issue