Commit 40e30455 authored by Bengfort's avatar Bengfort
Browse files

Merge branch '1837-use-setup-py' into 'master'

use setup.py

See merge request !7
parents df6a83ce d9ff0b39
Pipeline #7779 passed with stages
in 3 minutes and 19 seconds
......@@ -19,7 +19,7 @@ test-branch:
image: $PYTHON_IMAGE
script:
- apt-get update -q && apt-get install -y -qq $PYTHON_IMAGE_DEPENDENCIES
- pip3 install -r requirements.txt
- pip3 install -e .
- pip3 install flake8
- flake8
- python3 manage.py makemigrations --dry-run --check --noinput --settings=scheduler.settings.development
......
......@@ -12,14 +12,14 @@ RUN adduser -D -g '' uwsgi
RUN apk update && apk add $PKGS
COPY scheduler/ code/scheduler/
COPY requirements.txt uwsgi.ini LICENSE code/
COPY setup.cfg setup.py uwsgi.ini LICENSE code/
COPY --from=0 node_modules/ code/node_modules/
WORKDIR code/
RUN pip3 install -r requirements.txt && \
RUN pip3 install -e . && \
pip3 install django-auth-ldap
RUN python3 -m django collectstatic --no-input --settings=scheduler.settings.development && \
python3 -m django compilemessages -l de
RUN django-admin collectstatic --no-input --settings=scheduler.settings.development && \
django-admin compilemessages -l de
CMD uwsgi uwsgi.ini --die-on-term
......@@ -11,7 +11,8 @@ run:
.PHONY: install
install:
if [ ! -d "$(VIRTUAL_ENV)" ]; then python3 -m venv "$(VIRTUAL_ENV)"; fi
$(VIRTUAL_ENV)/bin/pip install -r requirements.txt
$(VIRTUAL_ENV)/bin/pip install -U pip
$(VIRTUAL_ENV)/bin/pip install -e .
npm install
$(MANAGEPY) migrate
$(MANAGEPY) shell -c "from django.contrib.auth.models import User; User.objects.filter(username='admin').exists() or User.objects.create_superuser('admin', 'admin@example.com', 'password')"
......
[metadata]
name = castellum-scheduler
version = 0.0.1
author = Max-Planck-Gesellschaft
license = AGPL-3.0-or-later
[options]
include_package_data = True
packages = find:
install_requires =
Django == 3.1.2
django-bootstrap4 == 2.3.1
django-npm == 1.0.0
requests == 2.24.0
[flake8]
exclude=
exclude =
.venv,
migrations,
settings,
max-line-length=100
max-line-length = 100
from setuptools import setup
setup()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment