Minor style changes and bumping version.

This commit is contained in:
Jannis Leidel 2013-09-03 13:10:25 +02:00
parent cd2144492c
commit 1da2414ee1
3 changed files with 7 additions and 6 deletions

View file

@ -2,5 +2,5 @@
from .base import Settings, Configuration
from .decorators import pristinemethod
__version__ = '0.3'
__all__ = ['Configuration', 'pristinemethod']
__version__ = '0.4'
__all__ = ['Configuration', 'pristinemethod', 'Settings']

View file

@ -19,9 +19,10 @@ install_failure = ("django-configurations settings importer wasn't "
class ConfigurationBase(type):
def __new__(cls, name, bases, attrs):
# also check for "Configuration" here to handle the Settings class below
# remove it when we deprecate the Settings class
if bases != (object,) and bases[0].__name__ not in ('NewBase', 'Configuration'):
# also check for "Configuration" here to handle the Settings class
# below remove it when we deprecate the Settings class
if (bases != (object,) and
bases[0].__name__ not in ('NewBase', 'Configuration')):
# if this is actually a subclass in a settings module
# we better check if the importer was correctly installed
from . import importer

View file

@ -1,6 +1,6 @@
[metadata]
name = django-configurations
version = 0.4a1
version = 0.4
author = Jannis Leidel
author-email = jannis@leidel.info
summary = A helper for organizing Django settings.