blob: dbb8e7a76759ea9e94e05aa4e1425692e4fc65d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
pkgname=apio
_name=apio
pkgver=0.8.4
pkgrel=1
pkgdesc="Experimental micro-ecosystem for open FPGAs"
arch=('any')
url="https://pypi.org/project/apio/"
license=('GPL')
depends=(
'python-click'
'python-colorama'
'python-pyserial'
'python-requests'
'python-semantic-version'
'python-setuptools'
'python-wheel'
'scons'
)
makedepends=('python-build' 'python-flit-core' 'python-installer' 'python-wheel')
checkdepends=('python-pytest')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('baa8edbdf933ff098178418214b19dfce0cad233ecbe5fc73b896bb7434b5d8f')
build() {
cd "${_name}-$pkgver"
python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
cd "${_name}-$pkgver"
# We need a venv since apio.commands.upgrade requests the installed apio package version
python -m venv --system-site-packages --clear test-venv
./test-venv/bin/python -m installer dist/*.whl
./test-venv/bin/python -m pytest -v -c /dev/null test --offline
}
package() {
cd "${_name}-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|