mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-26 18:37:12 +00:00
Split requirements into files
This commit is contained in:
parent
46a65a8f16
commit
c7ba0e470e
@ -10,7 +10,10 @@ RUN apt update && \
|
|||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY requirements.txt /code/
|
COPY requirements.txt /code/
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements/base.txt
|
||||||
|
RUN pip install -r requirements/api.txt
|
||||||
|
RUN pip install -r requirements/cas.txt
|
||||||
|
RUN pip install -r requirements/production.txt
|
||||||
|
|
||||||
COPY . /code/
|
COPY . /code/
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ On supposera pour la suite que vous utiliser debian/ubuntu sur un serveur tout n
|
|||||||
|
|
||||||
$ python3 -m venv env
|
$ python3 -m venv env
|
||||||
$ source env/bin/activate
|
$ source env/bin/activate
|
||||||
(env)$ pip3 install -r requirements.txt
|
(env)$ pip3 install -r requirements/base.txt
|
||||||
(env)$ deactivate
|
(env)$ deactivate
|
||||||
|
|
||||||
4. uwsgi et Nginx
|
4. uwsgi et Nginx
|
||||||
|
@ -37,7 +37,6 @@ INSTALLED_APPS = [
|
|||||||
|
|
||||||
# External apps
|
# External apps
|
||||||
'polymorphic',
|
'polymorphic',
|
||||||
'reversion',
|
|
||||||
'crispy_forms',
|
'crispy_forms',
|
||||||
'django_tables2',
|
'django_tables2',
|
||||||
# Django contrib
|
# Django contrib
|
||||||
|
3
requirements/api.txt
Normal file
3
requirements/api.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
djangorestframework==3.9.0
|
||||||
|
django-rest-polymorphic==0.1.8
|
||||||
|
|
@ -4,16 +4,10 @@ defusedxml==0.6.0
|
|||||||
Django~=2.2
|
Django~=2.2
|
||||||
django-allauth==0.39.1
|
django-allauth==0.39.1
|
||||||
django-autocomplete-light==3.5.1
|
django-autocomplete-light==3.5.1
|
||||||
django-cas-client==1.5.3
|
|
||||||
django-cas-server==1.1.0
|
|
||||||
django-crispy-forms==1.7.2
|
django-crispy-forms==1.7.2
|
||||||
django-extensions==2.1.9
|
django-extensions==2.1.9
|
||||||
django-filter==2.2.0
|
django-filter==2.2.0
|
||||||
django-guardian==2.1.0
|
|
||||||
django-polymorphic==2.0.3
|
django-polymorphic==2.0.3
|
||||||
djangorestframework==3.9.0
|
|
||||||
django-rest-polymorphic==0.1.8
|
|
||||||
django-reversion==3.0.3
|
|
||||||
django-tables2==2.1.0
|
django-tables2==2.1.0
|
||||||
docutils==0.14
|
docutils==0.14
|
||||||
idna==2.8
|
idna==2.8
|
2
requirements/cas.txt
Normal file
2
requirements/cas.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
django-cas-client==1.5.3
|
||||||
|
django-cas-server==1.1.0
|
1
requirements/production.txt
Normal file
1
requirements/production.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
psycopg2==2.8.4
|
10
tox.ini
10
tox.ini
@ -9,7 +9,10 @@ skipsdist = True
|
|||||||
setenv =
|
setenv =
|
||||||
PYTHONWARNINGS = all
|
PYTHONWARNINGS = all
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements/base.txt
|
||||||
|
-r{toxinidir}/requirements/api.txt
|
||||||
|
-r{toxinidir}/requirements/cas.txt
|
||||||
|
-r{toxinidir}/requirements/production.txt
|
||||||
coverage
|
coverage
|
||||||
commands =
|
commands =
|
||||||
./manage.py makemigrations
|
./manage.py makemigrations
|
||||||
@ -18,7 +21,10 @@ commands =
|
|||||||
|
|
||||||
[testenv:linters]
|
[testenv:linters]
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements/base.txt
|
||||||
|
-r{toxinidir}/requirements/api.txt
|
||||||
|
-r{toxinidir}/requirements/cas.txt
|
||||||
|
-r{toxinidir}/requirements/production.txt
|
||||||
flake8
|
flake8
|
||||||
flake8-colors
|
flake8-colors
|
||||||
flake8-import-order
|
flake8-import-order
|
||||||
|
Loading…
Reference in New Issue
Block a user