diff options
author | davidovski <david@davidovski.xyz> | 2022-06-27 23:09:07 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-27 23:09:07 +0100 |
commit | f6332a43c35387c4a2dea1746be5fd092890ae0e (patch) | |
tree | d6599f63de04096f3fc21a98e0b3bb39d55a3531 /repo/python-poetry-core/python-poetry-core.xibuild | |
parent | f13e0cac13f90f7f57bce3b26b2e6383de6e4ad2 (diff) |
added lf and iptables
Diffstat (limited to 'repo/python-poetry-core/python-poetry-core.xibuild')
-rw-r--r-- | repo/python-poetry-core/python-poetry-core.xibuild | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/repo/python-poetry-core/python-poetry-core.xibuild b/repo/python-poetry-core/python-poetry-core.xibuild new file mode 100644 index 0000000..0a613bc --- /dev/null +++ b/repo/python-poetry-core/python-poetry-core.xibuild @@ -0,0 +1,30 @@ +#!/bin/sh + +NAME="python-poetry-core" +DESC="PEP 517 build backend implementation for Poetry" + +MAKEDEPS="python-pep517 python-build python-installer " + +PKG_VER=1.0.8 +SOURCE="https://github.com/python-poetry/poetry-core/archive/$PKG_VER.tar.gz" + +build() { + # poetry-core excludes files specified in .gitignore + # fixed by setting GIT_DIR away from the aports tree's top-level directory + GIT_DIR="$PWD" python3 -m build --no-isolation --skip-dependency-check --wheel +} + +package() { + python3 -m installer -d "$PKG_DEST" \ + dist/poetry_core-$PKG_VER-py2.py3-none-any.whl + + # remove vendored versions of installed modules + local sitedir=$(python3 -c "import site; print(site.getsitepackages()[0])") + rm -r "$PKG_DEST/$sitedir"/poetry/core/_vendor + + install -Dm644 poetry/core/json/schemas/poetry-schema.json \ + "$PKG_DEST/$sitedir"/poetry/core/json/schemas/poetry-schema.json + install -Dm644 poetry/core/spdx/data/licenses.json \ + "$PKG_DEST/$sitedir"/poetry/core/spdx/data/licenses.json +} + |