blob: 35bea0497bbc1d7bd57a0f50cbbfcb562559c5cc (
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
|
# Maintainer: Blair Bonnett <blair dot bonnett at gmail>
# Contributor: Clayton Craft <clayton@craftyguy.net>
pkgname=python-pudb-git
_pkgname=pudb
pkgver=2022.1.3.r14.g6739956
pkgrel=1
pkgdesc="A full-screen, console-based Python debugger"
url="https://documen.tician.de/pudb/"
arch=('any')
license=('MIT')
depends=('python-jedi' 'python-packaging' 'python-pygments' 'python-urwid' 'python-urwid_readline')
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
checkdepends=('python-pytest' 'python-pytest-mock')
optdepends=(
'bpython: bpython shell'
'ptpython: shell based on prompt_toolkit'
'ipython: shell embedding IPython'
)
provides=('python-pudb')
conflicts=('python-pudb')
source=("git+https://github.com/inducer/pudb.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir"/"$_pkgname"
git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir"/"$_pkgname"
python -m build --no-isolation --wheel
}
check() {
cd "$srcdir/$_pkgname"
python -m venv --system-site-packages test-env
test-env/bin/python -m installer dist/*.whl
test-env/bin/python -m pytest -v
}
package() {
cd "$srcdir"/"$_pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
# vim: set ft=sh ts=2 sw=2 et:
|