blob: 2a95e8cf41c5686e40e924bf4a050fe57be14048 (
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
|
#!/bin/sh
NAME="python-flit-core"
DESC="simple packaging tool for simple packages (core)"
MAKEDEPS="python-installer python-testpath"
PKG_VER=3.7.1
SOURCE="https://files.pythonhosted.org/packages/source/f/flit/flit-$PKG_VER.tar.gz"
build() {
cd flit_core
python3 build_dists.py
}
check() {
python3 -m pytest
}
package() {
python3 -m installer -d "$PKG_DEST" \
dist/flit_core-$PKG_VER-py3-none-any.whl
# remove installed tests
rm -r "$PKG_DEST"/usr/lib/python3*/site-packages/flit_core/tests
}
|