1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Fixed optional dependencies

This commit is contained in:
krateng 2022-03-09 22:02:42 +01:00
parent e3dc401ccf
commit 4e1b099547
9 changed files with 7 additions and 19 deletions

View File

@ -7,7 +7,7 @@ pkgdesc="Self-hosted music scrobble database"
url="https://github.com/krateng/maloja"
arch="noarch"
license="GPL-3.0"
depends="python3 tzdata vips"
depends="python3 tzdata"
pkgusers=$pkgname
pkggroups=$pkgname
depends_dev="gcc python3-dev libxml2-dev libxslt-dev libffi-dev libc-dev py3-pip linux-headers"

View File

@ -12,7 +12,7 @@ COPY ./requirements.txt ./requirements.txt
# Install everything before copying rest of the project, can be cached
RUN \
apk add --no-cache --virtual .build-deps gcc python3-dev libxml2-dev libxslt-dev libffi-dev libc-dev py3-pip linux-headers && \
apk add --no-cache python3 tzdata vips && \
apk add --no-cache python3 tzdata && \
pip3 install --no-cache-dir -r requirements.txt && \
apk del .build-deps

View File

@ -1,6 +1,7 @@
#!/usr/bin/env bash
apk add \
{{ tool.osreqs.alpine.build | join(' \\\n\t') }} \
{{ tool.osreqs.alpine.run | join(' \\\n\t') }}
{{ tool.osreqs.alpine.run | join(' \\\n\t') }} \
{{ tool.osreqs.alpine.opt | join(' \\\n\t') }}
pip3 install wheel
pip3 install malojaserver

View File

@ -1 +0,0 @@
python3

View File

@ -1,8 +0,0 @@
gcc
python3-dev
libxml2-dev
libxslt-dev
libffi-dev
libc-dev
py3-pip
linux-headers

View File

@ -1 +0,0 @@
tzdata

View File

@ -1 +0,0 @@
vips

View File

@ -1,4 +0,0 @@
sed 's/#.*//' ./install/dependencies_basic.txt | xargs apk add
sed 's/#.*//' ./install/dependencies_build.txt | xargs apk add
sed 's/#.*//' ./install/dependencies_run.txt | xargs apk add
sed 's/#.*//' ./install/dependencies_run_opt.txt | xargs apk add

View File

@ -61,6 +61,8 @@ build =[
]
run = [
"python3",
"tzdata",
"tzdata"
]
opt = [
"vips"
]