Skip to content

Commit

Permalink
Separate dev and docs requirements from setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Myers committed Mar 13, 2017
1 parent 2caf79a commit d8ace30
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
17 changes: 15 additions & 2 deletions app/pulp/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import os
import sys
from importlib import import_module

import yaml

Expand Down Expand Up @@ -44,9 +45,7 @@
'django.contrib.staticfiles',
# third-party
'django_filters',
'crispy_forms',
'rest_framework',
'django_extensions',
# pulp platform app
'pulp.app',
]
Expand All @@ -64,6 +63,20 @@
# add it to INSTALLED_APPS. :)
INSTALLED_APPS.append(plugin)

# Optional apps that help with development, or augment Pulp in some non-critical way
OPTIONAL_APPS = [
'crispy_forms',
'django_extensions',
]

for app in OPTIONAL_APPS:
try:
import_module(app)
INSTALLED_APPS.append(app)
except ImportError:
# app module not installed
pass

MIDDLEWARE_CLASSES = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
Expand Down
2 changes: 0 additions & 2 deletions app/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
'celery',
'coreapi',
'Django>=1.8,<1.9',
'django-crispy-forms',
'django-extensions',
'django-filter',
'djangorestframework',
'psycopg2',
Expand Down
4 changes: 4 additions & 0 deletions dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# python packages handy for developers, but not required by pulp
django-crispy-forms
django-extensions
ipython
2 changes: 2 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sphinx
sphinx-rtd-theme

0 comments on commit d8ace30

Please sign in to comment.