示例#1
0
# The encoding of source files.
#source_encoding = 'utf-8'

# The master toctree document.
master_doc = 'index'

# General information about the project.
project = u'django-formfield'
copyright = u'2010, Jose Soares'

# 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 = formfield.get_version()
# The full version, including alpha/beta/rc tags.
release = formfield.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 = []
示例#2
0
        return ''


def get_readme():
    """Return the README file contents. Supports text,rst, and markdown"""
    for name in ('README', 'README.rst', 'README.md'):
        if path.exists(name):
            return read_file(name)
    return ''


# Use the docstring of the __init__ file to be the description
DESC = " ".join(formfield.__doc__.splitlines()).strip()

setup(
    name="django-formfield",
    version=formfield.get_version().replace(' ', '-'),
    url='http://github.com/jsoa/django-formfield/',
    author='Jose Soares',
    author_email='*****@*****.**',
    description=DESC,
    long_description=get_readme(),
    packages=find_packages(),
    include_package_data=True,
    install_requires=read_file('requirements.txt'),
    classifiers=[
        'License :: OSI Approved :: Apache Software License',
        'Framework :: Django',
    ],
)
示例#3
0
    except IOError:
        return ''


def get_readme():
    """Return the README file contents. Supports text,rst, and markdown"""
    for name in ('README', 'README.rst', 'README.md'):
        if path.exists(name):
            return read_file(name)
    return ''

# Use the docstring of the __init__ file to be the description
DESC = " ".join(formfield.__doc__.splitlines()).strip()

setup(
    name="django-formfield",
    version=formfield.get_version().replace(' ', '-'),
    url='http://github.com/jsoa/django-formfield/',
    author='Jose Soares',
    author_email='*****@*****.**',
    description=DESC,
    long_description=get_readme(),
    packages=find_packages(),
    include_package_data=True,
    install_requires=read_file('requirements.txt'),
    classifiers=[
        'License :: OSI Approved :: Apache Software License',
        'Framework :: Django',
    ],
)