From 9b517ceebb82b6202a45a6eb7cd1cb5b03509b04 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Mon, 12 Oct 2020 21:36:39 +0200 Subject: [PATCH] Add py3-secure-cookie for VMMgr, install py3-sphinx_rtd_theme --- apk/py3-secure-cookie/APKBUILD | 28 ++++++++++++++++++++++++++++ apk/vmmgr | 2 +- build/build-all.sh | 4 ++++ build/install-toolchain.sh | 6 +++--- 4 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 apk/py3-secure-cookie/APKBUILD diff --git a/apk/py3-secure-cookie/APKBUILD b/apk/py3-secure-cookie/APKBUILD new file mode 100644 index 0000000..50d6512 --- /dev/null +++ b/apk/py3-secure-cookie/APKBUILD @@ -0,0 +1,28 @@ +# Maintainer: Disassembler +pkgname=py3-secure-cookie +_pkgname=secure-cookie +pkgver=0.1.0 +pkgrel=0 +pkgdesc="Secure cookie and session interface for WSGI applications" +url="https://secure-cookie.readthedocs.io/" +arch="noarch" +license="MIT" +depends="python3" +makedepends="py3-setuptools" +checkdepends="py3-pytest py3-werkzeug" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + python3 setup.py build +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +check() { + PYTHONPATH=$PWD/build/lib pytest +} + +sha512sums="2e57dba6f73ceb03eda33c804dbe2277c9fe700dd1be219bb3d8d43a5c9105c2323fb6b28d74d3a1dfc8fbbd938b91ab54d3e1bac1dc74490335b1d27e43b55a secure-cookie-0.1.0.tar.gz" diff --git a/apk/vmmgr b/apk/vmmgr index 9d18f66..f370bd4 160000 --- a/apk/vmmgr +++ b/apk/vmmgr @@ -1 +1 @@ -Subproject commit 9d18f665c54f750528f0ad2f07fd0812ef70f135 +Subproject commit f370bd4712e8c56c23458e1f645da1b2a5d6dd4a diff --git a/build/build-all.sh b/build/build-all.sh index 4ffdb8c..e2956e1 100755 --- a/build/build-all.sh +++ b/build/build-all.sh @@ -12,6 +12,10 @@ cd ${ROOT}/vm tar czpf /srv/build/vm.tar.gz * # Build native apps +cd ${ROOT}/apk/py3-secure-cookie +apk add -U py3-setuptools py3-pytest py3-werkzeug +abuild -F + cd ${ROOT}/apk/rabbitmq-server apk add -U elixir erlang-compiler erlang-dev erlang-edoc erlang-eldap erlang-erl-docgen erlang-mnesia erlang-os-mon erlang-runtime-tools erlang-tools erlang-eunit erlang-xmerl gawk grep libxslt py3-simplejson python3 rsync socat xmlto zip abuild -F diff --git a/build/install-toolchain.sh b/build/install-toolchain.sh index 24d6126..8facec7 100755 --- a/build/install-toolchain.sh +++ b/build/install-toolchain.sh @@ -6,10 +6,10 @@ cd $(realpath $(dirname "${0}")) # Install basic build tools apk update apk add git file htop less openssh-client tree -# Install Alpine SDK +# Install Alpine SDK (for APK builds) apk add alpine-sdk -# Install Sphinx support -apk add py3-sphinx +# Install Sphinx support (for documentation builds) +apk add py3-sphinx py3-sphinx_rtd_theme # Copy root profile files and settings mkdir -p /root/.config/htop