コード例 #1
0
ファイル: cli.py プロジェクト: barszczmm/django-filer
# -*- coding: utf-8 -*-
import os

gettext = lambda s: s

import easy_thumbnails
from distutils.version import LooseVersion
if hasattr(easy_thumbnails, 'get_version'):
    ET_2 = LooseVersion(easy_thumbnails.get_version()) > LooseVersion('2.0')
else:
    ET_2 = LooseVersion(easy_thumbnails.VERSION) > LooseVersion('2.0')

urlpatterns = []


def configure(**extra):
    from django.conf import settings
    os.environ['DJANGO_SETTINGS_MODULE'] = 'filer.test_utils.cli'
    defaults = dict(
        DEBUG=True,
        TEMPLATE_DEBUG=True,
        DATABASE_SUPPORTS_TRANSACTIONS=True,
        DATABASES={'default': {
            'ENGINE': 'django.db.backends.sqlite3'
        }},
        USE_I18N=True,
        MEDIA_ROOT='/media/',
        STATIC_ROOT='/static/',
        MEDIA_URL='/media/',
        STATIC_URL='/static/',
        EMAIL_BACKEND='django.core.mail.backends.locmem.EmailBackend',
コード例 #2
0
ファイル: setup.py プロジェクト: petardimic/mediguest
    Output the contents of one or more files to a single concatenated string.

    """
    output = []
    for filename in filenames:
        f = open(filename)
        try:
            output.append(f.read())
        finally:
            f.close()
    return '\n'.join(output)


setup(
    name='easy-thumbnails',
    version=get_version(join='-'),
    url='http://github.com/SmileyChris/easy-thumbnails',
    #download_url='',
    description='Easy thumbnails for Django',
    long_description=read_files('README'),
    author='Chris Beaven',
    author_email='*****@*****.**',
    platforms=['any'],
    packages=[
        'easy_thumbnails',
        'easy_thumbnails.management',
        'easy_thumbnails.management.commands',
        'easy_thumbnails.migrations',
        'easy_thumbnails.templatetags',
        'easy_thumbnails.tests',
    ],
コード例 #3
0
# The encoding of source files.
#source_encoding = 'utf-8'

# The master toctree document.
master_doc = 'index'

# General information about the project.
project = u'easy-thumbnails'
copyright = u'2009, Chris Beaven'

# 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 = get_version(short=True)
# The full version, including alpha/beta/rc tags.
release = get_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 documents that shouldn't be included in the build.
#unused_docs = []
コード例 #4
0
ファイル: conf.py プロジェクト: 82443751/easy-thumbnails
# The master toctree document.
master_doc = 'index'

# General information about the project.
project = u'easy-thumbnails'
copyright = u'2009, Chris Beaven'

# 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 = '%s.%s' % tuple(easy_thumbnails.VERSION[:2])
# The full version, including alpha/beta/rc tags.
release = easy_thumbnails.get_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 documents that shouldn't be included in the build.
#unused_docs = []

# List of directories, relative to source directory, that shouldn't be searched
コード例 #5
0
ファイル: setup.py プロジェクト: divio/easy-thumbnails
    """
    Output the contents of one or more files to a single concatenated string.
    """
    output = []
    for filename in filenames:
        f = codecs.open(filename, encoding="utf-8")
        try:
            output.append(f.read())
        finally:
            f.close()
    return "\n\n".join(output)


setup(
    name="easy-thumbnails",
    version=easy_thumbnails.get_version(),
    url="http://github.com/SmileyChris/easy-thumbnails",
    description="Easy thumbnails for Django",
    long_description=read_files("README.rst", "CHANGES.rst"),
    author="Chris Beaven",
    author_email="*****@*****.**",
    platforms=["any"],
    packages=find_packages(),
    include_package_data=True,
    install_requires=["django>=1.4.2", "pillow"],
    cmdclass={"test": DjangoTests},
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Environment :: Web Environment",
        "Framework :: Django",
        "Intended Audience :: Developers",
コード例 #6
0
    """
    Output the contents of one or more files to a single concatenated string.
    """
    output = []
    for filename in filenames:
        f = codecs.open(filename, encoding='utf-8')
        try:
            output.append(f.read())
        finally:
            f.close()
    return '\n\n'.join(output)


setup(
    name='easy-thumbnails',
    version=easy_thumbnails.get_version(),
    url='http://github.com/SmileyChris/easy-thumbnails',
    description='Easy thumbnails for Django',
    long_description=read_files('README.rst', 'CHANGES.rst'),
    author='Chris Beaven',
    author_email='*****@*****.**',
    platforms=['any'],
    packages=find_packages(),
    include_package_data=True,
    install_requires=[
        'django>=1.8',
        'pillow<4',
    ],
    cmdclass={'test': DjangoTests},
    classifiers=[
        'Development Status :: 5 - Production/Stable',
コード例 #7
0
ファイル: setup.py プロジェクト: hejibo/easy-thumbnails
    Output the contents of one or more files to a single concatenated string.

    """
    output = []
    for filename in filenames:
        f = open(filename)
        try:
            output.append(f.read())
        finally:
            f.close()
    return "\n".join(output)


setup(
    name="easy-thumbnails",
    version=get_version(join="-"),
    url="http://github.com/SmileyChris/easy-thumbnails",
    # download_url='',
    description="Easy thumbnails for Django",
    long_description=read_files("README.rst"),
    author="Chris Beaven",
    author_email="*****@*****.**",
    platforms=["any"],
    packages=[
        "easy_thumbnails",
        "easy_thumbnails.management",
        "easy_thumbnails.management.commands",
        "easy_thumbnails.migrations",
        "easy_thumbnails.templatetags",
        "easy_thumbnails.tests",
    ],
コード例 #8
0
ファイル: cli.py プロジェクト: DylannCordel/django-filer
# -*- coding: utf-8 -*-
import django
import os

gettext = lambda s: s

import easy_thumbnails
from distutils.version import LooseVersion
if hasattr(easy_thumbnails, 'get_version'):
    ET_2 = LooseVersion(easy_thumbnails.get_version()) > LooseVersion('2.0')
else:
    ET_2 = LooseVersion(easy_thumbnails.VERSION) > LooseVersion('2.0')
DJ_1_7 = LooseVersion(django.get_version()) >= LooseVersion('1.7')

urlpatterns = []


def configure(**extra):
    from django.conf import settings
    os.environ['DJANGO_SETTINGS_MODULE'] = 'filer.test_utils.cli'
    defaults = dict(
        DEBUG=True,
        TEMPLATE_DEBUG=True,
        DATABASE_SUPPORTS_TRANSACTIONS=True,
        DATABASES={
            'default': {'ENGINE': 'django.db.backends.sqlite3'}
        },
        USE_I18N=True,
        MEDIA_ROOT='/media/',
        STATIC_ROOT='/static/',
        MEDIA_URL='/media/',
コード例 #9
0
    """
    Output the contents of one or more files to a single concatenated string.
    """
    output = []
    for filename in filenames:
        f = codecs.open(filename, encoding='utf-8')
        try:
            output.append(f.read())
        finally:
            f.close()
    return '\n\n'.join(output)


setup(
    name='easy-thumbnails',
    version="{0}+nimbis.2".format(easy_thumbnails.get_version()),
    url='http://github.com/SmileyChris/easy-thumbnails',
    description='Easy thumbnails for Django',
    long_description=read_files('README.rst', 'CHANGES.rst'),
    author='Chris Beaven',
    author_email='*****@*****.**',
    platforms=['any'],
    packages=find_packages(),
    include_package_data=True,
    install_requires=[
        'django>=1.11,<4.0',
        'pillow',
    ],
    python_requires='>=3.5',
    cmdclass={'test': DjangoTests},
    classifiers=[
コード例 #10
0
ファイル: setup.py プロジェクト: LittleForker/easy-thumbnails
    Output the contents of one or more files to a single concatenated string.

    """
    output = []
    for filename in filenames:
        f = open(filename)
        try:
            output.append(f.read())
        finally:
            f.close()
    return '\n'.join(output)


setup(
    name='easy-thumbnails',
    version=get_version(join='-'),
    url='http://github.com/SmileyChris/easy-thumbnails',
    #download_url='',
    description='Easy thumbnails for Django',
    long_description=read_files('README'),
    author='Chris Beaven',
    author_email='*****@*****.**',
    platforms=['any'],
    packages=[
        'easy_thumbnails',
        'easy_thumbnails.management',
        'easy_thumbnails.management.commands',
        'easy_thumbnails.migrations',
        'easy_thumbnails.templatetags',
        'easy_thumbnails.tests',
    ],
コード例 #11
0
# The master toctree document.
master_doc = 'index'

# General information about the project.
project = u'easy-thumbnails'
copyright = u'2009, Chris Beaven'

# 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 = '%s.%s' % tuple(easy_thumbnails.VERSION[:2])
# The full version, including alpha/beta/rc tags.
release = easy_thumbnails.get_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 documents that shouldn't be included in the build.
#unused_docs = []

# List of directories, relative to source directory, that shouldn't be searched
コード例 #12
0
ファイル: conf.py プロジェクト: SilverTab/easy-thumbnails
# The encoding of source files.
#source_encoding = 'utf-8'

# The master toctree document.
master_doc = 'index'

# General information about the project.
project = u'easy-thumbnails'
copyright = u'2009, Chris Beaven'

# 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 = get_version(short=True)
# The full version, including alpha/beta/rc tags.
release = get_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 documents that shouldn't be included in the build.
#unused_docs = []