Skip to content

Commit

Permalink
Cleanup requirements and settings.
Browse files Browse the repository at this point in the history
Minor cleanup of django settings files and python requirements.

Change-Id: I1fb1b83960601b0ed50bcca4925a80a9cfb30d64
  • Loading branch information
rocha committed Jul 7, 2014
1 parent 2d590a1 commit 1863146
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 17 deletions.
2 changes: 1 addition & 1 deletion analyticsdataserver/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from os.path import join, normpath

from base import *
from analyticsdataserver.settings.base import *


########## DEBUG CONFIGURATION
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Logging configuration"""

import os
import platform
import sys
Expand Down
8 changes: 4 additions & 4 deletions analyticsdataserver/settings/production.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
"""Production settings and globals."""


from os import environ
from base import *
import yaml
from analyticsdataserver.logsettings import get_logger_config

# Normally you should not import ANYTHING from Django directly
# into your settings, but ImproperlyConfigured is an exception.
from django.core.exceptions import ImproperlyConfigured

import yaml

from analyticsdataserver.settings.base import *
from analyticsdataserver.settings.logger import get_logger_config

LOGGING = get_logger_config()

Expand Down
4 changes: 3 additions & 1 deletion analyticsdataserver/settings/test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from base import *
"""Test settings and globals."""

from analyticsdataserver.settings.base import *

########## IN-MEMORY TEST DATABASE
DATABASES = {
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 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
4 changes: 2 additions & 2 deletions requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Django==1.4.12
django-model-utils==1.4.0
Markdown==2.4.1
South==0.8.1
django-model-utils==1.4.0
djangorestframework==2.3.5
Markdown==2.4.1
ipython==2.1.0
3 changes: 3 additions & 0 deletions requirements/doc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Dependencies for building documentation
-r base.txt
Sphinx==1.2.1
1 change: 0 additions & 1 deletion requirements/local.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
-r base.txt
-r test.txt
django-debug-toolbar==0.9.4
Sphinx==1.2b1
4 changes: 2 additions & 2 deletions requirements/production.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# production that isn't in development.
-r base.txt

gunicorn==0.17.4
MySQL-python==1.2.5
path.py==5.2
PyYAML==3.11
gunicorn==0.17.4
path.py==5.2
12 changes: 6 additions & 6 deletions requirements/test.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Test dependencies go here.
-r base.txt
coverage==3.7
nose==1.3.3
django-nose==1.2
pep8==1.5.7
pylint==1.2.1
diff-cover >= 0.2.1
django-nose==1.2
httpretty==0.8.0
mock==1.0.1
nose==1.3.3
pep257==0.3.2
httpretty==0.8.0
requests==2.3.0
pep8==1.5.7
pylint==1.2.1
pytz==2012h
requests==2.3.0

0 comments on commit 1863146

Please sign in to comment.