view @ 2109:38b5c2746f83

raise minimum requirement to python 2.7 now that debian wheezy is stable (and thus even debian stable has python 2.7 - almost 3 years after the python 2.7 release), it is time to move on. there are some nice features in 2.7 - we can use them now: there is also no risk any more that language or library features creep in unnoticed that are incompatible with the minimum requirement. we also save some time as we don't have to test on / care for 2.6 any more. about this changeset: most should be self-explanatory, except this: MoinMoin/constants/ - we could not use unicode key constants yet due to a bug in pre-2.6.5 python that did not allow unicode keys in kwargs. The change in MoinMoin/storage/middleware/ is also related to that, we just had to make sure keys are str, not unicode as that dict later was exploded into a function call like f(**doc). notes for developers: if you developed on 2.6 until now, you need to create a fresh new virtualenv using python 2.7.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 04 May 2013 16:08:33 +0200
parents 02c56ec7c09f
children ad303592c64c
line wrap: on
line source
#!/usr/bin/env python
# Copyright: 2001 by Juergen Hermann <>
# Copyright: 2001-2012 MoinMoin:ThomasWaldmann
# License: GNU GPL v2 (or any later version), see LICENSE.txt for details.

import sys
import os

from MoinMoin import project, version

if sys.hexversion < 0x2070000:
    # we require 2.7.x, python 3.x does not work yet.
    sys.stderr.write("%s %s requires Python 2.7.x.\n" % (project, str(version)))

with open('README.txt') as f:
    long_description =

from setuptools import setup, find_packages

setup_args = dict(
    description="MoinMoin is an easy to use, full-featured and extensible wiki software package",
    author="Juergen Hermann et al.",
    # maintainer(_email) not active because distutils/register can't handle author and maintainer at once
    download_url='' % (version, ),
    license="GNU GPL v2 (or any later version)",
    keywords="wiki web",
Development Status :: 2 - Pre-Alpha
Environment :: Web Environment
Intended Audience :: Education
Intended Audience :: End Users/Desktop
Intended Audience :: Information Technology
Intended Audience :: Other Audience
Intended Audience :: Science/Research
License :: OSI Approved :: GNU General Public License (GPL)
Natural Language :: English
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 2.7
Topic :: Internet :: WWW/HTTP :: WSGI
Topic :: Internet :: WWW/HTTP :: WSGI :: Application
Topic :: Internet :: WWW/HTTP :: Dynamic Content
Topic :: Office/Business :: Groupware
Topic :: Text Processing :: Markup""".splitlines(),

    packages=find_packages(exclude=['_tests', ]),

    #package_dir={'MoinMoin.translations': 'MoinMoin/translations',
    #             'MoinMoin.static': 'MoinMoin/static',
    #             'MoinMoin.themes.modernized': 'MoinMoin/themes/modernized',
    #             'MoinMoin.themes.foobar': 'MoinMoin/themes/foobar',
    #             'MoinMoin.templates': 'MoinMoin/templates',
    #             'MoinMoin.apps.admin.templates': 'MoinMoin/apps/admin/templates',
    #             'MoinMoin.apps.misc.templates': 'MoinMoin/apps/misc/templates',
    #            },

        'MoinMoin.translations': ['MoinMoin.pot', '*.po', ],
        'MoinMoin.static': ['*', ],
        'MoinMoin.themes.modernized': ['*', ],
        'MoinMoin.themes.foobar': ['*', ],
        'MoinMoin.templates': ['*.html', '*.xml', ],
        'MoinMoin.apps.admin.templates': ['*.html', ],
        'MoinMoin.apps.misc.templates': ['*.html', '*.txt', ],
        # '',
        # '',
        # fixed flask-themes, 0.1.3 does not work for flask 0.8.x, thus we use a faked
        'blinker>=1.1',  # event signalling (e.g. for change notification trigger)
        'docutils>=0.8.1',  # reST markup processing
        'Markdown>=2.1.1',  # Markdown markup processing
        'Flask>=0.8',  # micro framework
        'Flask-Babel>=0.7',  # i18n support
        'Flask-Cache>=0.3.4',  # caching support
        'Flask-Script>=0.3.3',  # scripting support
        'Flask-Themes>=',  # theme support
        'emeraldtree>=0.9.2',  # xml processing
        'flatland==dev',  # repo checkout at revision 269:6c5d262d7eff works
        'Jinja2>=2.6',  # template engine
        'pygments>=1.4',  # src code / text file highlighting
        'Werkzeug>=0.8.1',  # wsgi toolkit
        'pytest>=2.1, <2.3',  # pytest is needed by unit tests
                              # note: currently 2.3.x is not compatible with our test code,
                              # likely due to the fixtures changes.
        'pytest-pep8<1.0.3',  # coding style checker
                              # note: pytest-pep8 1.0.3 needs pytest 2.3
        # 'whoosh>=2.4.0',  # needed for indexed search
        'whoosh>=2.5.0',  # needed for indexed search
        'sphinx>=1.1',  # needed to build the docs
        'pdfminer',  # pdf -> text/plain conversion
        'passlib>=1.6.0',  # strong password hashing (1.6 needed for consteq)
        'XStatic>=0.0.2',  # support for static file pypi packages
    # optional features and their list of requirements
        #'featurename': ["req1", "req2", ],
        'pil': ["PIL"],  # used by image get for scaling/rotating/etc.
                         # PIL is a binary dependency and some features of it
                         # require special libs/header to be installed before
                         # it can be compiled successfully
        'pillow': ["pillow"],  # alternative to PIL
        'ldap': ["python-ldap>=2.0.0"],  # used by ldap auth
        'openid': ["python-openid>=2.2.4"],  # used by openid rp auth
        'sqla': ["sqlalchemy>=0.7.1"],  # used by sqla store
        'mongodb': ["pymongo"],  # used by mongodb store
        console_scripts=['moin = MoinMoin.script:main'],

    # stuff for babel:
        '': [
            ('MoinMoin/templates/**.html', 'jinja2', None),
            ('MoinMoin/templates/**.js', 'javascript', None),
            ('MoinMoin/apps/**/templates/**.html', 'jinja2', None),
            ('MoinMoin/apps/**/templates/**.js', 'javascript', None),
            ('MoinMoin/**/_tests/**', 'ignore', None),
            ('MoinMoin/static/**', 'ignore', None),
            ('MoinMoin/**.py', 'python', None),


if __name__ == '__main__':