build(requirements): alignement sur le cookiecutter

pull/49/head
Vincent Adolphe 2019-03-19 15:00:52 +01:00
Parent 6432f944c0
révision 5f4bdc5fa4
5 fichiers modifiés avec 33 ajouts et 17 suppressions

Voir le fichier

@ -111,8 +111,7 @@ check-config:
install-deps: ## installe les dépendances de l'application
$(PIP) install --upgrade pip
$(PIP) install --upgrade --requirement requirements.txt
# $(PIP) install --upgrade --requirement requirements/$(ENV).txt
$(PIP) install --upgrade --requirement requirements/$(ENV).txt
migrate: ## mets à jour le schéma de la base de données
$(PYTHON) manage.py migrate

Voir le fichier

@ -1,15 +1,3 @@
django<2.2
django-environ ==0.4.5 # https://github.com/joke2k/django-environ
git+https://forge.cliss21.org/cliss21/django-basket-c21.git@2to3#egg=django-basket-c21
#-e git+ssh://gitea@forge.cliss21.org:222/cliss21/django-basket-c21.git@2to3#egg=django-basket-c21
# Testing
# ------------------------------------------------------------------------------
pytest # https://github.com/pytest-dev/pytest
pytest-sugar # https://github.com/Frozenball/pytest-sugar
django-debug-toolbar
pytest-cov
pytest-django # https://github.com/pytest-dev/pytest-django
isort
#
# This file is here because many Platforms as a Service look for
# requirements.txt in the root directory of a project.
-r requirements/production.txt

2
requirements/base.txt Normal file
Voir le fichier

@ -0,0 +1,2 @@
django<2.2
django-environ ==0.4.5 # https://github.com/joke2k/django-environ

Voir le fichier

@ -0,0 +1,23 @@
-r base.txt
# Base dependancy (editable form)
-e git+ssh://gitea@forge.cliss21.org:222/cliss21/django-basket-c21.git@2to3#egg=django-basket-c21
# Testing
# ------------------------------------------------------------------------------
pytest # https://github.com/pytest-dev/pytest
pytest-sugar # https://github.com/Frozenball/pytest-sugar
# Code quality
# ------------------------------------------------------------------------------
flake8 >=3.5.0 # https://github.com/pycqa/flake8
isort # https://github.com/timothycrosley/isort
pytest-cov # https://github.com/pytest-dev/pytest-cov
# Django
# ------------------------------------------------------------------------------
django-debug-toolbar # https://github.com/jazzband/django-debug-toolbar
django-extensions # https://github.com/django-extensions/django-extensions
# factory-boy >=2.11.0 # https://github.com/FactoryBoy/factory_boy
pytest-django # https://github.com/pytest-dev/pytest-django

Voir le fichier

@ -0,0 +1,4 @@
-r base.txt
# Base dependancy (editable form)
git+https://forge.cliss21.org/cliss21/django-basket-c21.git@2to3#egg=django-basket-c21