summaryrefslogtreecommitdiff
path: root/repo/python-flit-core
diff options
context:
space:
mode:
Diffstat (limited to 'repo/python-flit-core')
-rw-r--r--repo/python-flit-core/python-flit-core.xibuild27
1 files changed, 27 insertions, 0 deletions
diff --git a/repo/python-flit-core/python-flit-core.xibuild b/repo/python-flit-core/python-flit-core.xibuild
new file mode 100644
index 0000000..2a95e8c
--- /dev/null
+++ b/repo/python-flit-core/python-flit-core.xibuild
@@ -0,0 +1,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
+}
+