summaryrefslogtreecommitdiff
path: root/repo/python-flit-core/python-flit-core.xibuild
blob: f11f83f757f5b9f09b58cefd5bd92be1f6d78bdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

NAME="python-flit-core"
DESC="simple packaging tool for simple packages (core)"

MAKEDEPS="python-installer python-pytest python-attrs python-pluggy python-py python-iniconfig" 

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
}

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
}