Esempio n. 1
0
    # 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 (e.g.'0.5').
    version = '.'.join(str(i) for i in modeltranslation.VERSION[:2])
    # The full PEP386-compliant version number version, including
    # normalized alpha/beta/rc/dev tags (e.g. '0.5a1').
    try:
        # FIXME: Can we make this work on services like read-the-docs?
        # The build script on rtf bails out early with:
        #
        #     Failed to import project; skipping build.
        #     Please make sure your repo is correct and you have a conf.py
        #
        release = modeltranslation.get_version()
    except:
        # We are broad here with the exception handling because we don't know
        # the environment we build on.
        release = version
except ImportError:
    version = 'dev'
    release = 'dev'


# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))

# -- General configuration ----------------------------------------------------
Esempio n. 2
0
import os
import sys

sys.path.insert(0, os.path.abspath(os.path.join(
    os.path.dirname(__file__), '../..')))

try:
    import modeltranslation
    # 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 = '0.4'
    version = modeltranslation.get_version(pep386=False, short=True)
    # The full version, including alpha/beta/rc tags.
    #release = '0.4.0-rc1'
    release = modeltranslation.get_version(pep386=False)
except ImportError:
    version = 'dev'
    release = 'dev'


# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))

# -- General configuration ----------------------------------------------------
Esempio n. 3
0
#!/usr/bin/env python
from setuptools import setup
import modeltranslation

setup(
    name='django-modeltranslation',
    version=modeltranslation.get_version(),
    description='Translates Django models using a registration approach.',
    long_description='The modeltranslation application can be used to '
                   'translate dynamic content of existing models to an '
                   'arbitrary number of languages without having to '
                   'change the original model classes. It uses a '
                   'registration approach (comparable to Django\'s admin '
                   'app) to be able to add translations to existing or '
                   'new projects and is fully integrated into the Django '
                   'admin backend.',
    author='Peter Eschler',
    author_email='*****@*****.**',
    maintainer='Dirk Eschler',
    maintainer_email='*****@*****.**',
    url='http://code.google.com/p/django-modeltranslation/',
    packages=[
        'modeltranslation',
        'modeltranslation.management',
        'modeltranslation.management.commands'
    ],
    include_package_data=True,
    zip_safe=False,
    download_url='http://django-modeltranslation.googlecode.com/files/django-modeltranslation-0.3.2.tar.gz',
    classifiers=[
        'Framework :: Django',
Esempio n. 4
0
    # 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 (e.g.'0.5').
    version = '.'.join(str(i) for i in modeltranslation.VERSION[:2])
    # The full PEP386-compliant version number version, including
    # normalized alpha/beta/rc/dev tags (e.g. '0.5a1').
    try:
        # FIXME: Can we make this work on services like read-the-docs?
        # The build script on rtf bails out early with:
        #
        #     Failed to import project; skipping build.
        #     Please make sure your repo is correct and you have a conf.py
        #
        release = modeltranslation.get_version()
    except:
        # We are broad here with the exception handling because we don't know
        # the environment we build on.
        release = version
except ImportError:
    version = 'dev'
    release = 'dev'


# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))

# -- General configuration ----------------------------------------------------