Compare commits
No commits in common. "master" and "material" have entirely different histories.
3
.gitignore
vendored
3
.gitignore
vendored
@ -5,10 +5,7 @@ __pycache__
|
|||||||
credentials.json
|
credentials.json
|
||||||
credentials
|
credentials
|
||||||
local_settings.py
|
local_settings.py
|
||||||
local.mk
|
|
||||||
.coverage
|
.coverage
|
||||||
.lint
|
|
||||||
.deploy
|
|
||||||
Session.vim
|
Session.vim
|
||||||
poetry.lock
|
poetry.lock
|
||||||
/env
|
/env
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
ENV TARGET=/opt/polyphonic
|
ENV TARGET=/opt/polyphonic
|
||||||
ENV RELEASE=polyphonic-0.8.4-py3-none-any.whl
|
#ENV RELEASE=polyphonic-0.8.4-py3-none-any.whl
|
||||||
#ENV RELEASE=git+https://gitea.tfconsulting.com.au/projects/polyphonic.git
|
ENV RELEASE=git+https://gitea.tfconsulting.com.au/projects/polyphonic.git
|
||||||
|
|
||||||
RUN apk add --no-cache python3 py3-pip git ghostscript sqlite
|
RUN apk add --no-cache python3 py3-pip git ghostscript sqlite
|
||||||
|
|
||||||
@ -11,7 +11,7 @@ WORKDIR /root
|
|||||||
RUN python3 -m venv ${TARGET}
|
RUN python3 -m venv ${TARGET}
|
||||||
ENV PATH="${TARGET}/bin:$PATH"
|
ENV PATH="${TARGET}/bin:$PATH"
|
||||||
|
|
||||||
COPY dist/${RELEASE} .
|
#COPY dist/${RELEASE} .
|
||||||
RUN pip3 install ${RELEASE} --no-cache-dir
|
RUN pip3 install ${RELEASE} --no-cache-dir
|
||||||
RUN pip3 install gunicorn whitenoise
|
RUN pip3 install gunicorn whitenoise
|
||||||
|
|
||||||
|
|||||||
22
Makefile
22
Makefile
@ -1,32 +1,18 @@
|
|||||||
PYTHON=env/bin/python
|
PYTHON=env/bin/python
|
||||||
DROPZONE=5.7.0
|
DROPZONE=5.7.0
|
||||||
|
|
||||||
VERSION=0.8.4
|
test:
|
||||||
|
|
||||||
export DJANGO_SETTINGS_MODULE=polyphonic.config.settings.dev
|
|
||||||
|
|
||||||
-include local.mk
|
|
||||||
|
|
||||||
test: .coverage
|
|
||||||
|
|
||||||
check: .lint
|
|
||||||
|
|
||||||
pre-commit: check test
|
|
||||||
|
|
||||||
.coverage: polyphonic
|
|
||||||
poetry run coverage run --include "polyphonic/*" --omit "*/migrations/*" polyphonic/manage.py test polyphonic
|
poetry run coverage run --include "polyphonic/*" --omit "*/migrations/*" polyphonic/manage.py test polyphonic
|
||||||
poetry run coverage html
|
poetry run coverage html
|
||||||
poetry run coverage report
|
poetry run coverage report
|
||||||
|
|
||||||
.lint: polyphonic
|
check:
|
||||||
poetry run ruff check polyphonic
|
poetry run ruff check polyphonic
|
||||||
poetry run ruff format --check polyphonic
|
poetry run ruff format --check polyphonic
|
||||||
touch $@
|
|
||||||
|
|
||||||
|
pre-commit: check test
|
||||||
|
|
||||||
build: dist/polyphonic-${VERSION}-py3-none-any.whl
|
build:
|
||||||
|
|
||||||
dist/polyphonic-${VERSION}-py3-none-any.whl: polyphonic
|
|
||||||
poetry build
|
poetry build
|
||||||
|
|
||||||
dev-setup:
|
dev-setup:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user