summaryrefslogtreecommitdiff
path: root/repo/python-flit-core/python-flit-core.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-27 23:09:07 +0100
committerdavidovski <david@davidovski.xyz>2022-06-27 23:09:07 +0100
commitf6332a43c35387c4a2dea1746be5fd092890ae0e (patch)
treed6599f63de04096f3fc21a98e0b3bb39d55a3531 /repo/python-flit-core/python-flit-core.xibuild
parentf13e0cac13f90f7f57bce3b26b2e6383de6e4ad2 (diff)
added lf and iptables
Diffstat (limited to 'repo/python-flit-core/python-flit-core.xibuild')
-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
+}
+