blob: 2a026b1535d2c03ef6d728a613c33151d8b4c2ac (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: Manuel Wiesinger <m {you know what belongs here} mmap {and here} at>
pkgname=quartodoc
pkgver=0.9.1
pkgrel=1
pkgdesc="Generate Python package API reference documentation using Markdown and Quarto"
arch=('any')
url='https://machow.github.io/quartodoc'
license=('MIT')
depends=(
'python-black'
'python-click'
'python-griffe>=0.33'
'python-importlib-metadata>=5.1.0'
'python-importlib_resources>=5.10.2'
'python-plum-dispatch>2.0.0'
'python-pydantic'
'python-pyyaml'
'python-requests'
'python-sphobjinv>=2.3.1'
'python-tabulate>=0.9.0'
'python-typing_extensions>=4.4.0'
'python-watchdog>=3.0.0'
'python>=3.10'
)
makedepends=(
'git'
'python-build'
'python-installer'
'python-setuptools-scm'
'python-wheel'
)
checkdepends=(
'python-pytest'
'python-syrupy'
)
source=("${pkgname}-${pkgver}::git+https://github.com/machow/quartodoc.git#tag=v${pkgver}")
b2sums=('c78c26c206534fbff57895393b695c70616714c5ece4a5c9dfceebc1a44d102a1fd6e1a24a22b6e685a073ecaea5258cadafdf565abf31f8f2cfe034a93e6f94')
check() {
cd $pkgname-$pkgver
PYTHONPATH=. pytest
}
build() {
cd $pkgname-$pkgver
python -m build --wheel --no-isolation
}
package() {
cd $pkgname-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
rm -rf "$pkgdir/$site_packages/$pkgname/tests"
}
|