user/tandoor-recipes: new aport #337
33 changed files with 1078 additions and 0 deletions
|
@ -36,6 +36,7 @@ lint:
|
|||
- keys/
|
||||
- logs/
|
||||
expire_in: 7 days
|
||||
when: always
|
||||
only:
|
||||
- merge_requests
|
||||
|
||||
|
@ -56,6 +57,7 @@ lint:
|
|||
- keys/
|
||||
- logs/
|
||||
expire_in: 7 days
|
||||
when: always
|
||||
only:
|
||||
- merge_requests
|
||||
|
||||
|
|
38
backports/py3-django-debug-toolbar/APKBUILD
Normal file
38
backports/py3-django-debug-toolbar/APKBUILD
Normal file
|
@ -0,0 +1,38 @@
|
|||
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
|
||||
# Maintainer:
|
||||
pkgname=py3-django-debug-toolbar
|
||||
_pkgname=django-debug-toolbar
|
||||
pkgver=4.2
|
||||
pkgrel=0
|
||||
pkgdesc="Configurable set of panels that display various debug information about the current request/response"
|
||||
options="!check" # Requires unpackaged Selenium python3 module
|
||||
url="https://github.com/jazzband/django-debug-toolbar"
|
||||
arch="noarch"
|
||||
license="BSD-3-Clause"
|
||||
depends="py3-django py3-sqlparse"
|
||||
makedepends="
|
||||
py3-gpep517
|
||||
py3-hatchling
|
||||
"
|
||||
# options="!check" #no testsuite
|
||||
subpackages="$pkgname-pyc"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/jazzband/$_pkgname/archive/$pkgver.tar.gz"
|
||||
builddir="$srcdir"/$_pkgname-$pkgver
|
||||
|
||||
replaces="py-django-debug-toolbar" # Backwards compatibility
|
||||
provides="py-django-debug-toolbar=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
5731fc7a1ec5209a7bd44f2e31d6c3ebde8ff1e24265878c1773610e69f2469f595b8a9641d345dcc6169c5f131d132006456cdc9aebd89cc4ec4f15a0a25341 py3-django-debug-toolbar-4.2.tar.gz
|
||||
"
|
35
backports/py3-validators/APKBUILD
Normal file
35
backports/py3-validators/APKBUILD
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
||||
# Maintainer:
|
||||
pkgname=py3-validators
|
||||
pkgver=0.20.0
|
||||
pkgrel=0
|
||||
pkgdesc="Python3 Data Validation for Humans"
|
||||
url="https://github.com/python-validators/validators"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="py3-decorator py3-six"
|
||||
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
||||
checkdepends="py3-isort py3-pytest py3-flake8"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="https://github.com/python-validators/validators/archive/$pkgver/py3-validators-$pkgver.tar.gz"
|
||||
builddir="$srcdir/validators-$pkgver"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
.testenv/bin/python3 -m installer .dist/*.whl
|
||||
.testenv/bin/python3 -m pytest
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" .dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
45a07c061022da453c31fc946950be3a701f36afbf0e0eb82b91f4bdb26c4d2d0ab47f6958ac88fd2e0a1563201e946014a5cb93cfa1c6710411982852d571c7 py3-validators-0.20.0.tar.gz
|
||||
"
|
35
backports/py3-w3lib/APKBUILD
Normal file
35
backports/py3-w3lib/APKBUILD
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
||||
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
||||
pkgname=py3-w3lib
|
||||
_pkgname=w3lib
|
||||
pkgver=2.1.2
|
||||
pkgrel=0
|
||||
pkgdesc="A library of web-related functions"
|
||||
url="https://github.com/scrapy/w3lib"
|
||||
arch="noarch"
|
||||
license="BSD-3-Clause"
|
||||
depends="python3"
|
||||
makedepends="py3-setuptools"
|
||||
checkdepends="py3-pytest"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgname-$pkgver"
|
||||
|
||||
replaces="py-w3lib" # Backwards compatibility
|
||||
provides="py-w3lib=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
pytest -v
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
cfff2520cab24b84c93223125de3fb813e4d40d23a022f7fc34196c3033adb5dfc01358d62566dcc4b763d40b271e1428eba0250ba997228d07f35cd3721e37e w3lib-2.1.2.tar.gz
|
||||
"
|
32
user/py3-crispy-bootstrap4/APKBUILD
Normal file
32
user/py3-crispy-bootstrap4/APKBUILD
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
pkgname=py3-crispy-bootstrap4
|
||||
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
||||
_pkgreal=crispy-bootstrap4
|
||||
pkgver=2023.1
|
||||
pkgrel=0
|
||||
pkgdesc="Bootstrap4 template pack for django-crispy-forms"
|
||||
url="https://pypi.org/project/crispy-bootstrap4/"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="python3 py3-django-crispy-forms"
|
||||
checkdepends="python3-dev"
|
||||
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/c/crispy-bootstrap4/crispy-bootstrap4-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
subpackages="$pkgname-pyc"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
ad54a94280110804beee3c6fa06aa97648d6496d3b1d7819d145d3dafbae7f200610f610ffbd3449ed244e799be953a754c26622b50b2266d9f2d54d4a86d496 py3-crispy-bootstrap4-2023.1.tar.gz
|
||||
"
|
32
user/py3-django-annoying/APKBUILD
Normal file
32
user/py3-django-annoying/APKBUILD
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
pkgname=py3-django-annoying
|
||||
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
||||
_pkgreal=django-annoying
|
||||
pkgver=0.10.6
|
||||
pkgrel=0
|
||||
pkgdesc="This is a django application that tries to eliminate annoying things in the Django framework."
|
||||
url="https://pypi.python.org/project/django-annoying"
|
||||
arch="noarch"
|
||||
license="BSD"
|
||||
depends="py3-django py3-six"
|
||||
checkdepends="python3-dev"
|
||||
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/d/django-annoying/django-annoying-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
subpackages="$pkgname-pyc"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
7b676c1e5aff6b19ae5bb1ea279cc5e46e28b7adc0afe8e9fc80e72da02378e5264db854e9c48cdc243440193760691d5003c3400a9955bdbfb8d7c7325774ed py3-django-annoying-0.10.6.tar.gz
|
||||
"
|
32
user/py3-django-auth-ldap/APKBUILD
Normal file
32
user/py3-django-auth-ldap/APKBUILD
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
pkgname=py3-django-auth-ldap
|
||||
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
||||
_pkgreal=django-auth-ldap
|
||||
pkgver=4.6.0
|
||||
pkgrel=0
|
||||
pkgdesc="Django LDAP authentication backend"
|
||||
url="https://pypi.python.org/project/django-auth-ldap"
|
||||
arch="noarch"
|
||||
license="BSD"
|
||||
depends="py3-django py3-ldap"
|
||||
checkdepends="python3-dev"
|
||||
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/d/django-auth-ldap/django-auth-ldap-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
subpackages="$pkgname-pyc"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
fc3945fb9cece694b63661c8565d877bdc81e012e9b4e9a8f1840bd83f6effb525e36f40e5dd5018b43d2c7c72fcdd25a5c61bf35e6f0d05e70e830f69228498 py3-django-auth-ldap-4.6.0.tar.gz
|
||||
"
|
33
user/py3-django-autocomplete-light/APKBUILD
Normal file
33
user/py3-django-autocomplete-light/APKBUILD
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
pkgname=py3-django-autocomplete-light
|
||||
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
||||
_pkgreal=django-autocomplete-light
|
||||
pkgver=3.9.7
|
||||
pkgrel=0
|
||||
pkgdesc="Fresh autocompletes for Django"
|
||||
url="https://pypi.python.org/project/django-autocomplete-light"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="python3"
|
||||
depends="py3-django py3-six"
|
||||
checkdepends="python3-dev"
|
||||
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/d/django-autocomplete-light/django-autocomplete-light-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
subpackages="$pkgname-pyc"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
c3ddb6870bce2b9bd6912c24bf843945af2b9c6a9477d1e45d4a7c4a9e16dca10e68a4c741cd2448c1c5eb73278d7d963d839769740b8dc61a21ec9fdbecc45a py3-django-autocomplete-light-3.9.7.tar.gz
|
||||
"
|
31
user/py3-django-cleanup/APKBUILD
Normal file
31
user/py3-django-cleanup/APKBUILD
Normal file
|
@ -0,0 +1,31 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
pkgname=py3-django-cleanup
|
||||
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
||||
_pkgreal=django-cleanup
|
||||
pkgver=8.0.0
|
||||
pkgrel=0
|
||||
pkgdesc="Deletes old files."
|
||||
url="https://pypi.python.org/project/django-cleanup"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="py3-django"
|
||||
checkdepends="python3-dev"
|
||||
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/d/django-cleanup/django-cleanup-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
subpackages="$pkgname-pyc"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
sha512sums="
|
||||
c11ae07f47c1522afabf477a96e14efee2c86dfb139977bd60e6b293da12181979f1a35295d6bb4822fc0dbfcc2780253faa72ce291f1fdbb02436291c7866db py3-django-cleanup-8.0.0.tar.gz
|
||||
"
|
31
user/py3-django-hcaptcha/APKBUILD
Normal file
31
user/py3-django-hcaptcha/APKBUILD
Normal file
|
@ -0,0 +1,31 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
pkgname=py3-django-hcaptcha
|
||||
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
||||
_pkgreal=django-hCaptcha
|
||||
pkgver=0.2.0
|
||||
pkgrel=0
|
||||
pkgdesc="Django hCaptcha provides a simple way to protect your django forms using hCaptcha"
|
||||
url="https://pypi.python.org/project/django-hCaptcha"
|
||||
arch="noarch"
|
||||
license="BSD-3-Clause"
|
||||
depends="py3-django"
|
||||
checkdepends="python3-dev"
|
||||
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/d/django-hCaptcha/django-hCaptcha-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
subpackages="$pkgname-pyc"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
2935b3e1ec2f76cf7cc872864febbb35bdfdd4e8428d6d2dc716f63c75764ede32d538971d8b7b262c49806527690d0664a4205568cc3d8370d8228d00e29dd7 py3-django-hcaptcha-0.2.0.tar.gz
|
||||
"
|
37
user/py3-django-js-reverse/APKBUILD
Normal file
37
user/py3-django-js-reverse/APKBUILD
Normal file
|
@ -0,0 +1,37 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
pkgname=py3-django-js-reverse
|
||||
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
||||
_pkgreal=django-js-reverse
|
||||
pkgver=0.10.2
|
||||
pkgrel=0
|
||||
pkgdesc="Javascript url handling for Django that doesn't hurt."
|
||||
url="https://pypi.python.org/project/django-js-reverse"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="py3-django"
|
||||
checkdepends="python3-dev"
|
||||
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/d/django-js-reverse/django-js-reverse-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
subpackages="$pkgname-pyc"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
touch $builddir/CHANGELOG.rst # expects this file for build
|
||||
}
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
12ce6754d20129820b17365e92dc1fd28d17f6f766fa9e4913b38ff08bbad3dc13dccc07a1c33902f327f81aa3eb37c32fce86218b9b4729de8d16f284d9b1fd py3-django-js-reverse-0.10.2.tar.gz
|
||||
"
|
32
user/py3-django-scopes/APKBUILD
Normal file
32
user/py3-django-scopes/APKBUILD
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
pkgname=py3-django-scopes
|
||||
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
||||
_pkgreal=django-scopes
|
||||
pkgver=2.0.0
|
||||
pkgrel=0
|
||||
pkgdesc="Scope querys in multi-tenant django applications"
|
||||
url="https://pypi.python.org/project/django-scopes"
|
||||
arch="noarch"
|
||||
license="Apache-2.0"
|
||||
depends="py3-django"
|
||||
checkdepends="python3-dev"
|
||||
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/d/django-scopes/django-scopes-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
subpackages="$pkgname-pyc"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
ff9b2337c84ba076209958effb326fd5827547acd86351cc7ac9b15220d0c689c153776a07ae9c0d15f3fba034430023df25197d98a095f005f7edeab565c08f py3-django-scopes-2.0.0.tar.gz
|
||||
"
|
32
user/py3-django-webpack-loader/APKBUILD
Normal file
32
user/py3-django-webpack-loader/APKBUILD
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
pkgname=py3-django-webpack-loader
|
||||
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
||||
_pkgreal=django-webpack-loader
|
||||
pkgver=3.0.0
|
||||
pkgrel=0
|
||||
pkgdesc="Transparently use webpack with django"
|
||||
url="https://pypi.python.org/project/django-webpack-loader"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="py3-django"
|
||||
checkdepends="python3-dev"
|
||||
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/d/django-webpack-loader/django-webpack-loader-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
subpackages="$pkgname-pyc"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
1e081261859ad7f51563856c81535f8e052004b856e988d3d8ec57c45ee7643324cc7bae6558f8391fa90038eef1765dde622b337821b05f04fb30d7e3d93a07 py3-django-webpack-loader-3.0.0.tar.gz
|
||||
"
|
33
user/py3-drf-writable-nested/APKBUILD
Normal file
33
user/py3-drf-writable-nested/APKBUILD
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
pkgname=py3-drf-writable-nested
|
||||
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
||||
_pkgreal=drf-writable-nested
|
||||
pkgver=0.7.0
|
||||
pkgrel=0
|
||||
pkgdesc="Writable nested helpers for django-rest-framework's serializers"
|
||||
url="https://pypi.python.org/project/drf-writable-nested"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="py3-django-rest-framework"
|
||||
checkdepends="py3-pytest py3-pytest-cov py3-pytest-django"
|
||||
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/beda-software/drf-writable-nested/archive/refs/tags/v$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
subpackages="$pkgname-pyc"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
|
||||
sha512sums="
|
||||
674e2206a8dad2f61f6eed9bbf137593bacbceb4789c5e46e0e5a965f172daac76878e13d3f1492b2a2d8bc97d310b0625b1fd65de19f92d7f71153e9f5c3089 py3-drf-writable-nested-0.7.0.tar.gz
|
||||
"
|
41
user/py3-extruct/APKBUILD
Normal file
41
user/py3-extruct/APKBUILD
Normal file
|
@ -0,0 +1,41 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
pkgname=py3-extruct
|
||||
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
||||
_pkgreal=extruct
|
||||
pkgver=0.16.0
|
||||
pkgrel=0
|
||||
pkgdesc="Extract embedded metadata from HTML markup"
|
||||
url="https://pypi.python.org/project/extruct"
|
||||
license="BSD-3-Clause"
|
||||
arch="noarch"
|
||||
depends="
|
||||
py3-lxml
|
||||
py3-pyrdfa3
|
||||
py3-mf2py
|
||||
py3-w3lib
|
||||
py3-html-text
|
||||
py3-six
|
||||
py3-jstyleson
|
||||
py3-requests
|
||||
"
|
||||
checkdepends="python3-dev"
|
||||
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/e/extruct/extruct-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
subpackages="$pkgname-pyc"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
da645863d3b421418871cdbbf2b970458c124c9f078aa013b5ef6147ddbebc3ef39dfb7b668dbb35aac8b47f6417525d16a40d0d5cb7e56aa0e4edf779a02a24 py3-extruct-0.16.0.tar.gz
|
||||
"
|
31
user/py3-html-text/APKBUILD
Normal file
31
user/py3-html-text/APKBUILD
Normal file
|
@ -0,0 +1,31 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
pkgname=py3-html-text
|
||||
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
||||
_pkgreal=html_text
|
||||
pkgver=0.5.2
|
||||
pkgrel=0
|
||||
pkgdesc="Extract text from HTML"
|
||||
url="https://pypi.python.org/project/html-rext"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="py3-lxml"
|
||||
checkdepends="py3-pytest"
|
||||
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/h/html_text/html_text-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
subpackages="$pkgname-pyc"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
sha512sums="
|
||||
95a4f216329838850fbb2d72a07e953bd115a4e8a8b919dc3cc431d4c1781f2287a6cdf5c7d895caaff18c0b29cd2842bf42852b41d46d009062f94523f1bcde py3-html-text-0.5.2.tar.gz
|
||||
"
|
31
user/py3-jstyleson/APKBUILD
Normal file
31
user/py3-jstyleson/APKBUILD
Normal file
|
@ -0,0 +1,31 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
pkgname=py3-jstyleson
|
||||
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
||||
_pkgreal=jstyleson
|
||||
pkgver=0.0.2
|
||||
pkgrel=0
|
||||
pkgdesc="Library to parse JSON with js-style comments."
|
||||
url="https://pypi.python.org/project/jstylejson"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
checkdepends="python3-dev"
|
||||
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/j/jstyleson/jstyleson-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
subpackages="$pkgname-pyc"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
99285536538f3cd70e2cee505826f335e207b577f361f5996589578eef06b8b29fd25fa254c150ef40618cca19554fe329750c123be0a9abf8d19cee47369a54 py3-jstyleson-0.0.2.tar.gz
|
||||
"
|
32
user/py3-microdata/APKBUILD
Normal file
32
user/py3-microdata/APKBUILD
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
pkgname=py3-microdata
|
||||
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
||||
_pkgreal=microdata
|
||||
pkgver=0.8.0
|
||||
pkgrel=0
|
||||
pkgdesc="html5lib extension for parsing microdata"
|
||||
url="https://pypi.python.org/project/microdata"
|
||||
license="CC0-1.0"
|
||||
arch="noarch"
|
||||
depends="py3-html5lib"
|
||||
checkdepends="python3-dev"
|
||||
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/m/microdata/microdata-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
subpackages="$pkgname-pyc"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
85ce750f11960e4bcae1cd7f7babbb43e47ad2e0133cc66fb8abb153b1471296b11dc642bee91059f89b45da363fcdd10cfe3770b43d3e7d4d82ff10ab700743 py3-microdata-0.8.0.tar.gz
|
||||
"
|
40
user/py3-pyppeteer/APKBUILD
Normal file
40
user/py3-pyppeteer/APKBUILD
Normal file
|
@ -0,0 +1,40 @@
|
|||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
pkgname=py3-pyppeteer
|
||||
_pkgreal=pyppeteer
|
||||
pkgver=1.0.2
|
||||
pkgrel=0
|
||||
pkgdesc="Headless chrome/chromium automation library (unofficial port of puppeteer)"
|
||||
url="https://pypi.python.org/project/pyppeteer"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="
|
||||
chromium
|
||||
py3-appdirs
|
||||
py3-certifi
|
||||
py3-importlib-metadata
|
||||
py3-pyee
|
||||
py3-tqdm
|
||||
py3-urllib3
|
||||
py3-websockets
|
||||
"
|
||||
checkdepends="python3-dev"
|
||||
makedepends="py3-setuptools py3-gpep517 py3-wheel poetry"
|
||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/p/pyppeteer/pyppeteer-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
subpackages="$pkgname-pyc"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
a73d00fa1c94172891d44411614aa16f517aa5babb4d7cb220cac8c4135a78c6f25463c768dae37c2186df658d8c185cb2ac5cc2dc943d24b3b212ccc037a532 py3-pyppeteer-1.0.2.tar.gz
|
||||
"
|
36
user/py3-pyrdfa3/APKBUILD
Normal file
36
user/py3-pyrdfa3/APKBUILD
Normal file
|
@ -0,0 +1,36 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
pkgname=py3-pyrdfa3
|
||||
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
||||
_pkgreal=pyRdfa3
|
||||
pkgver=3.5.3
|
||||
pkgrel=0
|
||||
pkgdesc="pyRdfa Libray"
|
||||
url="https://pypi.python.org/project/pyrdfa3"
|
||||
license="W3C-20150513"
|
||||
arch="noarch"
|
||||
depends="py3-rdflib py3-html5lib py3-isodate"
|
||||
checkdepends="python3-dev"
|
||||
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
||||
source="
|
||||
$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/p/pyRdfa3/pyRdfa3-$pkgver.tar.gz
|
||||
fix-build.patch
|
||||
"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
subpackages="$pkgname-pyc"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
98e931a1af7edcfe80f35f3a6b50b0afa8782a3bdbbee6bb609f7e474099273871c9927fcdb3a9c59c8feff5756ddd6bfac3a900bc536f22ce247c7900769b01 py3-pyrdfa3-3.5.3.tar.gz
|
||||
62d5c95c69840884e8bf0b8c0d0c30226f96b5196285317b84a1277d4fcdb79ada4a2f7c7ce3b4bcaf8dbeeb0438b580ae08b2798d70d3f46d76e135890d7a0f fix-build.patch
|
||||
"
|
15
user/py3-pyrdfa3/fix-build.patch
Normal file
15
user/py3-pyrdfa3/fix-build.patch
Normal file
|
@ -0,0 +1,15 @@
|
|||
diff --git a/setup.py.orig b/setup.py
|
||||
index 1b004e4..bb7da12 100644
|
||||
--- a/setup.py.orig
|
||||
+++ b/setup.py
|
||||
@@ -29,8 +29,8 @@ setup(name="pyRdfa3",
|
||||
'rdfa1.1 = pyRdfa.rdflibparsers:RDFaParser',
|
||||
'application/svg+xml = pyRdfa.rdflibparsers:RDFaParser',
|
||||
'application/xhtml+xml = pyRdfa.rdflibparsers:RDFaParser',
|
||||
- 'hturtle = pyRdfa.rdflibparsers:HTurtleParser'
|
||||
- 'html = pyRdfa.rdflibparsers:StructuredDataParser'
|
||||
+ 'hturtle = pyRdfa.rdflibparsers:HTurtleParser',
|
||||
+ 'html = pyRdfa.rdflibparsers:StructuredDataParser',
|
||||
'html/text = pyRdfa.rdflibparsers:StructuredDataParser'
|
||||
],
|
||||
}
|
32
user/py3-pytest-factoryboy/APKBUILD
Normal file
32
user/py3-pytest-factoryboy/APKBUILD
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
pkgname=py3-pytest-factoryboy
|
||||
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
||||
_pkgreal=pytest_factoryboy
|
||||
pkgver=2.6.0
|
||||
pkgrel=0
|
||||
pkgdesc="Factory Boy support for pytest."
|
||||
url="https://pypi.python.org/project/pytest-factoryboy"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="py3-pytest py3-inflection py3-factory-boy py3-typing-extensions"
|
||||
checkdepends="py3-tox py3-coverage py3-mypy"
|
||||
makedepends="py3-setuptools py3-gpep517 py3-wheel py3-poetry-core"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/p/pytest_factoryboy/pytest_factoryboy-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
083ad71de9d61ca29e09b7f1c243f36a75716defbc9639c03719ef6eedf73def6fe5803b50de91bf3d5c5892ff1c082dc6cc960fa4e8b6e9a616bbfac871e4ef py3-pytest-factoryboy-2.6.0.tar.gz
|
||||
"
|
32
user/py3-pytube/APKBUILD
Normal file
32
user/py3-pytube/APKBUILD
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
pkgname=py3-pytube
|
||||
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
||||
_pkgreal=pytube
|
||||
pkgver=15.0.0
|
||||
pkgrel=0
|
||||
pkgdesc="Python 3 library for downloading YouTube Videos."
|
||||
url="https://pypi.python.org/project/pytube"
|
||||
arch="noarch"
|
||||
license="Unlicense"
|
||||
depends="python3"
|
||||
checkdepends="python3-dev"
|
||||
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/p/pytube/pytube-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
subpackages="$pkgname-pyc"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
68174a3392e5f2ff3059dc1f301783b1ce0a0334044b9e96b6066052066b3c3cee93bfc87449d10589795b3e43055cf6d629f1cac21bfc9ea2c4249b5f264c26 py3-pytube-15.0.0.tar.gz
|
||||
"
|
32
user/py3-recipe-scrapers/APKBUILD
Normal file
32
user/py3-recipe-scrapers/APKBUILD
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
pkgname=py3-recipe-scrapers
|
||||
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
||||
_pkgreal=recipe_scrapers
|
||||
pkgver=14.53.0
|
||||
pkgrel=0
|
||||
pkgdesc="Python package, scraping recipes from all over the internet"
|
||||
url="https://pypi.python.org/project/recipe-scrapers"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="py3-beautifulsoup4 py3-extruct py3-isodate py3-requests"
|
||||
checkdepends="python3-dev"
|
||||
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/r/recipe_scrapers/recipe_scrapers-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
subpackages="$pkgname-pyc"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
5a8f7ac802c193c12ce85000fbc83d49bd82080a31e5bb0e9d9de51a8f5053d4e98c69f927b9d518846131151ca7857ce3880c568dc80c14a21f621ee6d69f24 py3-recipe-scrapers-14.53.0.tar.gz
|
||||
"
|
32
user/py3-webdavclient3/APKBUILD
Normal file
32
user/py3-webdavclient3/APKBUILD
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
pkgname=py3-webdavclient3
|
||||
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
||||
_pkgreal=webdavclient3
|
||||
pkgver=3.14.6
|
||||
pkgrel=0
|
||||
pkgdesc="WebDAV client"
|
||||
url="https://pypi.python.org/project/webdavclient3"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="py3-requests py3-lxml py3-dateutil"
|
||||
checkdepends="py3-pytest"
|
||||
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
||||
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/w/webdavclient3/webdavclient3-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
subpackages="$pkgname-pyc"
|
||||
|
||||
build() {
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
8561fc5fbfd4b0a5e65e8291ee5994aa941ceb586386a14de9f80cf4e3c12be88207c90b6fa991fbd690291019e45d2937e8a4c8fd19891d53d68de430ef9d9e py3-webdavclient3-3.14.6.tar.gz
|
||||
"
|
134
user/tandoor-recipes/APKBUILD
Normal file
134
user/tandoor-recipes/APKBUILD
Normal file
|
@ -0,0 +1,134 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
pkgname=tandoor-recipes
|
||||
pkgver=1.5.10
|
||||
pkgrel=0
|
||||
pkgdesc="Application for managing recipes, planning meals, building shopping lists, etc."
|
||||
arch="noarch"
|
||||
url="https://github.com/TandoorRecipes/recipes"
|
||||
license="AGPL-3.0-only"
|
||||
depends="
|
||||
postgresql
|
||||
postgresql-contrib
|
||||
procps-ng
|
||||
pwgen
|
||||
py3-beautifulsoup4
|
||||
py3-bleach
|
||||
py3-boto3
|
||||
py3-crispy-bootstrap4
|
||||
py3-cryptography
|
||||
py3-django
|
||||
py3-django-allauth
|
||||
py3-django-annoying
|
||||
py3-django-auth-ldap
|
||||
py3-django-autocomplete-light
|
||||
py3-django-cleanup
|
||||
py3-django-cors-headers
|
||||
py3-django-crispy-forms
|
||||
py3-django-debug-toolbar
|
||||
py3-django-hcaptcha
|
||||
py3-django-js-reverse
|
||||
py3-django-oauth-toolkit
|
||||
py3-django-prometheus
|
||||
py3-django-rest-framework
|
||||
py3-django-scopes
|
||||
py3-django-storages
|
||||
py3-django-tables2
|
||||
py3-django-treebeard
|
||||
py3-django-webpack-loader
|
||||
py3-dotenv
|
||||
py3-drf-writable-nested
|
||||
py3-gunicorn
|
||||
py3-icalendar
|
||||
py3-jinja2
|
||||
py3-ldap
|
||||
py3-lxml
|
||||
py3-markdown
|
||||
py3-microdata
|
||||
py3-pillow
|
||||
py3-psycopg2
|
||||
py3-pyppeteer
|
||||
py3-pytest
|
||||
py3-pytest-django
|
||||
py3-pytest-factoryboy
|
||||
py3-pytube
|
||||
py3-recipe-scrapers
|
||||
py3-requests
|
||||
py3-six
|
||||
py3-uritemplate
|
||||
py3-validators~=0.20
|
||||
py3-webdavclient3
|
||||
py3-whitenoise
|
||||
py3-yaml
|
||||
nginx
|
||||
xsel
|
||||
"
|
||||
makedepends="nodejs postgresql postgresql-libs py3-virtualenv nginx yarn npm"
|
||||
source="
|
||||
$pkgname-$pkgver.tar.gz::https://github.com/TandoorRecipes/recipes/archive/refs/tags/$pkgver.tar.gz
|
||||
recipes.openrc
|
||||
recipes.nginx
|
||||
recipes-manage.sh
|
||||
allauth-0.58-fix.patch
|
||||
"
|
||||
builddir="$srcdir"/recipes-$pkgver
|
||||
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-install"
|
||||
subpackages="$pkgname-openrc"
|
||||
pkgusers="recipes"
|
||||
pkggroups="recipes"
|
||||
|
||||
build() {
|
||||
cd ./vue
|
||||
msg "Building nodejs libraries"
|
||||
yarn --cache-folder "$srcdir"/yarn-cache --ignore-engines install
|
||||
yarn --cache-folder "$srcdir"/yarn-cache build
|
||||
|
||||
cd ../
|
||||
msg "Building static files"
|
||||
./manage.py collectstatic --no-input
|
||||
./manage.py collectstatic_js_reverse
|
||||
echo "TANDOOR_VERSION = '$pkgver'" > cookbook/version_info.py
|
||||
echo "TANDOOR_REF = '$pkgver'" >> cookbook/version_info.py
|
||||
echo "VERSION_INFO = [{'name': 'Tandoor ', 'version': '$pkgver', 'website': 'https://github.com/TandoorRecipes/recipes', 'commit_link': 'https://github.com/TandoorRecipes/recipes/releases/tag/$pkgver', 'ref': '$pkgver', 'branch': 'master', 'tag': '$pkgver'}]" >> cookbook/version_info.py
|
||||
}
|
||||
|
||||
package() {
|
||||
|
||||
# install files
|
||||
mkdir -p "$pkgdir"/usr/share/webapps/recipes
|
||||
cp -r manage.py vue recipes staticfiles cookbook "$pkgdir"/usr/share/webapps/recipes
|
||||
ln -s /etc/tandoor/recipes.conf "$pkgdir"/usr/share/webapps/recipes/.env
|
||||
rm -rf \
|
||||
"$pkgdir"/usr/share/webapps/recipes/vue/node_modules/.cache \
|
||||
"$pkgdir"/usr/share/webapps/recipes/vue/node_modules/clipboardy/fallbacks
|
||||
|
||||
# openrc and configs
|
||||
install -Dm755 "$srcdir"/recipes.openrc \
|
||||
"$pkgdir"/etc/init.d/recipes
|
||||
install -Dm755 "$srcdir"/recipes.nginx \
|
||||
"$pkgdir"/etc/nginx/http.d/recipes.conf
|
||||
install -Dm755 "$builddir"/nginx/conf.d/errorpages/http502.html \
|
||||
"$pkgdir"/etc/nginx/http.d/errorpages/http502.html
|
||||
install -Dm640 "$builddir"/.env.template \
|
||||
"$pkgdir"/etc/tandoor/recipes.conf
|
||||
chown root:www-data "$pkgdir"/etc/tandoor/recipes.conf
|
||||
sed -i 's|SECRET_KEY=|SECRET_KEY=@@SECRET_KEY@@|' "$pkgdir"/etc/tandoor/recipes.conf
|
||||
sed -i 's|POSTGRES_HOST.*|POSTGRES_HOST=127.0.0.1|' "$pkgdir"/etc/tandoor/recipes.conf
|
||||
sed -i 's|POSTGRES_USER.*|POSTGRES_USER=recipes|' "$pkgdir"/etc/tandoor/recipes.conf
|
||||
sed -i 's|POSTGRES_DB.*|POSTGRES_DB=recipes|' "$pkgdir"/etc/tandoor/recipes.conf
|
||||
|
||||
# Install wrapper script to /usr/bin.
|
||||
install -m755 -D "$srcdir"/recipes-manage.sh \
|
||||
"$pkgdir"/usr/bin/recipes-manage
|
||||
|
||||
# ln
|
||||
ln -s /var/lib/recipes/media "$pkgdir"/usr/share/webapps/recipes/mediafiles
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
ae2569bc7e81ad509bafe7c605cbc5628037f03bc9dec3280df23f21a637de0c4643332520e6486b77df9e97cb21012abac2e82e1e1781d47fffed9253133180 tandoor-recipes-1.5.10.tar.gz
|
||||
6d53affec525207a86d8b26c6e5ac7a16586756520e5605f7fe1ea82212a93d051237da45893c8b4002a6663e7538d8e78ab7fc392dc420ba7e31e0cb11d3cae recipes.openrc
|
||||
1ae29eb9342ad697d0e1e0cc600cd63c4ea6ce3f92b2bdc26602a95015b9ee91f1d40df65e92cad53b980fa3c15989ca9874bd0df62d6c7030ea97d396e37d2c recipes.nginx
|
||||
521bc8c71bbf900bb37ef2db4d79ab16c3a068d74de57d8cfbe82feffab6041c58f94ddbb57ac1f8feb68535dd32679b79169454abfc4fa04548b025282ca507 recipes-manage.sh
|
||||
a15d71798185aa4cb6da7d2f3d1610b53d6d876750d1706793c59582db1d930fd62295e02c68628b1324e379db7d6c6cd8a63fb905d2b3739aa81fc57a304368 allauth-0.58-fix.patch
|
||||
"
|
12
user/tandoor-recipes/allauth-0.58-fix.patch
Normal file
12
user/tandoor-recipes/allauth-0.58-fix.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff --git a/recipes/settings.py.orig b/recipes/settings.py
|
||||
index 8673962..6a6490b 100644
|
||||
--- a/recipes/settings.py.orig
|
||||
+++ b/recipes/settings.py
|
||||
@@ -218,6 +218,7 @@ MIDDLEWARE = [
|
||||
'django.middleware.locale.LocaleMiddleware',
|
||||
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
||||
'cookbook.helper.scope_middleware.ScopeMiddleware',
|
||||
+ 'allauth.account.middleware.AccountMiddleware',
|
||||
]
|
||||
|
||||
if DEBUG_TOOLBAR:
|
11
user/tandoor-recipes/recipes-manage.sh
Normal file
11
user/tandoor-recipes/recipes-manage.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
BUNDLE_DIR='/usr/share/webapps/recipes'
|
||||
|
||||
cd $BUNDLE_DIR
|
||||
|
||||
if [ "$(id -un)" != 'recipes' ]; then
|
||||
exec su recipes -c '"$0" "$@"' -- ./manage.py "$@"
|
||||
else
|
||||
exec ./manage.py "$@"
|
||||
fi
|
29
user/tandoor-recipes/recipes.nginx
Normal file
29
user/tandoor-recipes/recipes.nginx
Normal file
|
@ -0,0 +1,29 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
client_max_body_size 128M;
|
||||
|
||||
# serve media files
|
||||
location /static/ {
|
||||
alias /usr/share/webapps/recipes/staticfiles/;
|
||||
}
|
||||
|
||||
location /media/ {
|
||||
alias /var/lib/recipes/media/;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_pass http://unix:/run/recipes/recipes.sock;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
error_page 502 /errors/http502.html;
|
||||
}
|
||||
|
||||
location /errors/ {
|
||||
alias /etc/nginx/http.d/errorpages/;
|
||||
internal;
|
||||
}
|
||||
}
|
||||
|
36
user/tandoor-recipes/recipes.openrc
Normal file
36
user/tandoor-recipes/recipes.openrc
Normal file
|
@ -0,0 +1,36 @@
|
|||
#!/sbin/openrc-run
|
||||
|
||||
name="$RC_SVCNAME"
|
||||
cfgfile="/etc/conf.d/$RC_SVCNAME.conf"
|
||||
pidfile="/run/recipes/$RC_SVCNAME.pid"
|
||||
working_directory="/usr/share/webapps/recipes"
|
||||
command="/usr/bin/gunicorn"
|
||||
command_args="
|
||||
--error-logfile /var/log/recipes/gunicorn_err.log
|
||||
--log-level debug
|
||||
--capture-output
|
||||
--bind unix:/run/recipes/recipes.sock
|
||||
recipes.wsgi:application
|
||||
"
|
||||
command_user="recipes"
|
||||
command_group="www-data"
|
||||
start_stop_daemon_args=""
|
||||
command_background="yes"
|
||||
|
||||
depend() {
|
||||
need postgresql
|
||||
need nginx
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
cd "$working_directory"
|
||||
checkpath --directory --owner $command_user:$command_group --mode 0775 \
|
||||
/var/log/recipes \
|
||||
/run/recipes \
|
||||
/var/lib/recipes/media
|
||||
}
|
||||
|
||||
stop_pre() {
|
||||
ebegin "Killing child processes"
|
||||
kill $(ps -o pid= --ppid $(cat $pidfile)) || true
|
||||
}
|
41
user/tandoor-recipes/tandoor-recipes.post-install
Executable file
41
user/tandoor-recipes/tandoor-recipes.post-install
Executable file
|
@ -0,0 +1,41 @@
|
|||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
config_file='/etc/tandoor/recipes.conf'
|
||||
|
||||
if [ $(grep '@@SECRET_KEY@@' "$config_file") ]; then
|
||||
echo "* Generating random secret in $config_file" >&2
|
||||
|
||||
secret_key="$(pwgen -s 50 1)"
|
||||
sed -i "s|@@SECRET_KEY@@|$secret_key|" "$config_file"
|
||||
fi
|
||||
|
||||
if [ "${0##*.}" = 'post-upgrade' ]; then
|
||||
cat >&2 <<-EOF
|
||||
*
|
||||
* To finish Recipes upgrade run:
|
||||
*
|
||||
* recipes-manage migrate
|
||||
*
|
||||
EOF
|
||||
else
|
||||
cat >&2 <<-EOF
|
||||
*
|
||||
* 1. Adjust settings in $config_file
|
||||
*
|
||||
* 2. Create database for Recipes:
|
||||
*
|
||||
* psql -c "CREATE ROLE recipes PASSWORD 'top-secret' INHERIT LOGIN;"
|
||||
* psql -c "CREATE DATABASE recipes OWNER recipes ENCODING 'UTF-8';"
|
||||
* psql -c "CREATE EXTENSION pg_trgm;"
|
||||
*
|
||||
* 3. User optimizations:
|
||||
*
|
||||
* psql -c "ALTER ROLE recipes SET client_encoding TO 'utf8';"
|
||||
* psql -c "ALTER ROLE recipes SET default_transaction_isolation TO 'read committed';"
|
||||
* psql -c "ALTER ROLE recipes SET timezone TO 'UTC';"
|
||||
*
|
||||
* 4. Run "recipes-manage migrate"
|
||||
*
|
||||
EOF
|
||||
fi
|
1
user/tandoor-recipes/tandoor-recipes.post-upgrade
Symbolic link
1
user/tandoor-recipes/tandoor-recipes.post-upgrade
Symbolic link
|
@ -0,0 +1 @@
|
|||
tandoor-recipes.post-install
|
25
user/tandoor-recipes/tandoor-recipes.pre-install
Normal file
25
user/tandoor-recipes/tandoor-recipes.pre-install
Normal file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/sh
|
||||
|
||||
recipes_dir='/var/lib/recipes'
|
||||
|
||||
if ! getent group recipes 1>/dev/null; then
|
||||
echo '* Creating group recipes' 1>&2
|
||||
|
||||
addgroup -S recipes
|
||||
fi
|
||||
|
||||
if ! id recipes 2>/dev/null 1>&2; then
|
||||
echo '* Creating user recipes' 1>&2
|
||||
|
||||
adduser -DHS -G recipes -h "$recipes_dir" -s /bin/sh \
|
||||
-g "added by apk for recipes" recipes
|
||||
passwd -u recipes 1>/dev/null # unlock
|
||||
fi
|
||||
|
||||
if ! id -Gn recipes | grep -Fq www-data; then
|
||||
echo '* Adding user recipes to group www-data' 1>&2
|
||||
|
||||
addgroup recipes www-data
|
||||
fi
|
||||
|
||||
exit 0
|
Loading…
Reference in a new issue