summaryrefslogtreecommitdiff
path: root/repo/python-exceptiongroup/python-exceptiongroup.xibuild
blob: fa101caa3e74000f770b72836e59795d8ddd4750 (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
#!/bin/sh

MAKEDEPS="python python-build python-flit-core python-installer python-wheel"
DEPS="python-pytest"

PKG_VER=1.0.0rc8
SOURCE=https://github.com/agronholm/exceptiongroup/archive/refs/tags/$PKG_VER.tar.gz
MAKEDEPS="python"
DESC="Backport of PEP 654 (exception groups)"
ADDITIONAL="
use-flit-core.patch
"

prepare () {
    apply_patches
    sed -i "s/%VERSION%/$PKG_VER/" src/exceptiongroup/__init__.py
}

build() {
    	python3 -m build --no-isolation --wheel
}

package () {
    python3 -m installer -d "$PKG_DEST" \
		dist/exceptiongroup-$PKG_VER-py3-none-any.whl
}