Browse Source

build(requirements): alignement sur le cookiecutter

pull/49/head
Vincent Adolphe 3 years ago
parent
commit
5f4bdc5fa4
  1. 3
      Makefile
  2. 18
      requirements.txt
  3. 2
      requirements/base.txt
  4. 23
      requirements/development.txt
  5. 4
      requirements/production.txt

3
Makefile

@ -111,8 +111,7 @@ check-config: @@ -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

18
requirements.txt

@ -1,15 +1,3 @@ @@ -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

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

23
requirements/development.txt

@ -0,0 +1,23 @@ @@ -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

4
requirements/production.txt

@ -0,0 +1,4 @@ @@ -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
Loading…
Cancel
Save
Map all the world