Exemplo n.º 1
0
except ImportError:
    sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))
    from engage_django_sdk.version import VERSION


# We store VERSION in the django_config.json file. COMPATIBLE_PACKAGER_VERSION is the earliest
# version of the packager which is supported by this version of the code. run_safe_validations()
# compares the version stored in the config file against the compatible version. If they config
# file version is older than the compatible version, an exception is thrown. This prevents someone
# from uploading an archive based on an obsolute version of the packager.  Bump up the compatible
# version number when the contents of the config file or the way settings are handled is changed.
#
# Note that we only compare the first two elements of the version number. The third element is
# not considered, so it is ok if the application's version is behind in path level, if the major
# and minor versions match.
COMPATIBLE_PACKAGER_VERSION = ".".join(VERSION.split('.')[0:2])


from errors import *
from archive_handlers import ZipfileHandler, TarfileHandler, create_handler, \
                             validate_archive_files
from django_config import django_config_from_validation_results, django_config_from_json
from generate_settings import generate_settings_file, simulated_install
from utils import app_module_name_to_dir, write_json, find_files, \
                  get_deployed_settings_module, import_module, \
                  get_settings_file_directory, get_python_path
from validation_results import *
import command
import parse_requirements
from find_module import find_python_module
from engage_django_components import COMPONENTS_FILENAME, read_components_file
Exemplo n.º 2
0
# The encoding of source files.
#source_encoding = 'utf-8-sig'

# The master toctree document.
master_doc = 'index'

# General information about the project.
project = u'engage-django-sdk'
copyright = u'2011, genForma Corp'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '.'.join(VERSION.split('.')[0:2])
# The full version, including alpha/beta/rc tags.
release = VERSION

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
#today = ''
# Else, today_fmt is used as the format for a strftime call.
#today_fmt = '%B %d, %Y'

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.